Partilhar via


AppServiceCertificateOrderInner Class

public final class AppServiceCertificateOrderInner
extends Resource

SSL certificate purchase order.

Constructor Summary

Constructor Description
AppServiceCertificateOrderInner()

Creates an instance of AppServiceCertificateOrderInner class.

Method Summary

Modifier and Type Method and Description
List<ResourceNotRenewableReason> appServiceCertificateNotRenewableReasons()

Get the appServiceCertificateNotRenewableReasons property: Reasons why App Service Certificate is not renewable at the current moment.

Boolean autoRenew()

Get the autoRenew property: true if the certificate should be automatically renewed when it expires; otherwise, false.

Map<String,AppServiceCertificateInner> certificates()

Get the certificates property: State of the Key Vault secret.

CertificateOrderContact contact()

Get the contact property: Contact info.

String csr()

Get the csr property: Last CSR that was created for this order.

String distinguishedName()

Get the distinguishedName property: Certificate distinguished name.

String domainVerificationToken()

Get the domainVerificationToken property: Domain verification token.

OffsetDateTime expirationTime()

Get the expirationTime property: Certificate expiration time.

static AppServiceCertificateOrderInner fromJson(JsonReader jsonReader)

Reads an instance of AppServiceCertificateOrderInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

CertificateDetails intermediate()

Get the intermediate property: Intermediate certificate.

Boolean isPrivateKeyExternal()

Get the isPrivateKeyExternal property: true if private key is external; otherwise, false.

Integer keySize()

Get the keySize property: Certificate key size.

String kind()

Get the kind property: Kind of resource.

OffsetDateTime lastCertificateIssuanceTime()

Get the lastCertificateIssuanceTime property: Certificate last issuance time.

String name()

Get the name property: The name of the resource.

OffsetDateTime nextAutoRenewalTimestamp()

Get the nextAutoRenewalTimestamp property: Time stamp when the certificate would be auto renewed next.

CertificateProductType productType()

Get the productType property: Certificate product type.

ProvisioningState provisioningState()

Get the provisioningState property: Status of certificate order.

CertificateDetails root()

Get the root property: Root certificate.

String serialNumber()

Get the serialNumber property: Current serial number of the certificate.

CertificateDetails signedCertificate()

Get the signedCertificate property: Signed certificate.

CertificateOrderStatus status()

Get the status property: Current order status.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

Integer validityInYears()

Get the validityInYears property: Duration in years (must be 1).

AppServiceCertificateOrderInner withAutoRenew(Boolean autoRenew)

Set the autoRenew property: true if the certificate should be automatically renewed when it expires; otherwise, false.

AppServiceCertificateOrderInner withCertificates(Map<String,AppServiceCertificateInner> certificates)

Set the certificates property: State of the Key Vault secret.

AppServiceCertificateOrderInner withCsr(String csr)

Set the csr property: Last CSR that was created for this order.

AppServiceCertificateOrderInner withDistinguishedName(String distinguishedName)

Set the distinguishedName property: Certificate distinguished name.

AppServiceCertificateOrderInner withKeySize(Integer keySize)

Set the keySize property: Certificate key size.

AppServiceCertificateOrderInner withKind(String kind)

Set the kind property: Kind of resource.

AppServiceCertificateOrderInner withLocation(String location)
AppServiceCertificateOrderInner withProductType(CertificateProductType productType)

Set the productType property: Certificate product type.

AppServiceCertificateOrderInner withTags(Map<String,String> tags)
AppServiceCertificateOrderInner withValidityInYears(Integer validityInYears)

Set the validityInYears property: Duration in years (must be 1).

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

AppServiceCertificateOrderInner

public AppServiceCertificateOrderInner()

Creates an instance of AppServiceCertificateOrderInner class.

Method Details

appServiceCertificateNotRenewableReasons

public List appServiceCertificateNotRenewableReasons()

Get the appServiceCertificateNotRenewableReasons property: Reasons why App Service Certificate is not renewable at the current moment.

Returns:

the appServiceCertificateNotRenewableReasons value.

autoRenew

public Boolean autoRenew()

Get the autoRenew property: true if the certificate should be automatically renewed when it expires; otherwise, false.

Returns:

the autoRenew value.

certificates

public Map certificates()

Get the certificates property: State of the Key Vault secret.

Returns:

the certificates value.

contact

public CertificateOrderContact contact()

Get the contact property: Contact info.

Returns:

the contact value.

csr

public String csr()

Get the csr property: Last CSR that was created for this order.

Returns:

the csr value.

distinguishedName

public String distinguishedName()

