Class Identity
- java.lang.Object
-
- com.azure.resourcemanager.streamanalytics.models.Identity
-
public class Identity extends Object
Describes how identity is verified.
-
-
Constructor Summary
Constructors Constructor Description Identity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
principalId()
Get the principalId property: The identity principal ID.String
tenantId()
Get the tenantId property: The identity tenantId.String
type()
Get the type property: The identity type.void
validate()
Validates the instance.Identity
withPrincipalId(String principalId)
Set the principalId property: The identity principal ID.Identity
withTenantId(String tenantId)
Set the tenantId property: The identity tenantId.Identity
withType(String type)
Set the type property: The identity type.
-
-
-
Method Detail
-
tenantId
public String tenantId()
Get the tenantId property: The identity tenantId.- Returns:
- the tenantId value.
-
withTenantId
public Identity withTenantId(String tenantId)
Set the tenantId property: The identity tenantId.- Parameters:
tenantId
- the tenantId value to set.- Returns:
- the Identity object itself.
-
principalId
public String principalId()
Get the principalId property: The identity principal ID.- Returns:
- the principalId value.
-
withPrincipalId
public Identity withPrincipalId(String principalId)
Set the principalId property: The identity principal ID.- Parameters:
principalId
- the principalId value to set.- Returns:
- the Identity object itself.
-
type
public String type()
Get the type property: The identity type.- Returns:
- the type value.
-
withType
public Identity withType(String type)
Set the type property: The identity type.- Parameters:
type
- the type value to set.- Returns:
- the Identity object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-