ReservationAppliedScopeProperties Class
- java.
lang. Object - com.
azure. resourcemanager. billing. models. ReservationAppliedScopeProperties
- com.
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 Reservation |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
displayName()
Get the display |
|
static
Reservation |
fromJson(JsonReader jsonReader)
Reads an instance of Reservation |
| String |
managementGroupId()
Get the management |
| String |
resourceGroupId()
Get the resource |
| String |
subscriptionId()
Get the subscription |
| String |
tenantId()
Get the tenant |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Reservation |
withDisplayName(String displayName)
Set the display |
|
Reservation |
withManagementGroupId(String managementGroupId)
Set the management |
|
Reservation |
withResourceGroupId(String resourceGroupId)
Set the resource |
|
Reservation |
withSubscriptionId(String subscriptionId)
Set the subscription |
|
Reservation |
withTenantId(String tenantId)
Set the tenant |
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:
fromJson
public static ReservationAppliedScopeProperties fromJson(JsonReader jsonReader)
Reads an instance of ReservationAppliedScopeProperties from the JsonReader.
Parameters:
Returns:
Throws:
managementGroupId
public String managementGroupId()
Get the managementGroupId property: Fully-qualified identifier of the management group where the benefit must be applied.
Returns:
resourceGroupId
public String resourceGroupId()
Get the resourceGroupId property: Fully-qualified identifier of the resource group.
Returns:
subscriptionId
public String subscriptionId()
Get the subscriptionId property: Fully-qualified identifier of the subscription.
Returns:
tenantId
public String tenantId()
Get the tenantId property: Tenant ID where the reservation should apply benefit.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDisplayName
public ReservationAppliedScopeProperties withDisplayName(String displayName)
Set the displayName property: Display name.
Parameters:
Returns:
withManagementGroupId
public ReservationAppliedScopeProperties withManagementGroupId(String managementGroupId)
Set the managementGroupId property: Fully-qualified identifier of the management group where the benefit must be applied.
Parameters:
Returns:
withResourceGroupId
public ReservationAppliedScopeProperties withResourceGroupId(String resourceGroupId)
Set the resourceGroupId property: Fully-qualified identifier of the resource group.
Parameters:
Returns:
withSubscriptionId
public ReservationAppliedScopeProperties withSubscriptionId(String subscriptionId)
Set the subscriptionId property: Fully-qualified identifier of the subscription.
Parameters:
Returns:
withTenantId
public ReservationAppliedScopeProperties withTenantId(String tenantId)
Set the tenantId property: Tenant ID where the reservation should apply benefit.
Parameters:
Returns: