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.implementation;
import java.util.List;
import org.joda.time.DateTime;
import com.microsoft.azure.management.appservice.HostingEnvironmentProfile;
import com.microsoft.azure.management.appservice.KeyVaultSecretStatus;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.Resource;
SSL certificate for an app.
/**
* SSL certificate for an app.
*/
@JsonFlatten
public class CertificateInner extends Resource {
Friendly name of the certificate.
/**
* Friendly name of the certificate.
*/
@JsonProperty(value = "properties.friendlyName", access = JsonProperty.Access.WRITE_ONLY)
private String friendlyName;
Subject name of the certificate.
/**
* Subject name of the certificate.
*/
@JsonProperty(value = "properties.subjectName", access = JsonProperty.Access.WRITE_ONLY)
private String subjectName;
Host names the certificate applies to.
/**
* Host names the certificate applies to.
*/
@JsonProperty(value = "properties.hostNames")
private List<String> hostNames;
Pfx blob.
/**
* Pfx blob.
*/
@JsonProperty(value = "properties.pfxBlob")
private byte[] pfxBlob;
App name.
/**
* App name.
*/
@JsonProperty(value = "properties.siteName", access = JsonProperty.Access.WRITE_ONLY)
private String siteName;
Self link.
/**
* Self link.
*/
@JsonProperty(value = "properties.selfLink", access = JsonProperty.Access.WRITE_ONLY)
private String selfLink;
Certificate issuer.
/**
* Certificate issuer.
*/
@JsonProperty(value = "properties.issuer", access = JsonProperty.Access.WRITE_ONLY)
private String issuer;
Certificate issue Date.
/**
* Certificate issue Date.
*/
@JsonProperty(value = "properties.issueDate", access = JsonProperty.Access.WRITE_ONLY)
private DateTime issueDate;
Certificate expiration date.
/**
* Certificate expiration date.
*/
@JsonProperty(value = "properties.expirationDate", access = JsonProperty.Access.WRITE_ONLY)
private DateTime expirationDate;
Certificate password.
/**
* Certificate password.
*/
@JsonProperty(value = "properties.password", required = true)
private String password;
Certificate thumbprint.
/**
* Certificate thumbprint.
*/
@JsonProperty(value = "properties.thumbprint", access = JsonProperty.Access.WRITE_ONLY)
private String thumbprint;
Is the certificate valid?.
/**
* Is the certificate valid?.
*/
@JsonProperty(value = "properties.valid", access = JsonProperty.Access.WRITE_ONLY)
private Boolean valid;
Raw bytes of .cer file.
/**
* Raw bytes of .cer file.
*/
@JsonProperty(value = "properties.cerBlob", access = JsonProperty.Access.WRITE_ONLY)
private byte[] cerBlob;
Public key hash.
/**
* Public key hash.
*/
@JsonProperty(value = "properties.publicKeyHash", access = JsonProperty.Access.WRITE_ONLY)
private String publicKeyHash;
Specification for the App Service Environment to use for the
certificate.
/**
* Specification for the App Service Environment to use for the
* certificate.
*/
@JsonProperty(value = "properties.hostingEnvironmentProfile", access = JsonProperty.Access.WRITE_ONLY)
private HostingEnvironmentProfile hostingEnvironmentProfile;
Key Vault Csm resource Id.
/**
* Key Vault Csm resource Id.
*/
@JsonProperty(value = "properties.keyVaultId")
private String keyVaultId;
Key Vault secret name.
/**
* Key Vault secret name.
*/
@JsonProperty(value = "properties.keyVaultSecretName")
private String keyVaultSecretName;
Status of the Key Vault secret. Possible values include: 'Initialized',
'WaitingOnCertificateOrder', 'Succeeded', 'CertificateOrderFailed',
'OperationNotPermittedOnKeyVault',
'AzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultDoesNotExist',
'KeyVaultSecretDoesNotExist', 'UnknownError', 'ExternalPrivateKey',
'Unknown'.
/**
* Status of the Key Vault secret. Possible values include: 'Initialized',
* 'WaitingOnCertificateOrder', 'Succeeded', 'CertificateOrderFailed',
* 'OperationNotPermittedOnKeyVault',
* 'AzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultDoesNotExist',
* 'KeyVaultSecretDoesNotExist', 'UnknownError', 'ExternalPrivateKey',
* 'Unknown'.
*/
@JsonProperty(value = "properties.keyVaultSecretStatus", access = JsonProperty.Access.WRITE_ONLY)
private KeyVaultSecretStatus keyVaultSecretStatus;
Resource ID of the associated App Service plan, formatted as:
"/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
/**
* Resource ID of the associated App Service plan, formatted as:
* "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
*/
@JsonProperty(value = "properties.serverFarmId")
private String serverFarmId;
CNAME of the certificate to be issued via free certificate.
/**
* CNAME of the certificate to be issued via free certificate.
*/
@JsonProperty(value = "properties.canonicalName")
private String canonicalName;
Kind of resource.
/**
* Kind of resource.
*/
@JsonProperty(value = "kind")
private String kind;
Get friendly name of the certificate.
Returns: the friendlyName value
/**
* Get friendly name of the certificate.
*
* @return the friendlyName value
*/
public String friendlyName() {
return this.friendlyName;
}
Get subject name of the certificate.
Returns: the subjectName value
/**
* Get subject name of the certificate.
*
* @return the subjectName value
*/
public String subjectName() {
return this.subjectName;
}
Get host names the certificate applies to.
Returns: the hostNames value
/**
* Get host names the certificate applies to.
*
* @return the hostNames value
*/
public List<String> hostNames() {
return this.hostNames;
}
Set host names the certificate applies to.
Params: - hostNames – the hostNames value to set
Returns: the CertificateInner object itself.
/**
* Set host names the certificate applies to.
*
* @param hostNames the hostNames value to set
* @return the CertificateInner object itself.
*/
public CertificateInner withHostNames(List<String> hostNames) {
this.hostNames = hostNames;
return this;
}
Get pfx blob.
Returns: the pfxBlob value
/**
* Get pfx blob.
*
* @return the pfxBlob value
*/
public byte[] pfxBlob() {
return this.pfxBlob;
}
Set pfx blob.
Params: - pfxBlob – the pfxBlob value to set
Returns: the CertificateInner object itself.
/**
* Set pfx blob.
*
* @param pfxBlob the pfxBlob value to set
* @return the CertificateInner object itself.
*/
public CertificateInner withPfxBlob(byte[] pfxBlob) {
this.pfxBlob = pfxBlob;
return this;
}
Get app name.
Returns: the siteName value
/**
* Get app name.
*
* @return the siteName value
*/
public String siteName() {
return this.siteName;
}
Get self link.
Returns: the selfLink value
/**
* Get self link.
*
* @return the selfLink value
*/
public String selfLink() {
return this.selfLink;
}
Get certificate issuer.
Returns: the issuer value
/**
* Get certificate issuer.
*
* @return the issuer value
*/
public String issuer() {
return this.issuer;
}
Get certificate issue Date.
Returns: the issueDate value
/**
* Get certificate issue Date.
*
* @return the issueDate value
*/
public DateTime issueDate() {
return this.issueDate;
}
Get certificate expiration date.
Returns: the expirationDate value
/**
* Get certificate expiration date.
*
* @return the expirationDate value
*/
public DateTime expirationDate() {
return this.expirationDate;
}
Get certificate password.
Returns: the password value
/**
* Get certificate password.
*
* @return the password value
*/
public String password() {
return this.password;
}
Set certificate password.
Params: - password – the password value to set
Returns: the CertificateInner object itself.
/**
* Set certificate password.
*
* @param password the password value to set
* @return the CertificateInner object itself.
*/
public CertificateInner withPassword(String password) {
this.password = password;
return this;
}
Get certificate thumbprint.
Returns: the thumbprint value
/**
* Get certificate thumbprint.
*
* @return the thumbprint value
*/
public String thumbprint() {
return this.thumbprint;
}
Get is the certificate valid?.
Returns: the valid value
/**
* Get is the certificate valid?.
*
* @return the valid value
*/
public Boolean valid() {
return this.valid;
}
Get raw bytes of .cer file.
Returns: the cerBlob value
/**
* Get raw bytes of .cer file.
*
* @return the cerBlob value
*/
public byte[] cerBlob() {
return this.cerBlob;
}
Get public key hash.
Returns: the publicKeyHash value
/**
* Get public key hash.
*
* @return the publicKeyHash value
*/
public String publicKeyHash() {
return this.publicKeyHash;
}
Get specification for the App Service Environment to use for the certificate.
Returns: the hostingEnvironmentProfile value
/**
* Get specification for the App Service Environment to use for the certificate.
*
* @return the hostingEnvironmentProfile value
*/
public HostingEnvironmentProfile hostingEnvironmentProfile() {
return this.hostingEnvironmentProfile;
}
Get key Vault Csm resource Id.
Returns: the keyVaultId value
/**
* Get key Vault Csm resource Id.
*
* @return the keyVaultId value
*/
public String keyVaultId() {
return this.keyVaultId;
}
Set key Vault Csm resource Id.
Params: - keyVaultId – the keyVaultId value to set
Returns: the CertificateInner object itself.
/**
* Set key Vault Csm resource Id.
*
* @param keyVaultId the keyVaultId value to set
* @return the CertificateInner object itself.
*/
public CertificateInner withKeyVaultId(String keyVaultId) {
this.keyVaultId = keyVaultId;
return this;
}
Get key Vault secret name.
Returns: the keyVaultSecretName value
/**
* Get key Vault secret name.
*
* @return the keyVaultSecretName value
*/
public String keyVaultSecretName() {
return this.keyVaultSecretName;
}
Set key Vault secret name.
Params: - keyVaultSecretName – the keyVaultSecretName value to set
Returns: the CertificateInner object itself.
/**
* Set key Vault secret name.
*
* @param keyVaultSecretName the keyVaultSecretName value to set
* @return the CertificateInner object itself.
*/
public CertificateInner withKeyVaultSecretName(String keyVaultSecretName) {
this.keyVaultSecretName = keyVaultSecretName;
return this;
}
Get status of the Key Vault secret. Possible values include: 'Initialized', 'WaitingOnCertificateOrder', 'Succeeded', 'CertificateOrderFailed', 'OperationNotPermittedOnKeyVault', 'AzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultDoesNotExist', 'KeyVaultSecretDoesNotExist', 'UnknownError', 'ExternalPrivateKey', 'Unknown'.
Returns: the keyVaultSecretStatus value
/**
* Get status of the Key Vault secret. Possible values include: 'Initialized', 'WaitingOnCertificateOrder', 'Succeeded', 'CertificateOrderFailed', 'OperationNotPermittedOnKeyVault', 'AzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultDoesNotExist', 'KeyVaultSecretDoesNotExist', 'UnknownError', 'ExternalPrivateKey', 'Unknown'.
*
* @return the keyVaultSecretStatus value
*/
public KeyVaultSecretStatus keyVaultSecretStatus() {
return this.keyVaultSecretStatus;
}
Get resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
Returns: the serverFarmId value
/**
* Get resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
*
* @return the serverFarmId value
*/
public String serverFarmId() {
return this.serverFarmId;
}
Set resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
Params: - serverFarmId – the serverFarmId value to set
Returns: the CertificateInner object itself.
/**
* Set resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
*
* @param serverFarmId the serverFarmId value to set
* @return the CertificateInner object itself.
*/
public CertificateInner withServerFarmId(String serverFarmId) {
this.serverFarmId = serverFarmId;
return this;
}
Get cNAME of the certificate to be issued via free certificate.
Returns: the canonicalName value
/**
* Get cNAME of the certificate to be issued via free certificate.
*
* @return the canonicalName value
*/
public String canonicalName() {
return this.canonicalName;
}
Set cNAME of the certificate to be issued via free certificate.
Params: - canonicalName – the canonicalName value to set
Returns: the CertificateInner object itself.
/**
* Set cNAME of the certificate to be issued via free certificate.
*
* @param canonicalName the canonicalName value to set
* @return the CertificateInner object itself.
*/
public CertificateInner withCanonicalName(String canonicalName) {
this.canonicalName = canonicalName;
return this;
}
Get kind of resource.
Returns: the kind value
/**
* Get kind of resource.
*
* @return the kind value
*/
public String kind() {
return this.kind;
}
Set kind of resource.
Params: - kind – the kind value to set
Returns: the CertificateInner object itself.
/**
* Set kind of resource.
*
* @param kind the kind value to set
* @return the CertificateInner object itself.
*/
public CertificateInner withKind(String kind) {
this.kind = kind;
return this;
}
}