Class ConnectedClusterIdentity
java.lang.Object
com.azure.resourcemanager.hybridkubernetes.models.ConnectedClusterIdentity
Identity for the connected cluster.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ConnectedClusterIdentity class. -
Method Summary
Modifier and TypeMethodDescriptionGet the principalId property: The principal id of connected cluster identity.tenantId()
Get the tenantId property: The tenant id associated with the connected cluster.type()
Get the type property: The type of identity used for the connected cluster.void
validate()
Validates the instance.withType
(ResourceIdentityType type) Set the type property: The type of identity used for the connected cluster.
-
Constructor Details
-
ConnectedClusterIdentity
public ConnectedClusterIdentity()Creates an instance of ConnectedClusterIdentity class.
-
-
Method Details
-
principalId
Get the principalId property: The principal id of connected cluster identity. This property will only be provided for a system assigned identity.- Returns:
- the principalId value.
-
tenantId
Get the tenantId property: The tenant id associated with the connected cluster. This property will only be provided for a system assigned identity.- Returns:
- the tenantId value.
-
type
Get the type property: The type of identity used for the connected cluster. The type 'SystemAssigned, includes a system created identity. The type 'None' means no identity is assigned to the connected cluster.- Returns:
- the type value.
-
withType
Set the type property: The type of identity used for the connected cluster. The type 'SystemAssigned, includes a system created identity. The type 'None' means no identity is assigned to the connected cluster.- Parameters:
type
- the type value to set.- Returns:
- the ConnectedClusterIdentity object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-