Class ResourceCertificateDetails

java.lang.Object
com.azure.resourcemanager.recoveryservices.models.ResourceCertificateDetails
Direct Known Subclasses:
ResourceCertificateAndAadDetails, ResourceCertificateAndAcsDetails

public class ResourceCertificateDetails extends Object
Certificate details representing the Vault credentials.
  • 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

      public ResourceCertificateDetails withCertificate(byte[] certificate)
      Set the certificate property: The base64 encoded certificate raw data string.
      Parameters:
      certificate - the certificate value to set.
      Returns:
      the ResourceCertificateDetails object itself.
    • friendlyName

      public String friendlyName()
      Get the friendlyName property: Certificate friendly name.
      Returns:
      the friendlyName value.
    • withFriendlyName

      public ResourceCertificateDetails withFriendlyName(String friendlyName)
      Set the friendlyName property: Certificate friendly name.
      Parameters:
      friendlyName - the friendlyName value to set.
      Returns:
      the ResourceCertificateDetails object itself.
    • issuer

      public String issuer()
      Get the issuer property: Certificate issuer.
      Returns:
      the issuer value.
    • withIssuer

      public ResourceCertificateDetails withIssuer(String issuer)
      Set the issuer property: Certificate issuer.
      Parameters:
      issuer - the issuer value to set.
      Returns:
      the ResourceCertificateDetails object itself.
    • resourceId

      public Long resourceId()
      Get the resourceId property: Resource ID of the vault.
      Returns:
      the resourceId value.
    • withResourceId

      public ResourceCertificateDetails withResourceId(Long resourceId)
      Set the resourceId property: Resource ID of the vault.
      Parameters:
      resourceId - the resourceId value to set.
      Returns:
      the ResourceCertificateDetails object itself.
    • subject

      public String subject()
      Get the subject property: Certificate Subject Name.
      Returns:
      the subject value.
    • withSubject

      public ResourceCertificateDetails withSubject(String subject)
      Set the subject property: Certificate Subject Name.
      Parameters:
      subject - the subject value to set.
      Returns:
      the ResourceCertificateDetails object itself.
    • thumbprint

      public String thumbprint()
      Get the thumbprint property: Certificate thumbprint.
      Returns:
      the thumbprint value.
    • withThumbprint

      public ResourceCertificateDetails withThumbprint(String thumbprint)
      Set the thumbprint property: Certificate thumbprint.
      Parameters:
      thumbprint - the thumbprint value to set.
      Returns:
      the ResourceCertificateDetails object itself.
    • validFrom

      public OffsetDateTime validFrom()
      Get the validFrom property: Certificate Validity start Date time.
      Returns:
      the validFrom value.
    • withValidFrom

      public ResourceCertificateDetails withValidFrom(OffsetDateTime validFrom)
      Set the validFrom property: Certificate Validity start Date time.
      Parameters:
      validFrom - the validFrom value to set.
      Returns:
      the ResourceCertificateDetails object itself.
    • validTo

      public OffsetDateTime validTo()
      Get the validTo property: Certificate Validity End Date time.
      Returns:
      the validTo value.
    • withValidTo

      public ResourceCertificateDetails withValidTo(OffsetDateTime validTo)
      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.