|
| 1 | +/* |
| 2 | + * Influx OSS API Service |
| 3 | + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) |
| 4 | + * |
| 5 | + * OpenAPI spec version: 2.0.0 |
| 6 | + * |
| 7 | + * |
| 8 | + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
| 9 | + * https://openapi-generator.tech |
| 10 | + * Do not edit the class manually. |
| 11 | + */ |
| 12 | + |
| 13 | + |
| 14 | +package com.influxdb.client.domain; |
| 15 | + |
| 16 | +import java.util.Objects; |
| 17 | +import java.util.Arrays; |
| 18 | +import com.google.gson.TypeAdapter; |
| 19 | +import com.google.gson.annotations.JsonAdapter; |
| 20 | +import com.google.gson.annotations.SerializedName; |
| 21 | +import com.google.gson.stream.JsonReader; |
| 22 | +import com.google.gson.stream.JsonWriter; |
| 23 | +import io.swagger.annotations.ApiModel; |
| 24 | +import io.swagger.annotations.ApiModelProperty; |
| 25 | +import java.io.IOException; |
| 26 | + |
| 27 | +/** |
| 28 | + * DBRPCreate |
| 29 | + */ |
| 30 | + |
| 31 | +public class DBRPCreate { |
| 32 | + public static final String SERIALIZED_NAME_ORG_I_D = "orgID"; |
| 33 | + @SerializedName(SERIALIZED_NAME_ORG_I_D) |
| 34 | + private String orgID; |
| 35 | + |
| 36 | + public static final String SERIALIZED_NAME_ORG = "org"; |
| 37 | + @SerializedName(SERIALIZED_NAME_ORG) |
| 38 | + private String org; |
| 39 | + |
| 40 | + public static final String SERIALIZED_NAME_BUCKET_I_D = "bucketID"; |
| 41 | + @SerializedName(SERIALIZED_NAME_BUCKET_I_D) |
| 42 | + private String bucketID; |
| 43 | + |
| 44 | + public static final String SERIALIZED_NAME_DATABASE = "database"; |
| 45 | + @SerializedName(SERIALIZED_NAME_DATABASE) |
| 46 | + private String database; |
| 47 | + |
| 48 | + public static final String SERIALIZED_NAME_RETENTION_POLICY = "retention_policy"; |
| 49 | + @SerializedName(SERIALIZED_NAME_RETENTION_POLICY) |
| 50 | + private String retentionPolicy; |
| 51 | + |
| 52 | + public static final String SERIALIZED_NAME_DEFAULT = "default"; |
| 53 | + @SerializedName(SERIALIZED_NAME_DEFAULT) |
| 54 | + private Boolean _default; |
| 55 | + |
| 56 | + public DBRPCreate orgID(String orgID) { |
| 57 | + this.orgID = orgID; |
| 58 | + return this; |
| 59 | + } |
| 60 | + |
| 61 | + /** |
| 62 | + * the organization ID that owns this mapping. |
| 63 | + * @return orgID |
| 64 | + **/ |
| 65 | + @ApiModelProperty(value = "the organization ID that owns this mapping.") |
| 66 | + public String getOrgID() { |
| 67 | + return orgID; |
| 68 | + } |
| 69 | + |
| 70 | + public void setOrgID(String orgID) { |
| 71 | + this.orgID = orgID; |
| 72 | + } |
| 73 | + |
| 74 | + public DBRPCreate org(String org) { |
| 75 | + this.org = org; |
| 76 | + return this; |
| 77 | + } |
| 78 | + |
| 79 | + /** |
| 80 | + * the organization that owns this mapping. |
| 81 | + * @return org |
| 82 | + **/ |
| 83 | + @ApiModelProperty(value = "the organization that owns this mapping.") |
| 84 | + public String getOrg() { |
| 85 | + return org; |
| 86 | + } |
| 87 | + |
| 88 | + public void setOrg(String org) { |
| 89 | + this.org = org; |
| 90 | + } |
| 91 | + |
| 92 | + public DBRPCreate bucketID(String bucketID) { |
| 93 | + this.bucketID = bucketID; |
| 94 | + return this; |
| 95 | + } |
| 96 | + |
| 97 | + /** |
| 98 | + * the bucket ID used as target for the translation. |
| 99 | + * @return bucketID |
| 100 | + **/ |
| 101 | + @ApiModelProperty(required = true, value = "the bucket ID used as target for the translation.") |
| 102 | + public String getBucketID() { |
| 103 | + return bucketID; |
| 104 | + } |
| 105 | + |
| 106 | + public void setBucketID(String bucketID) { |
| 107 | + this.bucketID = bucketID; |
| 108 | + } |
| 109 | + |
| 110 | + public DBRPCreate database(String database) { |
| 111 | + this.database = database; |
| 112 | + return this; |
| 113 | + } |
| 114 | + |
| 115 | + /** |
| 116 | + * InfluxDB v1 database |
| 117 | + * @return database |
| 118 | + **/ |
| 119 | + @ApiModelProperty(required = true, value = "InfluxDB v1 database") |
| 120 | + public String getDatabase() { |
| 121 | + return database; |
| 122 | + } |
| 123 | + |
| 124 | + public void setDatabase(String database) { |
| 125 | + this.database = database; |
| 126 | + } |
| 127 | + |
| 128 | + public DBRPCreate retentionPolicy(String retentionPolicy) { |
| 129 | + this.retentionPolicy = retentionPolicy; |
| 130 | + return this; |
| 131 | + } |
| 132 | + |
| 133 | + /** |
| 134 | + * InfluxDB v1 retention policy |
| 135 | + * @return retentionPolicy |
| 136 | + **/ |
| 137 | + @ApiModelProperty(required = true, value = "InfluxDB v1 retention policy") |
| 138 | + public String getRetentionPolicy() { |
| 139 | + return retentionPolicy; |
| 140 | + } |
| 141 | + |
| 142 | + public void setRetentionPolicy(String retentionPolicy) { |
| 143 | + this.retentionPolicy = retentionPolicy; |
| 144 | + } |
| 145 | + |
| 146 | + public DBRPCreate _default(Boolean _default) { |
| 147 | + this._default = _default; |
| 148 | + return this; |
| 149 | + } |
| 150 | + |
| 151 | + /** |
| 152 | + * Specify if this mapping represents the default retention policy for the database specificed. |
| 153 | + * @return _default |
| 154 | + **/ |
| 155 | + @ApiModelProperty(value = "Specify if this mapping represents the default retention policy for the database specificed.") |
| 156 | + public Boolean getDefault() { |
| 157 | + return _default; |
| 158 | + } |
| 159 | + |
| 160 | + public void setDefault(Boolean _default) { |
| 161 | + this._default = _default; |
| 162 | + } |
| 163 | + |
| 164 | + |
| 165 | + @Override |
| 166 | + public boolean equals(java.lang.Object o) { |
| 167 | + if (this == o) { |
| 168 | + return true; |
| 169 | + } |
| 170 | + if (o == null || getClass() != o.getClass()) { |
| 171 | + return false; |
| 172 | + } |
| 173 | + DBRPCreate dbRPCreate = (DBRPCreate) o; |
| 174 | + return Objects.equals(this.orgID, dbRPCreate.orgID) && |
| 175 | + Objects.equals(this.org, dbRPCreate.org) && |
| 176 | + Objects.equals(this.bucketID, dbRPCreate.bucketID) && |
| 177 | + Objects.equals(this.database, dbRPCreate.database) && |
| 178 | + Objects.equals(this.retentionPolicy, dbRPCreate.retentionPolicy) && |
| 179 | + Objects.equals(this._default, dbRPCreate._default); |
| 180 | + } |
| 181 | + |
| 182 | + @Override |
| 183 | + public int hashCode() { |
| 184 | + return Objects.hash(orgID, org, bucketID, database, retentionPolicy, _default); |
| 185 | + } |
| 186 | + |
| 187 | + |
| 188 | + @Override |
| 189 | + public String toString() { |
| 190 | + StringBuilder sb = new StringBuilder(); |
| 191 | + sb.append("class DBRPCreate {\n"); |
| 192 | + sb.append(" orgID: ").append(toIndentedString(orgID)).append("\n"); |
| 193 | + sb.append(" org: ").append(toIndentedString(org)).append("\n"); |
| 194 | + sb.append(" bucketID: ").append(toIndentedString(bucketID)).append("\n"); |
| 195 | + sb.append(" database: ").append(toIndentedString(database)).append("\n"); |
| 196 | + sb.append(" retentionPolicy: ").append(toIndentedString(retentionPolicy)).append("\n"); |
| 197 | + sb.append(" _default: ").append(toIndentedString(_default)).append("\n"); |
| 198 | + sb.append("}"); |
| 199 | + return sb.toString(); |
| 200 | + } |
| 201 | + |
| 202 | + /** |
| 203 | + * Convert the given object to string with each line indented by 4 spaces |
| 204 | + * (except the first line). |
| 205 | + */ |
| 206 | + private String toIndentedString(java.lang.Object o) { |
| 207 | + if (o == null) { |
| 208 | + return "null"; |
| 209 | + } |
| 210 | + return o.toString().replace("\n", "\n "); |
| 211 | + } |
| 212 | + |
| 213 | +} |
| 214 | + |
0 commit comments