ReservationAppliedScopeProperties Class

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

Implements

public final class ReservationAppliedScopeProperties
implements JsonSerializable<ReservationAppliedScopeProperties>

Properties specific to applied scope type. Not required if not applicable. Required and need to provide tenantId and managementGroupId if AppliedScopeType is ManagementGroup.

Constructor Summary

Constructor Description
ReservationAppliedScopeProperties()

Creates an instance of ReservationAppliedScopeProperties class.

Method Summary

Modifier and Type Method and Description
String displayName()

Get the displayName property: Display name.

static ReservationAppliedScopeProperties fromJson(JsonReader jsonReader)

Reads an instance of ReservationAppliedScopeProperties from the JsonReader.

String managementGroupId()

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

String resourceGroupId()

Get the resourceGroupId property: Fully-qualified identifier of the resource group.

String subscriptionId()

Get the subscriptionId property: Fully-qualified identifier of the subscription.

String tenantId()

Get the tenantId property: Tenant ID where the reservation should apply benefit.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ReservationAppliedScopeProperties withDisplayName(String displayName)

Set the displayName property: Display name.

ReservationAppliedScopeProperties withManagementGroupId(String managementGroupId)

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

ReservationAppliedScopeProperties withResourceGroupId(String resourceGroupId)

Set the resourceGroupId property: Fully-qualified identifier of the resource group.

ReservationAppliedScopeProperties withSubscriptionId(String subscriptionId)

Set the subscriptionId property: Fully-qualified identifier of the subscription.

ReservationAppliedScopeProperties withTenantId(String tenantId)

Set the tenantId property: Tenant ID where the reservation should apply benefit.

Methods inherited from java.lang.Object

Constructor Details

ReservationAppliedScopeProperties

public ReservationAppliedScopeProperties()

Creates an instance of ReservationAppliedScopeProperties class.

Method Details

displayName

public String displayName()

Get the displayName property: Display name.

Returns:

the displayName value.

fromJson

public static ReservationAppliedScopeProperties fromJson(JsonReader jsonReader)

Reads an instance of ReservationAppliedScopeProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

managementGroupId

public String managementGroupId()

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

Returns:

the managementGroupId value.

resourceGroupId

public String resourceGroupId()

Get the resourceGroupId property: Fully-qualified identifier of the resource group.

Returns:

the resourceGroupId value.

subscriptionId

public String subscriptionId()

Get the subscriptionId property: Fully-qualified identifier of the subscription.

Returns:

the subscriptionId value.

tenantId

public String tenantId()

Get the tenantId property: Tenant ID where the reservation should apply benefit.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDisplayName

public ReservationAppliedScopeProperties withDisplayName(String displayName)

Set the displayName property: Display name.

Parameters:

displayName - the displayName value to set.

Returns:

the ReservationAppliedScopeProperties object itself.

withManagementGroupId

public ReservationAppliedScopeProperties withManagementGroupId(String managementGroupId)

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

Parameters:

managementGroupId - the managementGroupId value to set.

Returns:

the ReservationAppliedScopeProperties object itself.

withResourceGroupId

public ReservationAppliedScopeProperties withResourceGroupId(String resourceGroupId)

Set the resourceGroupId property: Fully-qualified identifier of the resource group.

Parameters:

resourceGroupId - the resourceGroupId value to set.

Returns:

the ReservationAppliedScopeProperties object itself.

withSubscriptionId

public ReservationAppliedScopeProperties withSubscriptionId(String subscriptionId)

Set the subscriptionId property: Fully-qualified identifier of the subscription.

Parameters:

subscriptionId - the subscriptionId value to set.

Returns:

the ReservationAppliedScopeProperties object itself.

withTenantId

public ReservationAppliedScopeProperties withTenantId(String tenantId)

Set the tenantId property: Tenant ID where the reservation should apply benefit.

Parameters:

tenantId - the tenantId value to set.

Returns:

the ReservationAppliedScopeProperties object itself.

Applies to