ServicePrincipal Class
- java.
lang. Object - com.
azure. resourcemanager. sql. models. ServicePrincipal
- com.
Implements
public final class ServicePrincipal
implements JsonSerializable<ServicePrincipal>
The managed instance's service principal configuration for a resource.
Constructor Summary
Constructor | Description |
---|---|
ServicePrincipal() |
Creates an instance of Service |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
clientId()
Get the client |
static
Service |
fromJson(JsonReader jsonReader)
Reads an instance of Service |
String |
principalId()
Get the principal |
String |
tenantId()
Get the tenant |
Json |
toJson(JsonWriter jsonWriter) |
Service |
type()
Get the type property: Service principal type. |
void |
validate()
Validates the instance. |
Service |
withType(ServicePrincipalType type)
Set the type property: Service principal type. |
Methods inherited from java.lang.Object
Constructor Details
ServicePrincipal
public ServicePrincipal()
Creates an instance of ServicePrincipal class.
Method Details
clientId
public String clientId()
Get the clientId property: The Azure Active Directory application client id.
Returns:
fromJson
public static ServicePrincipal fromJson(JsonReader jsonReader)
Reads an instance of ServicePrincipal from the JsonReader.
Parameters:
Returns:
Throws:
principalId
public String principalId()
Get the principalId property: The Azure Active Directory application object id.
Returns:
tenantId
public String tenantId()
Get the tenantId property: The Azure Active Directory tenant id.
Returns:
toJson
type
public ServicePrincipalType type()
Get the type property: Service principal type.
Returns:
validate
public void validate()
Validates the instance.
withType
public ServicePrincipal withType(ServicePrincipalType type)
Set the type property: Service principal type.
Parameters:
Returns:
Applies to
Azure SDK for Java