|
| 1 | +/* |
| 2 | + * apig |
| 3 | + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) |
| 4 | + * |
| 5 | + * OpenAPI spec version: common-version |
| 6 | + * |
| 7 | + * |
| 8 | + * NOTE: This class is auto generated by the swagger code generator program. |
| 9 | + * https://github.com/swagger-api/swagger-codegen.git |
| 10 | + * Do not edit the class manually. |
| 11 | + */ |
| 12 | + |
| 13 | +package com.volcengine.apig.model; |
| 14 | + |
| 15 | +import java.util.Objects; |
| 16 | +import java.util.Arrays; |
| 17 | +import com.google.gson.TypeAdapter; |
| 18 | +import com.google.gson.annotations.JsonAdapter; |
| 19 | +import com.google.gson.annotations.SerializedName; |
| 20 | +import com.google.gson.stream.JsonReader; |
| 21 | +import com.google.gson.stream.JsonWriter; |
| 22 | +import com.volcengine.apig.model.HmacAuthCredentialForCheckConsumerCredentialExistInput; |
| 23 | +import com.volcengine.apig.model.KeyAuthCredentialForCheckConsumerCredentialExistInput; |
| 24 | +import com.volcengine.apig.model.Oauth2CredentialForCheckConsumerCredentialExistInput; |
| 25 | +import io.swagger.v3.oas.annotations.media.Schema; |
| 26 | +import java.io.IOException; |
| 27 | +import javax.validation.constraints.*; |
| 28 | +import javax.validation.Valid; |
| 29 | +/** |
| 30 | + * CheckConsumerCredentialExistRequest |
| 31 | + */ |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | +public class CheckConsumerCredentialExistRequest { |
| 36 | + @SerializedName("CredentialType") |
| 37 | + private String credentialType = null; |
| 38 | + |
| 39 | + @SerializedName("GatewayId") |
| 40 | + private String gatewayId = null; |
| 41 | + |
| 42 | + @SerializedName("HmacAuthCredential") |
| 43 | + private HmacAuthCredentialForCheckConsumerCredentialExistInput hmacAuthCredential = null; |
| 44 | + |
| 45 | + @SerializedName("KeyAuthCredential") |
| 46 | + private KeyAuthCredentialForCheckConsumerCredentialExistInput keyAuthCredential = null; |
| 47 | + |
| 48 | + @SerializedName("Oauth2Credential") |
| 49 | + private Oauth2CredentialForCheckConsumerCredentialExistInput oauth2Credential = null; |
| 50 | + |
| 51 | + public CheckConsumerCredentialExistRequest credentialType(String credentialType) { |
| 52 | + this.credentialType = credentialType; |
| 53 | + return this; |
| 54 | + } |
| 55 | + |
| 56 | + /** |
| 57 | + * Get credentialType |
| 58 | + * @return credentialType |
| 59 | + **/ |
| 60 | + @NotNull |
| 61 | + @Schema(required = true, description = "") |
| 62 | + public String getCredentialType() { |
| 63 | + return credentialType; |
| 64 | + } |
| 65 | + |
| 66 | + public void setCredentialType(String credentialType) { |
| 67 | + this.credentialType = credentialType; |
| 68 | + } |
| 69 | + |
| 70 | + public CheckConsumerCredentialExistRequest gatewayId(String gatewayId) { |
| 71 | + this.gatewayId = gatewayId; |
| 72 | + return this; |
| 73 | + } |
| 74 | + |
| 75 | + /** |
| 76 | + * Get gatewayId |
| 77 | + * @return gatewayId |
| 78 | + **/ |
| 79 | + @NotNull |
| 80 | + @Schema(required = true, description = "") |
| 81 | + public String getGatewayId() { |
| 82 | + return gatewayId; |
| 83 | + } |
| 84 | + |
| 85 | + public void setGatewayId(String gatewayId) { |
| 86 | + this.gatewayId = gatewayId; |
| 87 | + } |
| 88 | + |
| 89 | + public CheckConsumerCredentialExistRequest hmacAuthCredential(HmacAuthCredentialForCheckConsumerCredentialExistInput hmacAuthCredential) { |
| 90 | + this.hmacAuthCredential = hmacAuthCredential; |
| 91 | + return this; |
| 92 | + } |
| 93 | + |
| 94 | + /** |
| 95 | + * Get hmacAuthCredential |
| 96 | + * @return hmacAuthCredential |
| 97 | + **/ |
| 98 | + @Valid |
| 99 | + @Schema(description = "") |
| 100 | + public HmacAuthCredentialForCheckConsumerCredentialExistInput getHmacAuthCredential() { |
| 101 | + return hmacAuthCredential; |
| 102 | + } |
| 103 | + |
| 104 | + public void setHmacAuthCredential(HmacAuthCredentialForCheckConsumerCredentialExistInput hmacAuthCredential) { |
| 105 | + this.hmacAuthCredential = hmacAuthCredential; |
| 106 | + } |
| 107 | + |
| 108 | + public CheckConsumerCredentialExistRequest keyAuthCredential(KeyAuthCredentialForCheckConsumerCredentialExistInput keyAuthCredential) { |
| 109 | + this.keyAuthCredential = keyAuthCredential; |
| 110 | + return this; |
| 111 | + } |
| 112 | + |
| 113 | + /** |
| 114 | + * Get keyAuthCredential |
| 115 | + * @return keyAuthCredential |
| 116 | + **/ |
| 117 | + @Valid |
| 118 | + @Schema(description = "") |
| 119 | + public KeyAuthCredentialForCheckConsumerCredentialExistInput getKeyAuthCredential() { |
| 120 | + return keyAuthCredential; |
| 121 | + } |
| 122 | + |
| 123 | + public void setKeyAuthCredential(KeyAuthCredentialForCheckConsumerCredentialExistInput keyAuthCredential) { |
| 124 | + this.keyAuthCredential = keyAuthCredential; |
| 125 | + } |
| 126 | + |
| 127 | + public CheckConsumerCredentialExistRequest oauth2Credential(Oauth2CredentialForCheckConsumerCredentialExistInput oauth2Credential) { |
| 128 | + this.oauth2Credential = oauth2Credential; |
| 129 | + return this; |
| 130 | + } |
| 131 | + |
| 132 | + /** |
| 133 | + * Get oauth2Credential |
| 134 | + * @return oauth2Credential |
| 135 | + **/ |
| 136 | + @Valid |
| 137 | + @Schema(description = "") |
| 138 | + public Oauth2CredentialForCheckConsumerCredentialExistInput getOauth2Credential() { |
| 139 | + return oauth2Credential; |
| 140 | + } |
| 141 | + |
| 142 | + public void setOauth2Credential(Oauth2CredentialForCheckConsumerCredentialExistInput oauth2Credential) { |
| 143 | + this.oauth2Credential = oauth2Credential; |
| 144 | + } |
| 145 | + |
| 146 | + |
| 147 | + @Override |
| 148 | + public boolean equals(java.lang.Object o) { |
| 149 | + if (this == o) { |
| 150 | + return true; |
| 151 | + } |
| 152 | + if (o == null || getClass() != o.getClass()) { |
| 153 | + return false; |
| 154 | + } |
| 155 | + CheckConsumerCredentialExistRequest checkConsumerCredentialExistRequest = (CheckConsumerCredentialExistRequest) o; |
| 156 | + return Objects.equals(this.credentialType, checkConsumerCredentialExistRequest.credentialType) && |
| 157 | + Objects.equals(this.gatewayId, checkConsumerCredentialExistRequest.gatewayId) && |
| 158 | + Objects.equals(this.hmacAuthCredential, checkConsumerCredentialExistRequest.hmacAuthCredential) && |
| 159 | + Objects.equals(this.keyAuthCredential, checkConsumerCredentialExistRequest.keyAuthCredential) && |
| 160 | + Objects.equals(this.oauth2Credential, checkConsumerCredentialExistRequest.oauth2Credential); |
| 161 | + } |
| 162 | + |
| 163 | + @Override |
| 164 | + public int hashCode() { |
| 165 | + return Objects.hash(credentialType, gatewayId, hmacAuthCredential, keyAuthCredential, oauth2Credential); |
| 166 | + } |
| 167 | + |
| 168 | + |
| 169 | + @Override |
| 170 | + public String toString() { |
| 171 | + StringBuilder sb = new StringBuilder(); |
| 172 | + sb.append("class CheckConsumerCredentialExistRequest {\n"); |
| 173 | + |
| 174 | + sb.append(" credentialType: ").append(toIndentedString(credentialType)).append("\n"); |
| 175 | + sb.append(" gatewayId: ").append(toIndentedString(gatewayId)).append("\n"); |
| 176 | + sb.append(" hmacAuthCredential: ").append(toIndentedString(hmacAuthCredential)).append("\n"); |
| 177 | + sb.append(" keyAuthCredential: ").append(toIndentedString(keyAuthCredential)).append("\n"); |
| 178 | + sb.append(" oauth2Credential: ").append(toIndentedString(oauth2Credential)).append("\n"); |
| 179 | + sb.append("}"); |
| 180 | + return sb.toString(); |
| 181 | + } |
| 182 | + |
| 183 | + /** |
| 184 | + * Convert the given object to string with each line indented by 4 spaces |
| 185 | + * (except the first line). |
| 186 | + */ |
| 187 | + private String toIndentedString(java.lang.Object o) { |
| 188 | + if (o == null) { |
| 189 | + return "null"; |
| 190 | + } |
| 191 | + return o.toString().replace("\n", "\n "); |
| 192 | + } |
| 193 | + |
| 194 | +} |
0 commit comments