/sdk/appservice/mgmt/src/main/java/com/azure/management/appservice/models/CertificateInner.java

http://github.com/WindowsAzure/azure-sdk-for-java · Java · 428 lines · 151 code · 52 blank · 225 comment · 0 complexity · 2a1707e8c34b6de07e570303aafeb56b MD5 · raw file

  1. // Copyright (c) Microsoft Corporation. All rights reserved.
  2. // Licensed under the MIT License.
  3. // Code generated by Microsoft (R) AutoRest Code Generator.
  4. package com.azure.management.appservice.models;
  5. import com.azure.core.annotation.Fluent;
  6. import com.azure.core.annotation.JsonFlatten;
  7. import com.azure.core.management.Resource;
  8. import com.azure.core.util.CoreUtils;
  9. import com.azure.management.appservice.HostingEnvironmentProfile;
  10. import com.azure.management.appservice.KeyVaultSecretStatus;
  11. import com.fasterxml.jackson.annotation.JsonProperty;
  12. import java.time.OffsetDateTime;
  13. import java.util.List;
  14. /** The Certificate model. */
  15. @JsonFlatten
  16. @Fluent
  17. public class CertificateInner extends Resource {
  18. /*
  19. * Friendly name of the certificate.
  20. */
  21. @JsonProperty(value = "properties.friendlyName", access = JsonProperty.Access.WRITE_ONLY)
  22. private String friendlyName;
  23. /*
  24. * Subject name of the certificate.
  25. */
  26. @JsonProperty(value = "properties.subjectName", access = JsonProperty.Access.WRITE_ONLY)
  27. private String subjectName;
  28. /*
  29. * Host names the certificate applies to.
  30. */
  31. @JsonProperty(value = "properties.hostNames")
  32. private List<String> hostNames;
  33. /*
  34. * Pfx blob.
  35. */
  36. @JsonProperty(value = "properties.pfxBlob")
  37. private byte[] pfxBlob;
  38. /*
  39. * App name.
  40. */
  41. @JsonProperty(value = "properties.siteName", access = JsonProperty.Access.WRITE_ONLY)
  42. private String siteName;
  43. /*
  44. * Self link.
  45. */
  46. @JsonProperty(value = "properties.selfLink", access = JsonProperty.Access.WRITE_ONLY)
  47. private String selfLink;
  48. /*
  49. * Certificate issuer.
  50. */
  51. @JsonProperty(value = "properties.issuer", access = JsonProperty.Access.WRITE_ONLY)
  52. private String issuer;
  53. /*
  54. * Certificate issue Date.
  55. */
  56. @JsonProperty(value = "properties.issueDate", access = JsonProperty.Access.WRITE_ONLY)
  57. private OffsetDateTime issueDate;
  58. /*
  59. * Certificate expiration date.
  60. */
  61. @JsonProperty(value = "properties.expirationDate", access = JsonProperty.Access.WRITE_ONLY)
  62. private OffsetDateTime expirationDate;
  63. /*
  64. * Certificate password.
  65. */
  66. @JsonProperty(value = "properties.password")
  67. private String password;
  68. /*
  69. * Certificate thumbprint.
  70. */
  71. @JsonProperty(value = "properties.thumbprint", access = JsonProperty.Access.WRITE_ONLY)
  72. private String thumbprint;
  73. /*
  74. * Is the certificate valid?.
  75. */
  76. @JsonProperty(value = "properties.valid", access = JsonProperty.Access.WRITE_ONLY)
  77. private Boolean valid;
  78. /*
  79. * Raw bytes of .cer file
  80. */
  81. @JsonProperty(value = "properties.cerBlob", access = JsonProperty.Access.WRITE_ONLY)
  82. private byte[] cerBlob;
  83. /*
  84. * Public key hash.
  85. */
  86. @JsonProperty(value = "properties.publicKeyHash", access = JsonProperty.Access.WRITE_ONLY)
  87. private String publicKeyHash;
  88. /*
  89. * Specification for the App Service Environment to use for the
  90. * certificate.
  91. */
  92. @JsonProperty(value = "properties.hostingEnvironmentProfile", access = JsonProperty.Access.WRITE_ONLY)
  93. private HostingEnvironmentProfile hostingEnvironmentProfile;
  94. /*
  95. * Key Vault Csm resource Id.
  96. */
  97. @JsonProperty(value = "properties.keyVaultId")
  98. private String keyVaultId;
  99. /*
  100. * Key Vault secret name.
  101. */
  102. @JsonProperty(value = "properties.keyVaultSecretName")
  103. private String keyVaultSecretName;
  104. /*
  105. * Status of the Key Vault secret.
  106. */
  107. @JsonProperty(value = "properties.keyVaultSecretStatus", access = JsonProperty.Access.WRITE_ONLY)
  108. private KeyVaultSecretStatus keyVaultSecretStatus;
  109. /*
  110. * Resource ID of the associated App Service plan, formatted as:
  111. * "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
  112. */
  113. @JsonProperty(value = "properties.serverFarmId")
  114. private String serverFarmId;
  115. /*
  116. * CNAME of the certificate to be issued via free certificate
  117. */
  118. @JsonProperty(value = "properties.canonicalName")
  119. private String canonicalName;
  120. /*
  121. * Kind of resource.
  122. */
  123. @JsonProperty(value = "kind")
  124. private String kind;
  125. /**
  126. * Get the friendlyName property: Friendly name of the certificate.
  127. *
  128. * @return the friendlyName value.
  129. */
  130. public String friendlyName() {
  131. return this.friendlyName;
  132. }
  133. /**
  134. * Get the subjectName property: Subject name of the certificate.
  135. *
  136. * @return the subjectName value.
  137. */
  138. public String subjectName() {
  139. return this.subjectName;
  140. }
  141. /**
  142. * Get the hostNames property: Host names the certificate applies to.
  143. *
  144. * @return the hostNames value.
  145. */
  146. public List<String> hostNames() {
  147. return this.hostNames;
  148. }
  149. /**
  150. * Set the hostNames property: Host names the certificate applies to.
  151. *
  152. * @param hostNames the hostNames value to set.
  153. * @return the CertificateInner object itself.
  154. */
  155. public CertificateInner withHostNames(List<String> hostNames) {
  156. this.hostNames = hostNames;
  157. return this;
  158. }
  159. /**
  160. * Get the pfxBlob property: Pfx blob.
  161. *
  162. * @return the pfxBlob value.
  163. */
  164. public byte[] pfxBlob() {
  165. return CoreUtils.clone(this.pfxBlob);
  166. }
  167. /**
  168. * Set the pfxBlob property: Pfx blob.
  169. *
  170. * @param pfxBlob the pfxBlob value to set.
  171. * @return the CertificateInner object itself.
  172. */
  173. public CertificateInner withPfxBlob(byte[] pfxBlob) {
  174. this.pfxBlob = CoreUtils.clone(pfxBlob);
  175. return this;
  176. }
  177. /**
  178. * Get the siteName property: App name.
  179. *
  180. * @return the siteName value.
  181. */
  182. public String siteName() {
  183. return this.siteName;
  184. }
  185. /**
  186. * Get the selfLink property: Self link.
  187. *
  188. * @return the selfLink value.
  189. */
  190. public String selfLink() {
  191. return this.selfLink;
  192. }
  193. /**
  194. * Get the issuer property: Certificate issuer.
  195. *
  196. * @return the issuer value.
  197. */
  198. public String issuer() {
  199. return this.issuer;
  200. }
  201. /**
  202. * Get the issueDate property: Certificate issue Date.
  203. *
  204. * @return the issueDate value.
  205. */
  206. public OffsetDateTime issueDate() {
  207. return this.issueDate;
  208. }
  209. /**
  210. * Get the expirationDate property: Certificate expiration date.
  211. *
  212. * @return the expirationDate value.
  213. */
  214. public OffsetDateTime expirationDate() {
  215. return this.expirationDate;
  216. }
  217. /**
  218. * Get the password property: Certificate password.
  219. *
  220. * @return the password value.
  221. */
  222. public String password() {
  223. return this.password;
  224. }
  225. /**
  226. * Set the password property: Certificate password.
  227. *
  228. * @param password the password value to set.
  229. * @return the CertificateInner object itself.
  230. */
  231. public CertificateInner withPassword(String password) {
  232. this.password = password;
  233. return this;
  234. }
  235. /**
  236. * Get the thumbprint property: Certificate thumbprint.
  237. *
  238. * @return the thumbprint value.
  239. */
  240. public String thumbprint() {
  241. return this.thumbprint;
  242. }
  243. /**
  244. * Get the valid property: Is the certificate valid?.
  245. *
  246. * @return the valid value.
  247. */
  248. public Boolean valid() {
  249. return this.valid;
  250. }
  251. /**
  252. * Get the cerBlob property: Raw bytes of .cer file.
  253. *
  254. * @return the cerBlob value.
  255. */
  256. public byte[] cerBlob() {
  257. return CoreUtils.clone(this.cerBlob);
  258. }
  259. /**
  260. * Get the publicKeyHash property: Public key hash.
  261. *
  262. * @return the publicKeyHash value.
  263. */
  264. public String publicKeyHash() {
  265. return this.publicKeyHash;
  266. }
  267. /**
  268. * Get the hostingEnvironmentProfile property: Specification for the App Service Environment to use for the
  269. * certificate.
  270. *
  271. * @return the hostingEnvironmentProfile value.
  272. */
  273. public HostingEnvironmentProfile hostingEnvironmentProfile() {
  274. return this.hostingEnvironmentProfile;
  275. }
  276. /**
  277. * Get the keyVaultId property: Key Vault Csm resource Id.
  278. *
  279. * @return the keyVaultId value.
  280. */
  281. public String keyVaultId() {
  282. return this.keyVaultId;
  283. }
  284. /**
  285. * Set the keyVaultId property: Key Vault Csm resource Id.
  286. *
  287. * @param keyVaultId the keyVaultId value to set.
  288. * @return the CertificateInner object itself.
  289. */
  290. public CertificateInner withKeyVaultId(String keyVaultId) {
  291. this.keyVaultId = keyVaultId;
  292. return this;
  293. }
  294. /**
  295. * Get the keyVaultSecretName property: Key Vault secret name.
  296. *
  297. * @return the keyVaultSecretName value.
  298. */
  299. public String keyVaultSecretName() {
  300. return this.keyVaultSecretName;
  301. }
  302. /**
  303. * Set the keyVaultSecretName property: Key Vault secret name.
  304. *
  305. * @param keyVaultSecretName the keyVaultSecretName value to set.
  306. * @return the CertificateInner object itself.
  307. */
  308. public CertificateInner withKeyVaultSecretName(String keyVaultSecretName) {
  309. this.keyVaultSecretName = keyVaultSecretName;
  310. return this;
  311. }
  312. /**
  313. * Get the keyVaultSecretStatus property: Status of the Key Vault secret.
  314. *
  315. * @return the keyVaultSecretStatus value.
  316. */
  317. public KeyVaultSecretStatus keyVaultSecretStatus() {
  318. return this.keyVaultSecretStatus;
  319. }
  320. /**
  321. * Get the serverFarmId property: Resource ID of the associated App Service plan, formatted as:
  322. * "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
  323. *
  324. * @return the serverFarmId value.
  325. */
  326. public String serverFarmId() {
  327. return this.serverFarmId;
  328. }
  329. /**
  330. * Set the serverFarmId property: Resource ID of the associated App Service plan, formatted as:
  331. * "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
  332. *
  333. * @param serverFarmId the serverFarmId value to set.
  334. * @return the CertificateInner object itself.
  335. */
  336. public CertificateInner withServerFarmId(String serverFarmId) {
  337. this.serverFarmId = serverFarmId;
  338. return this;
  339. }
  340. /**
  341. * Get the canonicalName property: CNAME of the certificate to be issued via free certificate.
  342. *
  343. * @return the canonicalName value.
  344. */
  345. public String canonicalName() {
  346. return this.canonicalName;
  347. }
  348. /**
  349. * Set the canonicalName property: CNAME of the certificate to be issued via free certificate.
  350. *
  351. * @param canonicalName the canonicalName value to set.
  352. * @return the CertificateInner object itself.
  353. */
  354. public CertificateInner withCanonicalName(String canonicalName) {
  355. this.canonicalName = canonicalName;
  356. return this;
  357. }
  358. /**
  359. * Get the kind property: Kind of resource.
  360. *
  361. * @return the kind value.
  362. */
  363. public String kind() {
  364. return this.kind;
  365. }
  366. /**
  367. * Set the kind property: Kind of resource.
  368. *
  369. * @param kind the kind value to set.
  370. * @return the CertificateInner object itself.
  371. */
  372. public CertificateInner withKind(String kind) {
  373. this.kind = kind;
  374. return this;
  375. }
  376. }