Class CertificateInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.appservice.fluent.models.CertificateInner
-
public final class CertificateInner extends com.azure.core.management.ResourceSSL certificate for an app.
-
-
Constructor Summary
Constructors Constructor Description CertificateInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcanonicalName()Get the canonicalName property: CNAME of the certificate to be issued via free certificate.byte[]cerBlob()Get the cerBlob property: Raw bytes of .cer file.StringdomainValidationMethod()Get the domainValidationMethod property: Method of domain validation for free cert.OffsetDateTimeexpirationDate()Get the expirationDate property: Certificate expiration date.StringfriendlyName()Get the friendlyName property: Friendly name of the certificate.HostingEnvironmentProfilehostingEnvironmentProfile()Get the hostingEnvironmentProfile property: Specification for the App Service Environment to use for the certificate.List<String>hostNames()Get the hostNames property: Host names the certificate applies to.OffsetDateTimeissueDate()Get the issueDate property: Certificate issue Date.Stringissuer()Get the issuer property: Certificate issuer.StringkeyVaultId()Get the keyVaultId property: Key Vault Csm resource Id.StringkeyVaultSecretName()Get the keyVaultSecretName property: Key Vault secret name.KeyVaultSecretStatuskeyVaultSecretStatus()Get the keyVaultSecretStatus property: Status of the Key Vault secret.Stringkind()Get the kind property: Kind of resource.Stringpassword()Get the password property: Certificate password.byte[]pfxBlob()Get the pfxBlob property: Pfx blob.StringpublicKeyHash()Get the publicKeyHash property: Public key hash.StringselfLink()Get the selfLink property: Self link.StringserverFarmId()Get the serverFarmId property: Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms" + "/{appServicePlanName}".StringsiteName()Get the siteName property: App name.StringsubjectName()Get the subjectName property: Subject name of the certificate.Stringthumbprint()Get the thumbprint property: Certificate thumbprint.Booleanvalid()Get the valid property: Is the certificate valid?.voidvalidate()Validates the instance.CertificateInnerwithCanonicalName(String canonicalName)Set the canonicalName property: CNAME of the certificate to be issued via free certificate.CertificateInnerwithDomainValidationMethod(String domainValidationMethod)Set the domainValidationMethod property: Method of domain validation for free cert.CertificateInnerwithHostNames(List<String> hostNames)Set the hostNames property: Host names the certificate applies to.CertificateInnerwithKeyVaultId(String keyVaultId)Set the keyVaultId property: Key Vault Csm resource Id.CertificateInnerwithKeyVaultSecretName(String keyVaultSecretName)Set the keyVaultSecretName property: Key Vault secret name.CertificateInnerwithKind(String kind)Set the kind property: Kind of resource.CertificateInnerwithLocation(String location)CertificateInnerwithPassword(String password)Set the password property: Certificate password.CertificateInnerwithPfxBlob(byte[] pfxBlob)Set the pfxBlob property: Pfx blob.CertificateInnerwithServerFarmId(String serverFarmId)Set the serverFarmId property: Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms" + "/{appServicePlanName}".CertificateInnerwithTags(Map<String,String> tags)
-
-
-
Method Detail
-
kind
public String kind()
Get the kind property: Kind of resource.- Returns:
- the kind value.
-
withKind
public CertificateInner withKind(String kind)
Set the kind property: Kind of resource.- Parameters:
kind- the kind value to set.- Returns:
- the CertificateInner object itself.
-
withLocation
public CertificateInner withLocation(String location)
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
public CertificateInner withTags(Map<String,String> tags)
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
password
public String password()
Get the password property: Certificate password.- Returns:
- the password value.
-
withPassword
public CertificateInner withPassword(String password)
Set the password property: Certificate password.- Parameters:
password- the password value to set.- Returns:
- the CertificateInner object itself.
-
friendlyName
public String friendlyName()
Get the friendlyName property: Friendly name of the certificate.- Returns:
- the friendlyName value.
-
subjectName
public String subjectName()
Get the subjectName property: Subject name of the certificate.- Returns:
- the subjectName value.
-
hostNames
public List<String> hostNames()
Get the hostNames property: Host names the certificate applies to.- Returns:
- the hostNames value.
-
withHostNames
public CertificateInner withHostNames(List<String> hostNames)
Set the hostNames property: Host names the certificate applies to.- Parameters:
hostNames- the hostNames value to set.- Returns:
- the CertificateInner object itself.
-
pfxBlob
public byte[] pfxBlob()
Get the pfxBlob property: Pfx blob.- Returns:
- the pfxBlob value.
-
withPfxBlob
public CertificateInner withPfxBlob(byte[] pfxBlob)
Set the pfxBlob property: Pfx blob.- Parameters:
pfxBlob- the pfxBlob value to set.- Returns:
- the CertificateInner object itself.
-
siteName
public String siteName()
Get the siteName property: App name.- Returns:
- the siteName value.
-
selfLink
public String selfLink()
Get the selfLink property: Self link.- Returns:
- the selfLink value.
-
issuer
public String issuer()
Get the issuer property: Certificate issuer.- Returns:
- the issuer value.
-
issueDate
public OffsetDateTime issueDate()
Get the issueDate property: Certificate issue Date.- Returns:
- the issueDate value.
-
expirationDate
public OffsetDateTime expirationDate()
Get the expirationDate property: Certificate expiration date.- Returns:
- the expirationDate value.
-
thumbprint
public String thumbprint()
Get the thumbprint property: Certificate thumbprint.- Returns:
- the thumbprint value.
-
valid
public Boolean valid()
Get the valid property: Is the certificate valid?.- Returns:
- the valid value.
-
cerBlob
public byte[] cerBlob()
Get the cerBlob property: Raw bytes of .cer file.- Returns:
- the cerBlob value.
-
publicKeyHash
public String publicKeyHash()
Get the publicKeyHash property: Public key hash.- Returns:
- the publicKeyHash value.
-
hostingEnvironmentProfile
public HostingEnvironmentProfile hostingEnvironmentProfile()
Get the hostingEnvironmentProfile property: Specification for the App Service Environment to use for the certificate.- Returns:
- the hostingEnvironmentProfile value.
-
keyVaultId
public String keyVaultId()
Get the keyVaultId property: Key Vault Csm resource Id.- Returns:
- the keyVaultId value.
-
withKeyVaultId
public CertificateInner withKeyVaultId(String keyVaultId)
Set the keyVaultId property: Key Vault Csm resource Id.- Parameters:
keyVaultId- the keyVaultId value to set.- Returns:
- the CertificateInner object itself.
-
keyVaultSecretName
public String keyVaultSecretName()
Get the keyVaultSecretName property: Key Vault secret name.- Returns:
- the keyVaultSecretName value.
-
withKeyVaultSecretName
public CertificateInner withKeyVaultSecretName(String keyVaultSecretName)
Set the keyVaultSecretName property: Key Vault secret name.- Parameters:
keyVaultSecretName- the keyVaultSecretName value to set.- Returns:
- the CertificateInner object itself.
-
keyVaultSecretStatus
public KeyVaultSecretStatus keyVaultSecretStatus()
Get the keyVaultSecretStatus property: Status of the Key Vault secret.- Returns:
- the keyVaultSecretStatus value.
-
serverFarmId
public String serverFarmId()
Get the serverFarmId property: Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms" + "/{appServicePlanName}".- Returns:
- the serverFarmId value.
-
withServerFarmId
public CertificateInner withServerFarmId(String serverFarmId)
Set the serverFarmId property: Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms" + "/{appServicePlanName}".- Parameters:
serverFarmId- the serverFarmId value to set.- Returns:
- the CertificateInner object itself.
-
canonicalName
public String canonicalName()
Get the canonicalName property: CNAME of the certificate to be issued via free certificate.- Returns:
- the canonicalName value.
-
withCanonicalName
public CertificateInner withCanonicalName(String canonicalName)
Set the canonicalName property: CNAME of the certificate to be issued via free certificate.- Parameters:
canonicalName- the canonicalName value to set.- Returns:
- the CertificateInner object itself.
-
domainValidationMethod
public String domainValidationMethod()
Get the domainValidationMethod property: Method of domain validation for free cert.- Returns:
- the domainValidationMethod value.
-
withDomainValidationMethod
public CertificateInner withDomainValidationMethod(String domainValidationMethod)
Set the domainValidationMethod property: Method of domain validation for free cert.- Parameters:
domainValidationMethod- the domainValidationMethod value to set.- Returns:
- the CertificateInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-