Get the distinguishedName property: Certificate distinguished name.

Returns:

the distinguishedName value.

domainVerificationToken

public String domainVerificationToken()

Get the domainVerificationToken property: Domain verification token.

Returns:

the domainVerificationToken value.

expirationTime

public OffsetDateTime expirationTime()

Get the expirationTime property: Certificate expiration time.

Returns:

the expirationTime value.

fromJson

public static AppServiceCertificateOrderInner fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

AppServiceCertificateOrderInner.id()

Returns:

the id value.

intermediate

public CertificateDetails intermediate()

Get the intermediate property: Intermediate certificate.

Returns:

the intermediate value.

isPrivateKeyExternal

public Boolean isPrivateKeyExternal()

Get the isPrivateKeyExternal property: true if private key is external; otherwise, false.

Returns:

the isPrivateKeyExternal value.

keySize

public Integer keySize()

Get the keySize property: Certificate key size.

Returns:

the keySize value.

kind

public String 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.

lastCertificateIssuanceTime

public OffsetDateTime lastCertificateIssuanceTime()

Get the lastCertificateIssuanceTime property: Certificate last issuance time.

Returns:

the lastCertificateIssuanceTime value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

AppServiceCertificateOrderInner.name()

Returns:

the name value.

nextAutoRenewalTimestamp

public OffsetDateTime nextAutoRenewalTimestamp()

Get the nextAutoRenewalTimestamp property: Time stamp when the certificate would be auto renewed next.

Returns:

the nextAutoRenewalTimestamp value.

productType

public CertificateProductType productType()

Get the productType property: Certificate product type.

Returns:

the productType value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Status of certificate order.

Returns:

the provisioningState value.

root

public CertificateDetails root()

Get the root property: Root certificate.

Returns:

the root value.

serialNumber

public String serialNumber()

Get the serialNumber property: Current serial number of the certificate.

Returns:

the serialNumber value.

signedCertificate

public CertificateDetails signedCertificate()

Get the signedCertificate property: Signed certificate.

Returns:

the signedCertificate value.

status

public CertificateOrderStatus status()

Get the status property: Current order status.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AppServiceCertificateOrderInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

AppServiceCertificateOrderInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

validityInYears

public Integer validityInYears()

Get the validityInYears property: Duration in years (must be 1).

Returns:

the validityInYears value.

withAutoRenew

public AppServiceCertificateOrderInner withAutoRenew(Boolean autoRenew)

Set the autoRenew property: true if the certificate should be automatically renewed when it expires; otherwise, false.

Parameters:

autoRenew - the autoRenew value to set.

Returns:

the AppServiceCertificateOrderInner object itself.

withCertificates

public AppServiceCertificateOrderInner withCertificates(Map certificates)

Set the certificates property: State of the Key Vault secret.

Parameters:

certificates - the certificates value to set.

Returns:

the AppServiceCertificateOrderInner object itself.

withCsr

public AppServiceCertificateOrderInner withCsr(String csr)

Set the csr property: Last CSR that was created for this order.

Parameters:

csr - the csr value to set.

Returns:

the AppServiceCertificateOrderInner object itself.

withDistinguishedName

public AppServiceCertificateOrderInner withDistinguishedName(String distinguishedName)

Set the distinguishedName property: Certificate distinguished name.

Parameters:

distinguishedName - the distinguishedName value to set.

Returns:

the AppServiceCertificateOrderInner object itself.

withKeySize

public AppServiceCertificateOrderInner withKeySize(Integer keySize)

Set the keySize property: Certificate key size.

Parameters:

keySize - the keySize value to set.

Returns:

the AppServiceCertificateOrderInner object itself.

withKind

public AppServiceCertificateOrderInner withKind(String kind)

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.

withLocation

public AppServiceCertificateOrderInner withLocation(String location)

Overrides:

AppServiceCertificateOrderInner.withLocation(String location)

Parameters:

location

withProductType

public AppServiceCertificateOrderInner withProductType(CertificateProductType productType)

Set the productType property: Certificate product type.

Parameters:

productType - the productType value to set.

Returns:

the AppServiceCertificateOrderInner object itself.

withTags

public AppServiceCertificateOrderInner withTags(Map tags)

Overrides:

AppServiceCertificateOrderInner.withTags(Map<String,String> tags)

Parameters:

tags

withValidityInYears

public AppServiceCertificateOrderInner withValidityInYears(Integer validityInYears)

Set the validityInYears property: Duration in years (must be 1).

Parameters:

validityInYears - the validityInYears value to set.

Returns:

the AppServiceCertificateOrderInner object itself.

Applies to