Class AppServiceCertificateOrderInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.appservice.fluent.models.AppServiceCertificateOrderInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class AppServiceCertificateOrderInner
extends com.azure.core.management.Resource
SSL certificate purchase order.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AppServiceCertificateOrderInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the appServiceCertificateNotRenewableReasons property: Reasons why App Service Certificate is not renewable at the current moment.Get the autoRenew property: <code>true</code> if the certificate should be automatically renewed when it expires; otherwise, <code>false</code>.Get the certificates property: State of the Key Vault secret.contact()
Get the contact property: Contact info.csr()
Get the csr property: Last CSR that was created for this order.Get the distinguishedName property: Certificate distinguished name.Get the domainVerificationToken property: Domain verification token.Get the expirationTime property: Certificate expiration time.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AppServiceCertificateOrderInner from the JsonReader.id()
Get the id property: Fully qualified resource Id for the resource.Get the intermediate property: Intermediate certificate.Get the isPrivateKeyExternal property: <code>true</code> if private key is external; otherwise, <code>false</code>.keySize()
Get the keySize property: Certificate key size.kind()
Get the kind property: Kind of resource.Get the lastCertificateIssuanceTime property: Certificate last issuance time.name()
Get the name property: The name of the resource.Get the nextAutoRenewalTimestamp property: Time stamp when the certificate would be auto renewed next.Get the productType property: Certificate product type.Get the provisioningState property: Status of certificate order.root()
Get the root property: Root certificate.Get the serialNumber property: Current serial number of the certificate.Get the signedCertificate property: Signed certificate.status()
Get the status property: Current order status.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: The type of the resource.void
validate()
Validates the instance.Get the validityInYears property: Duration in years (must be 1).withAutoRenew
(Boolean autoRenew) Set the autoRenew property: <code>true</code> if the certificate should be automatically renewed when it expires; otherwise, <code>false</code>.withCertificates
(Map<String, AppServiceCertificateInner> certificates) Set the certificates property: State of the Key Vault secret.Set the csr property: Last CSR that was created for this order.withDistinguishedName
(String distinguishedName) Set the distinguishedName property: Certificate distinguished name.withKeySize
(Integer keySize) Set the keySize property: Certificate key size.Set the kind property: Kind of resource.withLocation
(String location) withProductType
(CertificateProductType productType) Set the productType property: Certificate product type.withValidityInYears
(Integer validityInYears) Set the validityInYears property: Duration in years (must be 1).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
-
AppServiceCertificateOrderInner
public AppServiceCertificateOrderInner()Creates an instance of AppServiceCertificateOrderInner 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 AppServiceCertificateOrderInner 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
-
certificates
Get the certificates property: State of the Key Vault secret.- Returns:
- the certificates value.
-
withCertificates
public AppServiceCertificateOrderInner withCertificates(Map<String, AppServiceCertificateInner> certificates) Set the certificates property: State of the Key Vault secret.- Parameters:
certificates
- the certificates value to set.- Returns:
- the AppServiceCertificateOrderInner object itself.
-
distinguishedName
Get the distinguishedName property: Certificate distinguished name.- Returns:
- the distinguishedName value.
-
withDistinguishedName
Set the distinguishedName property: Certificate distinguished name.- Parameters:
distinguishedName
- the distinguishedName value to set.- Returns:
- the AppServiceCertificateOrderInner object itself.
-
domainVerificationToken
Get the domainVerificationToken property: Domain verification token.- Returns:
- the domainVerificationToken value.
-
validityInYears
Get the validityInYears property: Duration in years (must be 1).- Returns:
- the validityInYears value.
-
withValidityInYears
Set the validityInYears property: Duration in years (must be 1).- Parameters:
validityInYears
- the validityInYears value to set.- Returns:
- the AppServiceCertificateOrderInner object itself.
-
keySize
Get the keySize property: Certificate key size.- Returns:
- the keySize value.
-
withKeySize
Set the keySize property: Certificate key size.- Parameters:
keySize
- the keySize value to set.- Returns:
- the AppServiceCertificateOrderInner object itself.
-
productType
Get the productType property: Certificate product type.- Returns:
- the productType value.
-
withProductType
Set the productType property: Certificate product type.- Parameters:
productType
- the productType value to set.- Returns:
- the AppServiceCertificateOrderInner object itself.
-
autoRenew
Get the autoRenew property: <code>true</code> if the certificate should be automatically renewed when it expires; otherwise, <code>false</code>.- Returns:
- the autoRenew value.
-
withAutoRenew
Set the autoRenew property: <code>true</code> if the certificate should be automatically renewed when it expires; otherwise, <code>false</code>.- Parameters:
autoRenew
- the autoRenew value to set.- Returns:
- the AppServiceCertificateOrderInner object itself.
-
provisioningState
Get the provisioningState property: Status of certificate order.- Returns:
- the provisioningState value.
-
status
Get the status property: Current order status.- Returns:
- the status value.
-
signedCertificate
Get the signedCertificate property: Signed certificate.- Returns:
- the signedCertificate value.
-
csr
Get the csr property: Last CSR that was created for this order.- Returns:
- the csr value.
-
withCsr
Set the csr property: Last CSR that was created for this order.- Parameters:
csr
- the csr value to set.- Returns:
- the AppServiceCertificateOrderInner object itself.
-
intermediate
Get the intermediate property: Intermediate certificate.- Returns:
- the intermediate value.
-
root
Get the root property: Root certificate.- Returns:
- the root value.
-
serialNumber
Get the serialNumber property: Current serial number of the certificate.- Returns:
- the serialNumber value.
-
lastCertificateIssuanceTime
Get the lastCertificateIssuanceTime property: Certificate last issuance time.- Returns:
- the lastCertificateIssuanceTime value.
-
expirationTime
Get the expirationTime property: Certificate expiration time.- Returns:
- the expirationTime value.
-
isPrivateKeyExternal
Get the isPrivateKeyExternal property: <code>true</code> if private key is external; otherwise, <code>false</code>.- Returns:
- the isPrivateKeyExternal value.
-
appServiceCertificateNotRenewableReasons
Get the appServiceCertificateNotRenewableReasons property: Reasons why App Service Certificate is not renewable at the current moment.- Returns:
- the appServiceCertificateNotRenewableReasons value.
-
nextAutoRenewalTimestamp
Get the nextAutoRenewalTimestamp property: Time stamp when the certificate would be auto renewed next.- Returns:
- the nextAutoRenewalTimestamp value.
-
contact
Get the contact property: Contact info.- Returns:
- the contact value.
-
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
public static AppServiceCertificateOrderInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AppServiceCertificateOrderInner from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of AppServiceCertificateOrderInner 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 AppServiceCertificateOrderInner.
-