DefaultAccountPayloadInner Class

  • java.lang.Object
    • com.azure.resourcemanager.purview.fluent.models.DefaultAccountPayloadInner

Implements

public final class DefaultAccountPayloadInner
implements JsonSerializable<DefaultAccountPayloadInner>

Payload to get and set the default account in the given scope.

Constructor Summary

Constructor Description
DefaultAccountPayloadInner()

Creates an instance of DefaultAccountPayloadInner class.

Method Summary

Modifier and Type Method and Description
String accountName()

Get the accountName property: The name of the account that is set as the default.

static DefaultAccountPayloadInner fromJson(JsonReader jsonReader)

Reads an instance of DefaultAccountPayloadInner from the JsonReader.

String resourceGroupName()

Get the resourceGroupName property: The resource group name of the account that is set as the default.

String scope()

Get the scope property: The scope object ID.

String scopeTenantId()

Get the scopeTenantId property: The scope tenant in which the default account is set.

ScopeType scopeType()

Get the scopeType property: The scope where the default account is set.

String subscriptionId()

Get the subscriptionId property: The subscription ID of the account that is set as the default.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DefaultAccountPayloadInner withAccountName(String accountName)

Set the accountName property: The name of the account that is set as the default.

DefaultAccountPayloadInner withResourceGroupName(String resourceGroupName)

Set the resourceGroupName property: The resource group name of the account that is set as the default.

DefaultAccountPayloadInner withScope(String scope)

Set the scope property: The scope object ID.

DefaultAccountPayloadInner withScopeTenantId(String scopeTenantId)

Set the scopeTenantId property: The scope tenant in which the default account is set.

DefaultAccountPayloadInner withScopeType(ScopeType scopeType)

Set the scopeType property: The scope where the default account is set.

DefaultAccountPayloadInner withSubscriptionId(String subscriptionId)

Set the subscriptionId property: The subscription ID of the account that is set as the default.

Methods inherited from java.lang.Object

Constructor Details

DefaultAccountPayloadInner

public DefaultAccountPayloadInner()

Creates an instance of DefaultAccountPayloadInner class.

Method Details

accountName

public String accountName()

Get the accountName property: The name of the account that is set as the default.

Returns:

the accountName value.

fromJson

public static DefaultAccountPayloadInner fromJson(JsonReader jsonReader)

Reads an instance of DefaultAccountPayloadInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DefaultAccountPayloadInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the DefaultAccountPayloadInner.

resourceGroupName

public String resourceGroupName()

Get the resourceGroupName property: The resource group name of the account that is set as the default.

Returns:

the resourceGroupName value.

scope

public String scope()

Get the scope property: The scope object ID. For example, sub ID or tenant ID.

Returns:

the scope value.

scopeTenantId

public String scopeTenantId()

Get the scopeTenantId property: The scope tenant in which the default account is set.

Returns:

the scopeTenantId value.

scopeType

public ScopeType scopeType()

Get the scopeType property: The scope where the default account is set.

Returns:

the scopeType value.

subscriptionId

public String subscriptionId()

Get the subscriptionId property: The subscription ID of the account that is set as the default.

Returns:

the subscriptionId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAccountName

public DefaultAccountPayloadInner withAccountName(String accountName)

Set the accountName property: The name of the account that is set as the default.

Parameters:

accountName - the accountName value to set.

Returns:

the DefaultAccountPayloadInner object itself.

withResourceGroupName

public DefaultAccountPayloadInner withResourceGroupName(String resourceGroupName)

Set the resourceGroupName property: The resource group name of the account that is set as the default.

Parameters:

resourceGroupName - the resourceGroupName value to set.

Returns:

the DefaultAccountPayloadInner object itself.

withScope

public DefaultAccountPayloadInner withScope(String scope)

Set the scope property: The scope object ID. For example, sub ID or tenant ID.

Parameters:

scope - the scope value to set.

Returns:

the DefaultAccountPayloadInner object itself.

withScopeTenantId

public DefaultAccountPayloadInner withScopeTenantId(String scopeTenantId)

Set the scopeTenantId property: The scope tenant in which the default account is set.

Parameters:

scopeTenantId - the scopeTenantId value to set.

Returns:

the DefaultAccountPayloadInner object itself.

withScopeType

public DefaultAccountPayloadInner withScopeType(ScopeType scopeType)

Set the scopeType property: The scope where the default account is set.

Parameters:

scopeType - the scopeType value to set.

Returns:

the DefaultAccountPayloadInner object itself.

withSubscriptionId

public DefaultAccountPayloadInner withSubscriptionId(String subscriptionId)

Set the subscriptionId property: The subscription ID of the account that is set as the default.

Parameters:

subscriptionId - the subscriptionId value to set.

Returns:

the DefaultAccountPayloadInner object itself.

Applies to