AppliedScopeProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.billing.models.AppliedScopeProperties

Implements

public final class AppliedScopeProperties
implements JsonSerializable<AppliedScopeProperties>

Properties specific to applied scope type. Not required if not applicable.

Constructor Summary

Constructor Description
AppliedScopeProperties()

Creates an instance of AppliedScopeProperties class.

Method Summary

Modifier and Type Method and Description
String displayName()

Get the displayName property: Display name.

static AppliedScopeProperties fromJson(JsonReader jsonReader)

Reads an instance of AppliedScopeProperties from the JsonReader.

String managementGroupId()

Get the managementGroupId property: Fully-qualified identifier of the management group where the benefit is applied.

String resourceGroupId()

Get the resourceGroupId property: Fully-qualified identifier of the resource group where the benefit is applied.

String subscriptionId()

Get the subscriptionId property: Fully-qualified identifier of the subscription where the benefit is applied.

String tenantId()

Get the tenantId property: Tenant ID where the savings plan where the benefit is applied.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AppliedScopeProperties withDisplayName(String displayName)

Set the displayName property: Display name.

AppliedScopeProperties withManagementGroupId(String managementGroupId)

Set the managementGroupId property: Fully-qualified identifier of the management group where the benefit is applied.

AppliedScopeProperties withResourceGroupId(String resourceGroupId)

Set the resourceGroupId property: Fully-qualified identifier of the resource group where the benefit is applied.

AppliedScopeProperties withSubscriptionId(String subscriptionId)

Set the subscriptionId property: Fully-qualified identifier of the subscription where the benefit is applied.

AppliedScopeProperties withTenantId(String tenantId)

Set the tenantId property: Tenant ID where the savings plan where the benefit is applied.

Methods inherited from java.lang.Object

Constructor Details

AppliedScopeProperties

public AppliedScopeProperties()

Creates an instance of AppliedScopeProperties class.

Method Details

displayName

public String displayName()

Get the displayName property: Display name.

Returns:

the displayName value.

fromJson

public static AppliedScopeProperties fromJson(JsonReader jsonReader)

Reads an instance of AppliedScopeProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AppliedScopeProperties 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 AppliedScopeProperties.

managementGroupId

public String managementGroupId()

Get the managementGroupId property: Fully-qualified identifier of the management group where the benefit is applied.

Returns:

the managementGroupId value.

resourceGroupId

public String resourceGroupId()

Get the resourceGroupId property: Fully-qualified identifier of the resource group where the benefit is applied.

Returns:

the resourceGroupId value.

subscriptionId

public String subscriptionId()

Get the subscriptionId property: Fully-qualified identifier of the subscription where the benefit is applied.

Returns:

the subscriptionId value.

tenantId

public String tenantId()

Get the tenantId property: Tenant ID where the savings plan where the benefit is applied.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDisplayName

public AppliedScopeProperties withDisplayName(String displayName)

Set the displayName property: Display name.

Parameters:

displayName - the displayName value to set.

Returns:

the AppliedScopeProperties object itself.

withManagementGroupId

public AppliedScopeProperties withManagementGroupId(String managementGroupId)

Set the managementGroupId property: Fully-qualified identifier of the management group where the benefit is applied.

Parameters:

managementGroupId - the managementGroupId value to set.

Returns:

the AppliedScopeProperties object itself.

withResourceGroupId

public AppliedScopeProperties withResourceGroupId(String resourceGroupId)

Set the resourceGroupId property: Fully-qualified identifier of the resource group where the benefit is applied.

Parameters:

resourceGroupId - the resourceGroupId value to set.

Returns:

the AppliedScopeProperties object itself.

withSubscriptionId

public AppliedScopeProperties withSubscriptionId(String subscriptionId)

Set the subscriptionId property: Fully-qualified identifier of the subscription where the benefit is applied.

Parameters:

subscriptionId - the subscriptionId value to set.

Returns:

the AppliedScopeProperties object itself.

withTenantId

public AppliedScopeProperties withTenantId(String tenantId)

Set the tenantId property: Tenant ID where the savings plan where the benefit is applied.

Parameters:

tenantId - the tenantId value to set.

Returns:

the AppliedScopeProperties object itself.

Applies to