AppServiceCertificateOrderPatchResource Class

public final class AppServiceCertificateOrderPatchResource
extends ProxyOnlyResource

ARM resource for a certificate order that is purchased through Azure.

Constructor Summary

Constructor Description
AppServiceCertificateOrderPatchResource()

Creates an instance of AppServiceCertificateOrderPatchResource 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 AppServiceCertificateOrderPatchResource fromJson(JsonReader jsonReader)

Reads an instance of AppServiceCertificateOrderPatchResource from the JsonReader.

String id()

Get the id property: Resource Id.

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.

OffsetDateTime lastCertificateIssuanceTime()

Get the lastCertificateIssuanceTime property: Certificate last issuance time.

String name()

Get the name property: Resource Name.

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: Resource type.

void validate()

Validates the instance.

Integer validityInYears()

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

AppServiceCertificateOrderPatchResource withAutoRenew(Boolean autoRenew)

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

AppServiceCertificateOrderPatchResource withCertificates(Map<String,AppServiceCertificateInner> certificates)

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

AppServiceCertificateOrderPatchResource withCsr(String csr)

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

AppServiceCertificateOrderPatchResource withDistinguishedName(String distinguishedName)

Set the distinguishedName property: Certificate distinguished name.

AppServiceCertificateOrderPatchResource withKeySize(Integer keySize)

Set the keySize property: Certificate key size.

AppServiceCertificateOrderPatchResource withKind(String kind)

Set the kind property: Kind of resource.

AppServiceCertificateOrderPatchResource withProductType(CertificateProductType productType)

Set the productType property: Certificate product type.

AppServiceCertificateOrderPatchResource withValidityInYears(Integer validityInYears)

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

Methods inherited from ProxyOnlyResource

Methods inherited from java.lang.Object

Constructor Details

AppServiceCertificateOrderPatchResource

public AppServiceCertificateOrderPatchResource()

Creates an instance of AppServiceCertificateOrderPatchResource class.

Method Details

appServiceCertificateNotRenewableReasons

public List<ResourceNotRenewableReason> 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<String,AppServiceCertificateInner> 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 AppServiceCertificateOrderPatchResource fromJson(JsonReader jsonReader)

Reads an instance of AppServiceCertificateOrderPatchResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AppServiceCertificateOrderPatchResource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the AppServiceCertificateOrderPatchResource.

id

public String id()

Get the id property: Resource Id.

Overrides:

AppServiceCertificateOrderPatchResource.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.

lastCertificateIssuanceTime

public OffsetDateTime lastCertificateIssuanceTime()

Get the lastCertificateIssuanceTime property: Certificate last issuance time.

Returns:

the lastCertificateIssuanceTime value.

name

public String name()

Get the name property: Resource Name.

Overrides:

AppServiceCertificateOrderPatchResource.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:

AppServiceCertificateOrderPatchResource.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Resource type.

Overrides:

AppServiceCertificateOrderPatchResource.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

AppServiceCertificateOrderPatchResource.validate()

validityInYears

public Integer validityInYears()

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

Returns:

the validityInYears value.

withAutoRenew

public AppServiceCertificateOrderPatchResource 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 AppServiceCertificateOrderPatchResource object itself.

withCertificates

public AppServiceCertificateOrderPatchResource withCertificates(Map<String,AppServiceCertificateInner> certificates)

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

Parameters:

certificates - the certificates value to set.

Returns:

the AppServiceCertificateOrderPatchResource object itself.

withCsr

public AppServiceCertificateOrderPatchResource withCsr(String csr)

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

Parameters:

csr - the csr value to set.

Returns:

the AppServiceCertificateOrderPatchResource object itself.

withDistinguishedName

public AppServiceCertificateOrderPatchResource withDistinguishedName(String distinguishedName)

Set the distinguishedName property: Certificate distinguished name.

Parameters:

distinguishedName - the distinguishedName value to set.

Returns:

the AppServiceCertificateOrderPatchResource object itself.

withKeySize

public AppServiceCertificateOrderPatchResource withKeySize(Integer keySize)

Set the keySize property: Certificate key size.

Parameters:

keySize - the keySize value to set.

Returns:

the AppServiceCertificateOrderPatchResource object itself.

withKind

public AppServiceCertificateOrderPatchResource withKind(String kind)

Set the kind property: Kind of resource.

Overrides:

AppServiceCertificateOrderPatchResource.withKind(String kind)

Parameters:

kind

withProductType

public AppServiceCertificateOrderPatchResource withProductType(CertificateProductType productType)

Set the productType property: Certificate product type.

Parameters:

productType - the productType value to set.

Returns:

the AppServiceCertificateOrderPatchResource object itself.

withValidityInYears

public AppServiceCertificateOrderPatchResource withValidityInYears(Integer validityInYears)

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

Parameters:

validityInYears - the validityInYears value to set.

Returns:

the AppServiceCertificateOrderPatchResource object itself.

Applies to