/** * 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.implementation; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.azure.Resource; import com.microsoft.azure.management.appservice.CertificateDetails; import com.microsoft.azure.management.appservice.CertificateOrderStatus; import com.microsoft.azure.management.appservice.CertificateProductType; import com.microsoft.azure.management.appservice.ProvisioningState; import com.microsoft.rest.serializer.JsonFlatten; import org.joda.time.DateTime; import java.util.List; import java.util.Map; /** * SSL certificate purchase order. */ @JsonFlatten public class AppServiceCertificateOrderInner extends Resource { /** * State of the Key Vault secret. */ @JsonProperty(value = "properties.certificates") private Map<String, AppServiceCertificateInner> certificates; /** * Certificate distinguished name. */ @JsonProperty(value = "properties.distinguishedName") private String distinguishedName; /** * Domain verification token. */ @JsonProperty(value = "properties.domainVerificationToken", access = JsonProperty.Access.WRITE_ONLY) private String domainVerificationToken; /** * Duration in years (must be between 1 and 3). */ @JsonProperty(value = "properties.validityInYears") private Integer validityInYears; /** * Certificate key size. */ @JsonProperty(value = "properties.keySize") private Integer keySize; /** * Certificate product type. Possible values include: * 'StandardDomainValidatedSsl', 'StandardDomainValidatedWildCardSsl'. */ @JsonProperty(value = "properties.productType") private CertificateProductType productType; /** * <code>true</code> if the certificate should be automatically * renewed when it expires; otherwise, <code>false</code>. */ @JsonProperty(value = "properties.autoRenew") private Boolean autoRenew; /** * 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'. */ @JsonProperty(value = "properties.status", access = JsonProperty.Access.WRITE_ONLY) private CertificateOrderStatus status; /** * Signed certificate. */ @JsonProperty(value = "properties.signedCertificate", access = JsonProperty.Access.WRITE_ONLY) private CertificateDetails signedCertificate; /** * Last CSR that was created for this order. */ @JsonProperty(value = "properties.csr") private String csr; /** * Intermediate certificate. */ @JsonProperty(value = "properties.intermediate", access = JsonProperty.Access.WRITE_ONLY) private CertificateDetails intermediate; /** * Root certificate. */ @JsonProperty(value = "properties.root", access = JsonProperty.Access.WRITE_ONLY) private CertificateDetails root; /** * Current serial number of the certificate. */ @JsonProperty(value = "properties.serialNumber", access = JsonProperty.Access.WRITE_ONLY) private String serialNumber; /** * Certificate last issuance time. */ @JsonProperty(value = "properties.lastCertificateIssuanceTime", access = JsonProperty.Access.WRITE_ONLY) private DateTime lastCertificateIssuanceTime; /** * 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>. */ @JsonProperty(value = "properties.isPrivateKeyExternal") private Boolean isPrivateKeyExternal; /** * Reasons why App Service Certificate is not renewable at the current * moment. */ @JsonProperty(value = "properties.appServiceCertificateNotRenewableReasons") private List<String> appServiceCertificateNotRenewableReasons; /** * Get the certificates value. * * @return the certificates value */ public Map<String, AppServiceCertificateInner> certificates() { return this.certificates; } /** * Set the certificates value. * * @param certificates the certificates value to set * @return the AppServiceCertificateOrderInner object itself. */ public AppServiceCertificateOrderInner withCertificates(Map<String, AppServiceCertificateInner> certificates) { this.certificates = certificates; return this; } /** * Get the distinguishedName value. * * @return the distinguishedName value */ public String distinguishedName() { return this.distinguishedName; } /** * Set the distinguishedName value. * * @param distinguishedName the distinguishedName value to set * @return the AppServiceCertificateOrderInner object itself. */ public AppServiceCertificateOrderInner withDistinguishedName(String distinguishedName) { this.distinguishedName = distinguishedName; return this; } /** * Get the domainVerificationToken value. * * @return the domainVerificationToken value */ public String domainVerificationToken() { return this.domainVerificationToken; } /** * Get the validityInYears value. * * @return the validityInYears value */ public Integer validityInYears() { return this.validityInYears; } /** * Set the validityInYears value. * * @param validityInYears the validityInYears value to set * @return the AppServiceCertificateOrderInner object itself. */ public AppServiceCertificateOrderInner withValidityInYears(Integer validityInYears) { this.validityInYears = validityInYears; return this; } /** * Get the keySize value. * * @return the keySize value */ public Integer keySize() { return this.keySize; } /** * Set the keySize value. * * @param keySize the keySize value to set * @return the AppServiceCertificateOrderInner object itself. */ public AppServiceCertificateOrderInner withKeySize(Integer keySize) { this.keySize = keySize; return this; } /** * Get the productType value. * * @return the productType value */ public CertificateProductType productType() { return this.productType; } /** * Set the productType value. * * @param productType the productType value to set * @return the AppServiceCertificateOrderInner object itself. */ public AppServiceCertificateOrderInner withProductType(CertificateProductType productType) { this.productType = productType; return this; } /** * Get the autoRenew value. * * @return the autoRenew value */ public Boolean autoRenew() { return this.autoRenew; } /** * Set the autoRenew value. * * @param autoRenew the autoRenew value to set * @return the AppServiceCertificateOrderInner object itself. */ public AppServiceCertificateOrderInner withAutoRenew(Boolean autoRenew) { this.autoRenew = autoRenew; return this; } /** * Get the provisioningState value. * * @return the provisioningState value */ public ProvisioningState provisioningState() { return this.provisioningState; } /** * Get the status value. * * @return the status value */ public CertificateOrderStatus status() { return this.status; } /** * Get the signedCertificate value. * * @return the signedCertificate value */ public CertificateDetails signedCertificate() { return this.signedCertificate; } /** * Get the csr value. * * @return the csr value */ public String csr() { return this.csr; } /** * Set the csr value. * * @param csr the csr value to set * @return the AppServiceCertificateOrderInner object itself. */ public AppServiceCertificateOrderInner withCsr(String csr) { this.csr = csr; return this; } /** * Get the intermediate value. * * @return the intermediate value */ public CertificateDetails intermediate() { return this.intermediate; } /** * Get the root value. * * @return the root value */ public CertificateDetails root() { return this.root; } /** * Get the serialNumber value. * * @return the serialNumber value */ public String serialNumber() { return this.serialNumber; } /** * Get the lastCertificateIssuanceTime value. * * @return the lastCertificateIssuanceTime value */ public DateTime lastCertificateIssuanceTime() { return this.lastCertificateIssuanceTime; } /** * Get the expirationTime value. * * @return the expirationTime value */ public DateTime expirationTime() { return this.expirationTime; } /** * Get the isPrivateKeyExternal value. * * @return the isPrivateKeyExternal value */ public Boolean isPrivateKeyExternal() { return this.isPrivateKeyExternal; } /** * Set the isPrivateKeyExternal value. * * @param isPrivateKeyExternal the isPrivateKeyExternal value to set * @return the AppServiceCertificateOrderInner object itself. */ public AppServiceCertificateOrderInner withIsPrivateKeyExternal(Boolean isPrivateKeyExternal) { this.isPrivateKeyExternal = isPrivateKeyExternal; return this; } /** * Get the appServiceCertificateNotRenewableReasons value. * * @return the appServiceCertificateNotRenewableReasons value */ public List<String> appServiceCertificateNotRenewableReasons() { return this.appServiceCertificateNotRenewableReasons; } /** * Set the appServiceCertificateNotRenewableReasons value. * * @param appServiceCertificateNotRenewableReasons the appServiceCertificateNotRenewableReasons value to set * @return the AppServiceCertificateOrderInner object itself. */ public AppServiceCertificateOrderInner withAppServiceCertificateNotRenewableReasons(List<String> appServiceCertificateNotRenewableReasons) { this.appServiceCertificateNotRenewableReasons = appServiceCertificateNotRenewableReasons; return this; } }