|
| 1 | +/* |
| 2 | + * pca20251001 |
| 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.pca20251001.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 io.swagger.v3.oas.annotations.media.Schema; |
| 23 | +import java.io.IOException; |
| 24 | +import java.util.ArrayList; |
| 25 | +import java.util.List; |
| 26 | +import javax.validation.constraints.*; |
| 27 | +import javax.validation.Valid; |
| 28 | +/** |
| 29 | + * CertificateForGetLeafInstanceOutput |
| 30 | + */ |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | +public class CertificateForGetLeafInstanceOutput { |
| 35 | + @SerializedName("Chain") |
| 36 | + private List<String> chain = null; |
| 37 | + |
| 38 | + @SerializedName("Csr") |
| 39 | + private String csr = null; |
| 40 | + |
| 41 | + @SerializedName("EncryptChain") |
| 42 | + private List<String> encryptChain = null; |
| 43 | + |
| 44 | + @SerializedName("EncryptKey") |
| 45 | + private String encryptKey = null; |
| 46 | + |
| 47 | + @SerializedName("Key") |
| 48 | + private String key = null; |
| 49 | + |
| 50 | + public CertificateForGetLeafInstanceOutput chain(List<String> chain) { |
| 51 | + this.chain = chain; |
| 52 | + return this; |
| 53 | + } |
| 54 | + |
| 55 | + public CertificateForGetLeafInstanceOutput addChainItem(String chainItem) { |
| 56 | + if (this.chain == null) { |
| 57 | + this.chain = new ArrayList<String>(); |
| 58 | + } |
| 59 | + this.chain.add(chainItem); |
| 60 | + return this; |
| 61 | + } |
| 62 | + |
| 63 | + /** |
| 64 | + * Get chain |
| 65 | + * @return chain |
| 66 | + **/ |
| 67 | + @Schema(description = "") |
| 68 | + public List<String> getChain() { |
| 69 | + return chain; |
| 70 | + } |
| 71 | + |
| 72 | + public void setChain(List<String> chain) { |
| 73 | + this.chain = chain; |
| 74 | + } |
| 75 | + |
| 76 | + public CertificateForGetLeafInstanceOutput csr(String csr) { |
| 77 | + this.csr = csr; |
| 78 | + return this; |
| 79 | + } |
| 80 | + |
| 81 | + /** |
| 82 | + * Get csr |
| 83 | + * @return csr |
| 84 | + **/ |
| 85 | + @Schema(description = "") |
| 86 | + public String getCsr() { |
| 87 | + return csr; |
| 88 | + } |
| 89 | + |
| 90 | + public void setCsr(String csr) { |
| 91 | + this.csr = csr; |
| 92 | + } |
| 93 | + |
| 94 | + public CertificateForGetLeafInstanceOutput encryptChain(List<String> encryptChain) { |
| 95 | + this.encryptChain = encryptChain; |
| 96 | + return this; |
| 97 | + } |
| 98 | + |
| 99 | + public CertificateForGetLeafInstanceOutput addEncryptChainItem(String encryptChainItem) { |
| 100 | + if (this.encryptChain == null) { |
| 101 | + this.encryptChain = new ArrayList<String>(); |
| 102 | + } |
| 103 | + this.encryptChain.add(encryptChainItem); |
| 104 | + return this; |
| 105 | + } |
| 106 | + |
| 107 | + /** |
| 108 | + * Get encryptChain |
| 109 | + * @return encryptChain |
| 110 | + **/ |
| 111 | + @Schema(description = "") |
| 112 | + public List<String> getEncryptChain() { |
| 113 | + return encryptChain; |
| 114 | + } |
| 115 | + |
| 116 | + public void setEncryptChain(List<String> encryptChain) { |
| 117 | + this.encryptChain = encryptChain; |
| 118 | + } |
| 119 | + |
| 120 | + public CertificateForGetLeafInstanceOutput encryptKey(String encryptKey) { |
| 121 | + this.encryptKey = encryptKey; |
| 122 | + return this; |
| 123 | + } |
| 124 | + |
| 125 | + /** |
| 126 | + * Get encryptKey |
| 127 | + * @return encryptKey |
| 128 | + **/ |
| 129 | + @Schema(description = "") |
| 130 | + public String getEncryptKey() { |
| 131 | + return encryptKey; |
| 132 | + } |
| 133 | + |
| 134 | + public void setEncryptKey(String encryptKey) { |
| 135 | + this.encryptKey = encryptKey; |
| 136 | + } |
| 137 | + |
| 138 | + public CertificateForGetLeafInstanceOutput key(String key) { |
| 139 | + this.key = key; |
| 140 | + return this; |
| 141 | + } |
| 142 | + |
| 143 | + /** |
| 144 | + * Get key |
| 145 | + * @return key |
| 146 | + **/ |
| 147 | + @Schema(description = "") |
| 148 | + public String getKey() { |
| 149 | + return key; |
| 150 | + } |
| 151 | + |
| 152 | + public void setKey(String key) { |
| 153 | + this.key = key; |
| 154 | + } |
| 155 | + |
| 156 | + |
| 157 | + @Override |
| 158 | + public boolean equals(java.lang.Object o) { |
| 159 | + if (this == o) { |
| 160 | + return true; |
| 161 | + } |
| 162 | + if (o == null || getClass() != o.getClass()) { |
| 163 | + return false; |
| 164 | + } |
| 165 | + CertificateForGetLeafInstanceOutput certificateForGetLeafInstanceOutput = (CertificateForGetLeafInstanceOutput) o; |
| 166 | + return Objects.equals(this.chain, certificateForGetLeafInstanceOutput.chain) && |
| 167 | + Objects.equals(this.csr, certificateForGetLeafInstanceOutput.csr) && |
| 168 | + Objects.equals(this.encryptChain, certificateForGetLeafInstanceOutput.encryptChain) && |
| 169 | + Objects.equals(this.encryptKey, certificateForGetLeafInstanceOutput.encryptKey) && |
| 170 | + Objects.equals(this.key, certificateForGetLeafInstanceOutput.key); |
| 171 | + } |
| 172 | + |
| 173 | + @Override |
| 174 | + public int hashCode() { |
| 175 | + return Objects.hash(chain, csr, encryptChain, encryptKey, key); |
| 176 | + } |
| 177 | + |
| 178 | + |
| 179 | + @Override |
| 180 | + public String toString() { |
| 181 | + StringBuilder sb = new StringBuilder(); |
| 182 | + sb.append("class CertificateForGetLeafInstanceOutput {\n"); |
| 183 | + |
| 184 | + sb.append(" chain: ").append(toIndentedString(chain)).append("\n"); |
| 185 | + sb.append(" csr: ").append(toIndentedString(csr)).append("\n"); |
| 186 | + sb.append(" encryptChain: ").append(toIndentedString(encryptChain)).append("\n"); |
| 187 | + sb.append(" encryptKey: ").append(toIndentedString(encryptKey)).append("\n"); |
| 188 | + sb.append(" key: ").append(toIndentedString(key)).append("\n"); |
| 189 | + sb.append("}"); |
| 190 | + return sb.toString(); |
| 191 | + } |
| 192 | + |
| 193 | + /** |
| 194 | + * Convert the given object to string with each line indented by 4 spaces |
| 195 | + * (except the first line). |
| 196 | + */ |
| 197 | + private String toIndentedString(java.lang.Object o) { |
| 198 | + if (o == null) { |
| 199 | + return "null"; |
| 200 | + } |
| 201 | + return o.toString().replace("\n", "\n "); |
| 202 | + } |
| 203 | + |
| 204 | +} |
0 commit comments