Class AssignmentPrincipal
java.lang.Object
com.azure.resourcemanager.customerinsights.models.AssignmentPrincipal
The AssignmentPrincipal.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the principalId property: The principal id being assigned to.Get the principalMetadata property: Other metadata for the principal.Get the principalType property: The Type of the principal ID.void
validate()
Validates the instance.withPrincipalId
(String principalId) Set the principalId property: The principal id being assigned to.withPrincipalMetadata
(Map<String, String> principalMetadata) Set the principalMetadata property: Other metadata for the principal.withPrincipalType
(String principalType) Set the principalType property: The Type of the principal ID.
-
Constructor Details
-
AssignmentPrincipal
public AssignmentPrincipal()Creates an instance of AssignmentPrincipal class.
-
-
Method Details
-
principalId
Get the principalId property: The principal id being assigned to.- Returns:
- the principalId value.
-
withPrincipalId
Set the principalId property: The principal id being assigned to.- Parameters:
principalId
- the principalId value to set.- Returns:
- the AssignmentPrincipal object itself.
-
principalType
Get the principalType property: The Type of the principal ID.- Returns:
- the principalType value.
-
withPrincipalType
Set the principalType property: The Type of the principal ID.- Parameters:
principalType
- the principalType value to set.- Returns:
- the AssignmentPrincipal object itself.
-
principalMetadata
Get the principalMetadata property: Other metadata for the principal.- Returns:
- the principalMetadata value.
-
withPrincipalMetadata
Set the principalMetadata property: Other metadata for the principal.- Parameters:
principalMetadata
- the principalMetadata value to set.- Returns:
- the AssignmentPrincipal object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-