Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.appservice; import java.util.Map; import com.microsoft.azure.management.appservice.implementation.AppServiceCertificateInner; import org.joda.time.DateTime; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten;
ARM resource for a certificate order that is purchased through Azure.
/** * ARM resource for a certificate order that is purchased through Azure. */
@JsonFlatten public class AppServiceCertificateOrderPatchResource extends ProxyOnlyResource {
State of the Key Vault secret.
/** * State of the Key Vault secret. */
@JsonProperty(value = "properties.certificates") private Map<String, AppServiceCertificateInner> certificates;
Certificate distinguished name.
/** * Certificate distinguished name. */
@JsonProperty(value = "properties.distinguishedName") private String distinguishedName;
Domain verification token.
/** * Domain verification token. */
@JsonProperty(value = "properties.domainVerificationToken", access = JsonProperty.Access.WRITE_ONLY) private String domainVerificationToken;
Duration in years (must be between 1 and 3).
/** * Duration in years (must be between 1 and 3). */
@JsonProperty(value = "properties.validityInYears") private Integer validityInYears;
Certificate key size.
/** * Certificate key size. */
@JsonProperty(value = "properties.keySize") private Integer keySize;
Certificate product type. Possible values include: 'StandardDomainValidatedSsl', 'StandardDomainValidatedWildCardSsl'.
/** * Certificate product type. Possible values include: * 'StandardDomainValidatedSsl', 'StandardDomainValidatedWildCardSsl'. */
@JsonProperty(value = "properties.productType", required = true) private CertificateProductType productType;
<code>true</code> if the certificate should be automatically renewed when it expires; otherwise, <code>false</code>.
/** * &lt;code&gt;true&lt;/code&gt; if the certificate should be automatically * renewed when it expires; otherwise, &lt;code&gt;false&lt;/code&gt;. */
@JsonProperty(value = "properties.autoRenew") private Boolean autoRenew;
Status of certificate order. Possible values include: 'Succeeded', 'Failed', 'Canceled', 'InProgress', 'Deleting'.
/** * Status of certificate order. Possible values include: 'Succeeded', * 'Failed', 'Canceled', 'InProgress', 'Deleting'. */
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ProvisioningState provisioningState;
Current order status. Possible values include: 'Pendingissuance', 'Issued', 'Revoked', 'Canceled', 'Denied', 'Pendingrevocation', 'PendingRekey', 'Unused', 'Expired', 'NotSubmitted'.
/** * Current order status. Possible values include: 'Pendingissuance', * 'Issued', 'Revoked', 'Canceled', 'Denied', 'Pendingrevocation', * 'PendingRekey', 'Unused', 'Expired', 'NotSubmitted'. */
@JsonProperty(value = "properties.status", access = JsonProperty.Access.WRITE_ONLY) private CertificateOrderStatus status;
Signed certificate.
/** * Signed certificate. */
@JsonProperty(value = "properties.signedCertificate", access = JsonProperty.Access.WRITE_ONLY) private CertificateDetails signedCertificate;
Last CSR that was created for this order.
/** * Last CSR that was created for this order. */
@JsonProperty(value = "properties.csr") private String csr;
Intermediate certificate.
/** * Intermediate certificate. */
@JsonProperty(value = "properties.intermediate", access = JsonProperty.Access.WRITE_ONLY) private CertificateDetails intermediate;
Root certificate.
/** * Root certificate. */
@JsonProperty(value = "properties.root", access = JsonProperty.Access.WRITE_ONLY) private CertificateDetails root;
Current serial number of the certificate.
/** * Current serial number of the certificate. */
@JsonProperty(value = "properties.serialNumber", access = JsonProperty.Access.WRITE_ONLY) private String serialNumber;
Certificate last issuance time.
/** * Certificate last issuance time. */
@JsonProperty(value = "properties.lastCertificateIssuanceTime", access = JsonProperty.Access.WRITE_ONLY) private DateTime lastCertificateIssuanceTime;
Certificate expiration time.
/** * Certificate expiration time. */
@JsonProperty(value = "properties.expirationTime", access = JsonProperty.Access.WRITE_ONLY) private DateTime expirationTime;
<code>true</code> if private key is external; otherwise, <code>false</code>.
/** * &lt;code&gt;true&lt;/code&gt; if private key is external; otherwise, * &lt;code&gt;false&lt;/code&gt;. */
@JsonProperty(value = "properties.isPrivateKeyExternal", access = JsonProperty.Access.WRITE_ONLY) private Boolean isPrivateKeyExternal;
Reasons why App Service Certificate is not renewable at the current moment.
/** * Reasons why App Service Certificate is not renewable at the current * moment. */
@JsonProperty(value = "properties.appServiceCertificateNotRenewableReasons", access = JsonProperty.Access.WRITE_ONLY) private List<String> appServiceCertificateNotRenewableReasons;
Time stamp when the certificate would be auto renewed next.
/** * Time stamp when the certificate would be auto renewed next. */
@JsonProperty(value = "properties.nextAutoRenewalTimeStamp", access = JsonProperty.Access.WRITE_ONLY) private DateTime nextAutoRenewalTimeStamp;
Get state of the Key Vault secret.
Returns:the certificates value
/** * Get state of the Key Vault secret. * * @return the certificates value */
public Map<String, AppServiceCertificateInner> certificates() { return this.certificates; }
Set state of the Key Vault secret.
Params:
  • certificates – the certificates value to set
Returns:the AppServiceCertificateOrderPatchResource object itself.
/** * Set state of the Key Vault secret. * * @param certificates the certificates value to set * @return the AppServiceCertificateOrderPatchResource object itself. */
public AppServiceCertificateOrderPatchResource withCertificates(Map<String, AppServiceCertificateInner> certificates) { this.certificates = certificates; return this; }
Get certificate distinguished name.
Returns:the distinguishedName value
/** * Get certificate distinguished name. * * @return the distinguishedName value */
public String distinguishedName() { return this.distinguishedName; }
Set certificate distinguished name.
Params:
  • distinguishedName – the distinguishedName value to set
Returns:the AppServiceCertificateOrderPatchResource object itself.
/** * Set certificate distinguished name. * * @param distinguishedName the distinguishedName value to set * @return the AppServiceCertificateOrderPatchResource object itself. */
public AppServiceCertificateOrderPatchResource withDistinguishedName(String distinguishedName) { this.distinguishedName = distinguishedName; return this; }
Get domain verification token.
Returns:the domainVerificationToken value
/** * Get domain verification token. * * @return the domainVerificationToken value */
public String domainVerificationToken() { return this.domainVerificationToken; }
Get duration in years (must be between 1 and 3).
Returns:the validityInYears value
/** * Get duration in years (must be between 1 and 3). * * @return the validityInYears value */
public Integer validityInYears() { return this.validityInYears; }
Set duration in years (must be between 1 and 3).
Params:
  • validityInYears – the validityInYears value to set
Returns:the AppServiceCertificateOrderPatchResource object itself.
/** * Set duration in years (must be between 1 and 3). * * @param validityInYears the validityInYears value to set * @return the AppServiceCertificateOrderPatchResource object itself. */
public AppServiceCertificateOrderPatchResource withValidityInYears(Integer validityInYears) { this.validityInYears = validityInYears; return this; }
Get certificate key size.
Returns:the keySize value
/** * Get certificate key size. * * @return the keySize value */
public Integer keySize() { return this.keySize; }
Set certificate key size.
Params:
  • keySize – the keySize value to set
Returns:the AppServiceCertificateOrderPatchResource object itself.
/** * Set certificate key size. * * @param keySize the keySize value to set * @return the AppServiceCertificateOrderPatchResource object itself. */
public AppServiceCertificateOrderPatchResource withKeySize(Integer keySize) { this.keySize = keySize; return this; }
Get certificate product type. Possible values include: 'StandardDomainValidatedSsl', 'StandardDomainValidatedWildCardSsl'.
Returns:the productType value
/** * Get certificate product type. Possible values include: 'StandardDomainValidatedSsl', 'StandardDomainValidatedWildCardSsl'. * * @return the productType value */
public CertificateProductType productType() { return this.productType; }
Set certificate product type. Possible values include: 'StandardDomainValidatedSsl', 'StandardDomainValidatedWildCardSsl'.
Params:
  • productType – the productType value to set
Returns:the AppServiceCertificateOrderPatchResource object itself.
/** * Set certificate product type. Possible values include: 'StandardDomainValidatedSsl', 'StandardDomainValidatedWildCardSsl'. * * @param productType the productType value to set * @return the AppServiceCertificateOrderPatchResource object itself. */
public AppServiceCertificateOrderPatchResource withProductType(CertificateProductType productType) { this.productType = productType; return this; }
Get <code>true</code> if the certificate should be automatically renewed when it expires; otherwise, <code>false</code>.
Returns:the autoRenew value
/** * Get &lt;code&gt;true&lt;/code&gt; if the certificate should be automatically renewed when it expires; otherwise, &lt;code&gt;false&lt;/code&gt;. * * @return the autoRenew value */
public Boolean autoRenew() { return this.autoRenew; }
Set <code>true</code> if the certificate should be automatically renewed when it expires; otherwise, <code>false</code>.
Params:
  • autoRenew – the autoRenew value to set
Returns:the AppServiceCertificateOrderPatchResource object itself.
/** * Set &lt;code&gt;true&lt;/code&gt; if the certificate should be automatically renewed when it expires; otherwise, &lt;code&gt;false&lt;/code&gt;. * * @param autoRenew the autoRenew value to set * @return the AppServiceCertificateOrderPatchResource object itself. */
public AppServiceCertificateOrderPatchResource withAutoRenew(Boolean autoRenew) { this.autoRenew = autoRenew; return this; }
Get status of certificate order. Possible values include: 'Succeeded', 'Failed', 'Canceled', 'InProgress', 'Deleting'.
Returns:the provisioningState value
/** * Get status of certificate order. Possible values include: 'Succeeded', 'Failed', 'Canceled', 'InProgress', 'Deleting'. * * @return the provisioningState value */
public ProvisioningState provisioningState() { return this.provisioningState; }
Get current order status. Possible values include: 'Pendingissuance', 'Issued', 'Revoked', 'Canceled', 'Denied', 'Pendingrevocation', 'PendingRekey', 'Unused', 'Expired', 'NotSubmitted'.
Returns:the status value
/** * Get current order status. Possible values include: 'Pendingissuance', 'Issued', 'Revoked', 'Canceled', 'Denied', 'Pendingrevocation', 'PendingRekey', 'Unused', 'Expired', 'NotSubmitted'. * * @return the status value */
public CertificateOrderStatus status() { return this.status; }
Get signed certificate.
Returns:the signedCertificate value
/** * Get signed certificate. * * @return the signedCertificate value */
public CertificateDetails signedCertificate() { return this.signedCertificate; }
Get last CSR that was created for this order.
Returns:the csr value
/** * Get last CSR that was created for this order. * * @return the csr value */
public String csr() { return this.csr; }
Set last CSR that was created for this order.
Params:
  • csr – the csr value to set
Returns:the AppServiceCertificateOrderPatchResource object itself.
/** * Set last CSR that was created for this order. * * @param csr the csr value to set * @return the AppServiceCertificateOrderPatchResource object itself. */
public AppServiceCertificateOrderPatchResource withCsr(String csr) { this.csr = csr; return this; }
Get intermediate certificate.
Returns:the intermediate value
/** * Get intermediate certificate. * * @return the intermediate value */
public CertificateDetails intermediate() { return this.intermediate; }
Get root certificate.
Returns:the root value
/** * Get root certificate. * * @return the root value */
public CertificateDetails root() { return this.root; }
Get current serial number of the certificate.
Returns:the serialNumber value
/** * Get current serial number of the certificate. * * @return the serialNumber value */
public String serialNumber() { return this.serialNumber; }
Get certificate last issuance time.
Returns:the lastCertificateIssuanceTime value
/** * Get certificate last issuance time. * * @return the lastCertificateIssuanceTime value */
public DateTime lastCertificateIssuanceTime() { return this.lastCertificateIssuanceTime; }
Get certificate expiration time.
Returns:the expirationTime value
/** * Get certificate expiration time. * * @return the expirationTime value */
public DateTime expirationTime() { return this.expirationTime; }
Get <code>true</code> if private key is external; otherwise, <code>false</code>.
Returns:the isPrivateKeyExternal value
/** * Get &lt;code&gt;true&lt;/code&gt; if private key is external; otherwise, &lt;code&gt;false&lt;/code&gt;. * * @return the isPrivateKeyExternal value */
public Boolean isPrivateKeyExternal() { return this.isPrivateKeyExternal; }
Get reasons why App Service Certificate is not renewable at the current moment.
Returns:the appServiceCertificateNotRenewableReasons value
/** * Get reasons why App Service Certificate is not renewable at the current moment. * * @return the appServiceCertificateNotRenewableReasons value */
public List<String> appServiceCertificateNotRenewableReasons() { return this.appServiceCertificateNotRenewableReasons; }
Get time stamp when the certificate would be auto renewed next.
Returns:the nextAutoRenewalTimeStamp value
/** * Get time stamp when the certificate would be auto renewed next. * * @return the nextAutoRenewalTimeStamp value */
public DateTime nextAutoRenewalTimeStamp() { return this.nextAutoRenewalTimeStamp; } }