Class ResourceCertificateDetails
java.lang.Object
com.azure.resourcemanager.recoveryservices.models.ResourceCertificateDetails
- Direct Known Subclasses:
ResourceCertificateAndAadDetails
,ResourceCertificateAndAcsDetails
Certificate details representing the Vault credentials.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Get the certificate property: The base64 encoded certificate raw data string.Get the friendlyName property: Certificate friendly name.issuer()
Get the issuer property: Certificate issuer.Get the resourceId property: Resource ID of the vault.subject()
Get the subject property: Certificate Subject Name.Get the thumbprint property: Certificate thumbprint.void
validate()
Validates the instance.Get the validFrom property: Certificate Validity start Date time.validTo()
Get the validTo property: Certificate Validity End Date time.withCertificate
(byte[] certificate) Set the certificate property: The base64 encoded certificate raw data string.withFriendlyName
(String friendlyName) Set the friendlyName property: Certificate friendly name.withIssuer
(String issuer) Set the issuer property: Certificate issuer.withResourceId
(Long resourceId) Set the resourceId property: Resource ID of the vault.withSubject
(String subject) Set the subject property: Certificate Subject Name.withThumbprint
(String thumbprint) Set the thumbprint property: Certificate thumbprint.withValidFrom
(OffsetDateTime validFrom) Set the validFrom property: Certificate Validity start Date time.withValidTo
(OffsetDateTime validTo) Set the validTo property: Certificate Validity End Date time.
-
Constructor Details
-
ResourceCertificateDetails
public ResourceCertificateDetails()
-
-
Method Details
-
certificate
public byte[] certificate()Get the certificate property: The base64 encoded certificate raw data string.- Returns:
- the certificate value.
-
withCertificate
Set the certificate property: The base64 encoded certificate raw data string.- Parameters:
certificate
- the certificate value to set.- Returns:
- the ResourceCertificateDetails object itself.
-
friendlyName
Get the friendlyName property: Certificate friendly name.- Returns:
- the friendlyName value.
-
withFriendlyName
Set the friendlyName property: Certificate friendly name.- Parameters:
friendlyName
- the friendlyName value to set.- Returns:
- the ResourceCertificateDetails object itself.
-
issuer
Get the issuer property: Certificate issuer.- Returns:
- the issuer value.
-
withIssuer
Set the issuer property: Certificate issuer.- Parameters:
issuer
- the issuer value to set.- Returns:
- the ResourceCertificateDetails object itself.
-
resourceId
Get the resourceId property: Resource ID of the vault.- Returns:
- the resourceId value.
-
withResourceId
Set the resourceId property: Resource ID of the vault.- Parameters:
resourceId
- the resourceId value to set.- Returns:
- the ResourceCertificateDetails object itself.
-
subject
Get the subject property: Certificate Subject Name.- Returns:
- the subject value.
-
withSubject
Set the subject property: Certificate Subject Name.- Parameters:
subject
- the subject value to set.- Returns:
- the ResourceCertificateDetails object itself.
-
thumbprint
Get the thumbprint property: Certificate thumbprint.- Returns:
- the thumbprint value.
-
withThumbprint
Set the thumbprint property: Certificate thumbprint.- Parameters:
thumbprint
- the thumbprint value to set.- Returns:
- the ResourceCertificateDetails object itself.
-
validFrom
Get the validFrom property: Certificate Validity start Date time.- Returns:
- the validFrom value.
-
withValidFrom
Set the validFrom property: Certificate Validity start Date time.- Parameters:
validFrom
- the validFrom value to set.- Returns:
- the ResourceCertificateDetails object itself.
-
validTo
Get the validTo property: Certificate Validity End Date time.- Returns:
- the validTo value.
-
withValidTo
Set the validTo property: Certificate Validity End Date time.- Parameters:
validTo
- the validTo value to set.- Returns:
- the ResourceCertificateDetails object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-