Class ResourceCertificateAndAadDetails

java.lang.Object
com.azure.resourcemanager.recoveryservices.models.ResourceCertificateDetails
com.azure.resourcemanager.recoveryservices.models.ResourceCertificateAndAadDetails

public final class ResourceCertificateAndAadDetails extends ResourceCertificateDetails
Certificate details representing the Vault credentials for AAD.
  • Constructor Details

    • ResourceCertificateAndAadDetails

      public ResourceCertificateAndAadDetails()
  • Method Details

    • aadAuthority

      public String aadAuthority()
      Get the aadAuthority property: AAD tenant authority.
      Returns:
      the aadAuthority value.
    • withAadAuthority

      public ResourceCertificateAndAadDetails withAadAuthority(String aadAuthority)
      Set the aadAuthority property: AAD tenant authority.
      Parameters:
      aadAuthority - the aadAuthority value to set.
      Returns:
      the ResourceCertificateAndAadDetails object itself.
    • aadTenantId

      public String aadTenantId()
      Get the aadTenantId property: AAD tenant Id.
      Returns:
      the aadTenantId value.
    • withAadTenantId

      public ResourceCertificateAndAadDetails withAadTenantId(String aadTenantId)
      Set the aadTenantId property: AAD tenant Id.
      Parameters:
      aadTenantId - the aadTenantId value to set.
      Returns:
      the ResourceCertificateAndAadDetails object itself.
    • servicePrincipalClientId

      public String servicePrincipalClientId()
      Get the servicePrincipalClientId property: AAD service principal clientId.
      Returns:
      the servicePrincipalClientId value.
    • withServicePrincipalClientId

      public ResourceCertificateAndAadDetails withServicePrincipalClientId(String servicePrincipalClientId)
      Set the servicePrincipalClientId property: AAD service principal clientId.
      Parameters:
      servicePrincipalClientId - the servicePrincipalClientId value to set.
      Returns:
      the ResourceCertificateAndAadDetails object itself.
    • servicePrincipalObjectId

      public String servicePrincipalObjectId()
      Get the servicePrincipalObjectId property: AAD service principal ObjectId.
      Returns:
      the servicePrincipalObjectId value.
    • withServicePrincipalObjectId

      public ResourceCertificateAndAadDetails withServicePrincipalObjectId(String servicePrincipalObjectId)
      Set the servicePrincipalObjectId property: AAD service principal ObjectId.
      Parameters:
      servicePrincipalObjectId - the servicePrincipalObjectId value to set.
      Returns:
      the ResourceCertificateAndAadDetails object itself.
    • azureManagementEndpointAudience

      public String azureManagementEndpointAudience()
      Get the azureManagementEndpointAudience property: Azure Management Endpoint Audience.
      Returns:
      the azureManagementEndpointAudience value.
    • withAzureManagementEndpointAudience

      public ResourceCertificateAndAadDetails withAzureManagementEndpointAudience(String azureManagementEndpointAudience)
      Set the azureManagementEndpointAudience property: Azure Management Endpoint Audience.
      Parameters:
      azureManagementEndpointAudience - the azureManagementEndpointAudience value to set.
      Returns:
      the ResourceCertificateAndAadDetails object itself.
    • serviceResourceId

      public String serviceResourceId()
      Get the serviceResourceId property: Service Resource Id.
      Returns:
      the serviceResourceId value.
    • withServiceResourceId

      public ResourceCertificateAndAadDetails withServiceResourceId(String serviceResourceId)
      Set the serviceResourceId property: Service Resource Id.
      Parameters:
      serviceResourceId - the serviceResourceId value to set.
      Returns:
      the ResourceCertificateAndAadDetails object itself.
    • aadAudience

      public String aadAudience()
      Get the aadAudience property: AAD audience for the resource.
      Returns:
      the aadAudience value.
    • withAadAudience

      public ResourceCertificateAndAadDetails withAadAudience(String aadAudience)
      Set the aadAudience property: AAD audience for the resource.
      Parameters:
      aadAudience - the aadAudience value to set.
      Returns:
      the ResourceCertificateAndAadDetails object itself.
    • withCertificate

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

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

      public ResourceCertificateAndAadDetails withIssuer(String issuer)
      Set the issuer property: Certificate issuer.
      Overrides:
      withIssuer in class ResourceCertificateDetails
      Parameters:
      issuer - the issuer value to set.
      Returns:
      the ResourceCertificateDetails object itself.
    • withResourceId

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

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

      public ResourceCertificateAndAadDetails withThumbprint(String thumbprint)
      Set the thumbprint property: Certificate thumbprint.
      Overrides:
      withThumbprint in class ResourceCertificateDetails
      Parameters:
      thumbprint - the thumbprint value to set.
      Returns:
      the ResourceCertificateDetails object itself.
    • withValidFrom

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

      public ResourceCertificateAndAadDetails withValidTo(OffsetDateTime validTo)
      Set the validTo property: Certificate Validity End Date time.
      Overrides:
      withValidTo in class ResourceCertificateDetails
      Parameters:
      validTo - the validTo value to set.
      Returns:
      the ResourceCertificateDetails object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ResourceCertificateDetails
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.