Class ResourceCertificateAndAadDetails
java.lang.Object
com.azure.resourcemanager.recoveryservices.models.ResourceCertificateDetails
com.azure.resourcemanager.recoveryservices.models.ResourceCertificateAndAadDetails
Certificate details representing the Vault credentials for AAD.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the aadAudience property: AAD audience for the resource.Get the aadAuthority property: AAD tenant authority.Get the aadTenantId property: AAD tenant Id.Get the azureManagementEndpointAudience property: Azure Management Endpoint Audience.Get the servicePrincipalClientId property: AAD service principal clientId.Get the servicePrincipalObjectId property: AAD service principal ObjectId.Get the serviceResourceId property: Service Resource Id.void
validate()
Validates the instance.withAadAudience
(String aadAudience) Set the aadAudience property: AAD audience for the resource.withAadAuthority
(String aadAuthority) Set the aadAuthority property: AAD tenant authority.withAadTenantId
(String aadTenantId) Set the aadTenantId property: AAD tenant Id.withAzureManagementEndpointAudience
(String azureManagementEndpointAudience) Set the azureManagementEndpointAudience property: Azure Management Endpoint Audience.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.withServicePrincipalClientId
(String servicePrincipalClientId) Set the servicePrincipalClientId property: AAD service principal clientId.withServicePrincipalObjectId
(String servicePrincipalObjectId) Set the servicePrincipalObjectId property: AAD service principal ObjectId.withServiceResourceId
(String serviceResourceId) Set the serviceResourceId property: Service Resource Id.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.Methods inherited from class com.azure.resourcemanager.recoveryservices.models.ResourceCertificateDetails
certificate, friendlyName, issuer, resourceId, subject, thumbprint, validFrom, validTo
-
Constructor Details
-
ResourceCertificateAndAadDetails
public ResourceCertificateAndAadDetails()
-
-
Method Details
-
aadAuthority
Get the aadAuthority property: AAD tenant authority.- Returns:
- the aadAuthority value.
-
withAadAuthority
Set the aadAuthority property: AAD tenant authority.- Parameters:
aadAuthority
- the aadAuthority value to set.- Returns:
- the ResourceCertificateAndAadDetails object itself.
-
aadTenantId
Get the aadTenantId property: AAD tenant Id.- Returns:
- the aadTenantId value.
-
withAadTenantId
Set the aadTenantId property: AAD tenant Id.- Parameters:
aadTenantId
- the aadTenantId value to set.- Returns:
- the ResourceCertificateAndAadDetails object itself.
-
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
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
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
Get the serviceResourceId property: Service Resource Id.- Returns:
- the serviceResourceId value.
-
withServiceResourceId
Set the serviceResourceId property: Service Resource Id.- Parameters:
serviceResourceId
- the serviceResourceId value to set.- Returns:
- the ResourceCertificateAndAadDetails object itself.
-
aadAudience
Get the aadAudience property: AAD audience for the resource.- Returns:
- the aadAudience value.
-
withAadAudience
Set the aadAudience property: AAD audience for the resource.- Parameters:
aadAudience
- the aadAudience value to set.- Returns:
- the ResourceCertificateAndAadDetails object itself.
-
withCertificate
Set the certificate property: The base64 encoded certificate raw data string.- Overrides:
withCertificate
in classResourceCertificateDetails
- Parameters:
certificate
- the certificate value to set.- Returns:
- the ResourceCertificateDetails object itself.
-
withFriendlyName
Set the friendlyName property: Certificate friendly name.- Overrides:
withFriendlyName
in classResourceCertificateDetails
- Parameters:
friendlyName
- the friendlyName value to set.- Returns:
- the ResourceCertificateDetails object itself.
-
withIssuer
Set the issuer property: Certificate issuer.- Overrides:
withIssuer
in classResourceCertificateDetails
- Parameters:
issuer
- the issuer value to set.- Returns:
- the ResourceCertificateDetails object itself.
-
withResourceId
Set the resourceId property: Resource ID of the vault.- Overrides:
withResourceId
in classResourceCertificateDetails
- Parameters:
resourceId
- the resourceId value to set.- Returns:
- the ResourceCertificateDetails object itself.
-
withSubject
Set the subject property: Certificate Subject Name.- Overrides:
withSubject
in classResourceCertificateDetails
- Parameters:
subject
- the subject value to set.- Returns:
- the ResourceCertificateDetails object itself.
-
withThumbprint
Set the thumbprint property: Certificate thumbprint.- Overrides:
withThumbprint
in classResourceCertificateDetails
- Parameters:
thumbprint
- the thumbprint value to set.- Returns:
- the ResourceCertificateDetails object itself.
-
withValidFrom
Set the validFrom property: Certificate Validity start Date time.- Overrides:
withValidFrom
in classResourceCertificateDetails
- Parameters:
validFrom
- the validFrom value to set.- Returns:
- the ResourceCertificateDetails object itself.
-
withValidTo
Set the validTo property: Certificate Validity End Date time.- Overrides:
withValidTo
in classResourceCertificateDetails
- Parameters:
validTo
- the validTo value to set.- Returns:
- the ResourceCertificateDetails object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classResourceCertificateDetails
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-