Class CertificateInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.appservice.fluent.models.CertificateInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class CertificateInner
extends com.azure.core.management.Resource
SSL certificate for an app.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the canonicalName property: CNAME of the certificate to be issued via free certificate.byte[]
cerBlob()
Get the cerBlob property: Raw bytes of .cer file.Get the domainValidationMethod property: Method of domain validation for free cert.Get the expirationDate property: Certificate expiration date.Get the friendlyName property: Friendly name of the certificate.static CertificateInner
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of CertificateInner from the JsonReader.Get the hostingEnvironmentProfile property: Specification for the App Service Environment to use for the certificate.Get the hostNames property: Host names the certificate applies to.id()
Get the id property: Fully qualified resource Id for the resource.Get the issueDate property: Certificate issue Date.issuer()
Get the issuer property: Certificate issuer.Get the keyVaultId property: Key Vault Csm resource Id.Get the keyVaultSecretName property: Key Vault secret name.Get the keyVaultSecretStatus property: Status of the Key Vault secret.kind()
Get the kind property: Kind of resource.name()
Get the name property: The name of the resource.password()
Get the password property: Certificate password.byte[]
pfxBlob()
Get the pfxBlob property: Pfx blob.Get the publicKeyHash property: Public key hash.selfLink()
Get the selfLink property: Self link.Get the serverFarmId property: Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".siteName()
Get the siteName property: App name.Get the subjectName property: Subject name of the certificate.Get the thumbprint property: Certificate thumbprint.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: The type of the resource.valid()
Get the valid property: Is the certificate valid?.void
validate()
Validates the instance.withCanonicalName
(String canonicalName) Set the canonicalName property: CNAME of the certificate to be issued via free certificate.withDomainValidationMethod
(String domainValidationMethod) Set the domainValidationMethod property: Method of domain validation for free cert.withHostNames
(List<String> hostNames) Set the hostNames property: Host names the certificate applies to.withKeyVaultId
(String keyVaultId) Set the keyVaultId property: Key Vault Csm resource Id.withKeyVaultSecretName
(String keyVaultSecretName) Set the keyVaultSecretName property: Key Vault secret name.Set the kind property: Kind of resource.withLocation
(String location) withPassword
(String password) Set the password property: Certificate password.withPfxBlob
(byte[] pfxBlob) Set the pfxBlob property: Pfx blob.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}".Methods inherited from class com.azure.core.management.Resource
location, tags
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CertificateInner
public CertificateInner()Creates an instance of CertificateInner class.
-
-
Method Details
-
kind
Get the kind property: Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind.- Returns:
- the kind value.
-
withKind
Set the kind property: Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind.- Parameters:
kind
- the kind value to set.- Returns:
- the CertificateInner object itself.
-
type
Get the type property: The type of the resource.- Overrides:
type
in classcom.azure.core.management.ProxyResource
- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
name
in classcom.azure.core.management.ProxyResource
- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
id
in classcom.azure.core.management.ProxyResource
- Returns:
- the id value.
-
withLocation
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTags
in classcom.azure.core.management.Resource
-
password
Get the password property: Certificate password.- Returns:
- the password value.
-
withPassword
Set the password property: Certificate password.- Parameters:
password
- the password value to set.- Returns:
- the CertificateInner object itself.
-
friendlyName
Get the friendlyName property: Friendly name of the certificate.- Returns:
- the friendlyName value.
-
subjectName
Get the subjectName property: Subject name of the certificate.- Returns:
- the subjectName value.
-
hostNames
Get the hostNames property: Host names the certificate applies to.- Returns:
- the hostNames value.
-
withHostNames
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
Set the pfxBlob property: Pfx blob.- Parameters:
pfxBlob
- the pfxBlob value to set.- Returns:
- the CertificateInner object itself.
-
siteName
Get the siteName property: App name.- Returns:
- the siteName value.
-
selfLink
Get the selfLink property: Self link.- Returns:
- the selfLink value.
-
issuer
Get the issuer property: Certificate issuer.- Returns:
- the issuer value.
-
issueDate
Get the issueDate property: Certificate issue Date.- Returns:
- the issueDate value.
-
expirationDate
Get the expirationDate property: Certificate expiration date.- Returns:
- the expirationDate value.
-
thumbprint
Get the thumbprint property: Certificate thumbprint.- Returns:
- the thumbprint value.
-
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
Get the publicKeyHash property: Public key hash.- Returns:
- the publicKeyHash value.
-
hostingEnvironmentProfile
Get the hostingEnvironmentProfile property: Specification for the App Service Environment to use for the certificate.- Returns:
- the hostingEnvironmentProfile value.
-
keyVaultId
Get the keyVaultId property: Key Vault Csm resource Id.- Returns:
- the keyVaultId value.
-
withKeyVaultId
Set the keyVaultId property: Key Vault Csm resource Id.- Parameters:
keyVaultId
- the keyVaultId value to set.- Returns:
- the CertificateInner object itself.
-
keyVaultSecretName
Get the keyVaultSecretName property: Key Vault secret name.- Returns:
- the keyVaultSecretName value.
-
withKeyVaultSecretName
Set the keyVaultSecretName property: Key Vault secret name.- Parameters:
keyVaultSecretName
- the keyVaultSecretName value to set.- Returns:
- the CertificateInner object itself.
-
keyVaultSecretStatus
Get the keyVaultSecretStatus property: Status of the Key Vault secret.- Returns:
- the keyVaultSecretStatus value.
-
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
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
Get the canonicalName property: CNAME of the certificate to be issued via free certificate.- Returns:
- the canonicalName value.
-
withCanonicalName
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
Get the domainValidationMethod property: Method of domain validation for free cert.- Returns:
- the domainValidationMethod value.
-
withDomainValidationMethod
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.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
- Overrides:
toJson
in classcom.azure.core.management.Resource
- Throws:
IOException
-
fromJson
Reads an instance of CertificateInner from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of CertificateInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the CertificateInner.
-