|
| 1 | +/* |
| 2 | + * iam |
| 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.iam.model; |
| 14 | + |
| 15 | +import com.google.gson.annotations.SerializedName; |
| 16 | +import io.swagger.v3.oas.annotations.media.Schema; |
| 17 | + |
| 18 | +import javax.validation.constraints.NotNull; |
| 19 | +import javax.validation.constraints.Size; |
| 20 | +import java.util.Objects; |
| 21 | + |
| 22 | +/** |
| 23 | + * CreateSAMLProviderRequest |
| 24 | + */ |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | +public class CreateSAMLProviderRequest { |
| 29 | + @SerializedName("Description") |
| 30 | + private String description = null; |
| 31 | + |
| 32 | + @SerializedName("EncodedSAMLMetadataDocument") |
| 33 | + private String encodedSAMLMetadataDocument = null; |
| 34 | + |
| 35 | + @SerializedName("SAMLProviderName") |
| 36 | + private String saMLProviderName = null; |
| 37 | + |
| 38 | + @SerializedName("SSOType") |
| 39 | + private Integer ssOType = null; |
| 40 | + |
| 41 | + @SerializedName("Status") |
| 42 | + private Integer status = null; |
| 43 | + |
| 44 | + public CreateSAMLProviderRequest description(String description) { |
| 45 | + this.description = description; |
| 46 | + return this; |
| 47 | + } |
| 48 | + |
| 49 | + /** |
| 50 | + * Get description |
| 51 | + * @return description |
| 52 | + **/ |
| 53 | + @Size(max=256) @Schema(description = "") |
| 54 | + public String getDescription() { |
| 55 | + return description; |
| 56 | + } |
| 57 | + |
| 58 | + public void setDescription(String description) { |
| 59 | + this.description = description; |
| 60 | + } |
| 61 | + |
| 62 | + public CreateSAMLProviderRequest encodedSAMLMetadataDocument(String encodedSAMLMetadataDocument) { |
| 63 | + this.encodedSAMLMetadataDocument = encodedSAMLMetadataDocument; |
| 64 | + return this; |
| 65 | + } |
| 66 | + |
| 67 | + /** |
| 68 | + * Get encodedSAMLMetadataDocument |
| 69 | + * @return encodedSAMLMetadataDocument |
| 70 | + **/ |
| 71 | + @NotNull |
| 72 | + @Schema(required = true, description = "") |
| 73 | + public String getEncodedSAMLMetadataDocument() { |
| 74 | + return encodedSAMLMetadataDocument; |
| 75 | + } |
| 76 | + |
| 77 | + public void setEncodedSAMLMetadataDocument(String encodedSAMLMetadataDocument) { |
| 78 | + this.encodedSAMLMetadataDocument = encodedSAMLMetadataDocument; |
| 79 | + } |
| 80 | + |
| 81 | + public CreateSAMLProviderRequest saMLProviderName(String saMLProviderName) { |
| 82 | + this.saMLProviderName = saMLProviderName; |
| 83 | + return this; |
| 84 | + } |
| 85 | + |
| 86 | + /** |
| 87 | + * Get saMLProviderName |
| 88 | + * @return saMLProviderName |
| 89 | + **/ |
| 90 | + @NotNull |
| 91 | + @Schema(required = true, description = "") |
| 92 | + public String getSaMLProviderName() { |
| 93 | + return saMLProviderName; |
| 94 | + } |
| 95 | + |
| 96 | + public void setSaMLProviderName(String saMLProviderName) { |
| 97 | + this.saMLProviderName = saMLProviderName; |
| 98 | + } |
| 99 | + |
| 100 | + public CreateSAMLProviderRequest ssOType(Integer ssOType) { |
| 101 | + this.ssOType = ssOType; |
| 102 | + return this; |
| 103 | + } |
| 104 | + |
| 105 | + /** |
| 106 | + * Get ssOType |
| 107 | + * @return ssOType |
| 108 | + **/ |
| 109 | + @NotNull |
| 110 | + @Schema(required = true, description = "") |
| 111 | + public Integer getSsOType() { |
| 112 | + return ssOType; |
| 113 | + } |
| 114 | + |
| 115 | + public void setSsOType(Integer ssOType) { |
| 116 | + this.ssOType = ssOType; |
| 117 | + } |
| 118 | + |
| 119 | + public CreateSAMLProviderRequest status(Integer status) { |
| 120 | + this.status = status; |
| 121 | + return this; |
| 122 | + } |
| 123 | + |
| 124 | + /** |
| 125 | + * Get status |
| 126 | + * @return status |
| 127 | + **/ |
| 128 | + @Schema(description = "") |
| 129 | + public Integer getStatus() { |
| 130 | + return status; |
| 131 | + } |
| 132 | + |
| 133 | + public void setStatus(Integer status) { |
| 134 | + this.status = status; |
| 135 | + } |
| 136 | + |
| 137 | + |
| 138 | + @Override |
| 139 | + public boolean equals(Object o) { |
| 140 | + if (this == o) { |
| 141 | + return true; |
| 142 | + } |
| 143 | + if (o == null || getClass() != o.getClass()) { |
| 144 | + return false; |
| 145 | + } |
| 146 | + CreateSAMLProviderRequest createSAMLProviderRequest = (CreateSAMLProviderRequest) o; |
| 147 | + return Objects.equals(this.description, createSAMLProviderRequest.description) && |
| 148 | + Objects.equals(this.encodedSAMLMetadataDocument, createSAMLProviderRequest.encodedSAMLMetadataDocument) && |
| 149 | + Objects.equals(this.saMLProviderName, createSAMLProviderRequest.saMLProviderName) && |
| 150 | + Objects.equals(this.ssOType, createSAMLProviderRequest.ssOType) && |
| 151 | + Objects.equals(this.status, createSAMLProviderRequest.status); |
| 152 | + } |
| 153 | + |
| 154 | + @Override |
| 155 | + public int hashCode() { |
| 156 | + return Objects.hash(description, encodedSAMLMetadataDocument, saMLProviderName, ssOType, status); |
| 157 | + } |
| 158 | + |
| 159 | + |
| 160 | + @Override |
| 161 | + public String toString() { |
| 162 | + StringBuilder sb = new StringBuilder(); |
| 163 | + sb.append("class CreateSAMLProviderRequest {\n"); |
| 164 | + |
| 165 | + sb.append(" description: ").append(toIndentedString(description)).append("\n"); |
| 166 | + sb.append(" encodedSAMLMetadataDocument: ").append(toIndentedString(encodedSAMLMetadataDocument)).append("\n"); |
| 167 | + sb.append(" saMLProviderName: ").append(toIndentedString(saMLProviderName)).append("\n"); |
| 168 | + sb.append(" ssOType: ").append(toIndentedString(ssOType)).append("\n"); |
| 169 | + sb.append(" status: ").append(toIndentedString(status)).append("\n"); |
| 170 | + sb.append("}"); |
| 171 | + return sb.toString(); |
| 172 | + } |
| 173 | + |
| 174 | + /** |
| 175 | + * Convert the given object to string with each line indented by 4 spaces |
| 176 | + * (except the first line). |
| 177 | + */ |
| 178 | + private String toIndentedString(Object o) { |
| 179 | + if (o == null) { |
| 180 | + return "null"; |
| 181 | + } |
| 182 | + return o.toString().replace("\n", "\n "); |
| 183 | + } |
| 184 | + |
| 185 | +} |
0 commit comments