PutAliasRequestProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.subscription.models.PutAliasRequestProperties

Implements

public final class PutAliasRequestProperties
implements JsonSerializable<PutAliasRequestProperties>

Put subscription properties.

Constructor Summary

Constructor Description
PutAliasRequestProperties()

Creates an instance of PutAliasRequestProperties class.

Method Summary

Modifier and Type Method and Description
String billingScope()

Get the billingScope property: Determines whether subscription is fieldLed, partnerLed or LegacyEA.

String displayName()

Get the displayName property: The friendly name of the subscription.

static PutAliasRequestProperties fromJson(JsonReader jsonReader)

Reads an instance of PutAliasRequestProperties from the JsonReader.

String resellerId()

Get the resellerId property: Reseller ID, basically MPN Id.

String subscriptionId()

Get the subscriptionId property: This parameter can be used to create alias for existing subscription Id.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PutAliasRequestProperties withBillingScope(String billingScope)

Set the billingScope property: Determines whether subscription is fieldLed, partnerLed or LegacyEA.

PutAliasRequestProperties withDisplayName(String displayName)

Set the displayName property: The friendly name of the subscription.

PutAliasRequestProperties withResellerId(String resellerId)

Set the resellerId property: Reseller ID, basically MPN Id.

PutAliasRequestProperties withSubscriptionId(String subscriptionId)

Set the subscriptionId property: This parameter can be used to create alias for existing subscription Id.

PutAliasRequestProperties withWorkload(Workload workload)

Set the workload property: The workload type of the subscription.

Workload workload()

Get the workload property: The workload type of the subscription.

Methods inherited from java.lang.Object

Constructor Details

PutAliasRequestProperties

public PutAliasRequestProperties()

Creates an instance of PutAliasRequestProperties class.

Method Details

billingScope

public String billingScope()

Get the billingScope property: Determines whether subscription is fieldLed, partnerLed or LegacyEA.

Returns:

the billingScope value.

displayName

public String displayName()

Get the displayName property: The friendly name of the subscription.

Returns:

the displayName value.

fromJson

public static PutAliasRequestProperties fromJson(JsonReader jsonReader)

Reads an instance of PutAliasRequestProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

resellerId

public String resellerId()

Get the resellerId property: Reseller ID, basically MPN Id.

Returns:

the resellerId value.

subscriptionId

public String subscriptionId()

Get the subscriptionId property: This parameter can be used to create alias for existing subscription Id.

Returns:

the subscriptionId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withBillingScope

public PutAliasRequestProperties withBillingScope(String billingScope)

Set the billingScope property: Determines whether subscription is fieldLed, partnerLed or LegacyEA.

Parameters:

billingScope - the billingScope value to set.

Returns:

the PutAliasRequestProperties object itself.

withDisplayName

public PutAliasRequestProperties withDisplayName(String displayName)

Set the displayName property: The friendly name of the subscription.

Parameters:

displayName - the displayName value to set.

Returns:

the PutAliasRequestProperties object itself.

withResellerId

public PutAliasRequestProperties withResellerId(String resellerId)

Set the resellerId property: Reseller ID, basically MPN Id.

Parameters:

resellerId - the resellerId value to set.

Returns:

the PutAliasRequestProperties object itself.

withSubscriptionId

public PutAliasRequestProperties withSubscriptionId(String subscriptionId)

Set the subscriptionId property: This parameter can be used to create alias for existing subscription Id.

Parameters:

subscriptionId - the subscriptionId value to set.

Returns:

the PutAliasRequestProperties object itself.

withWorkload

public PutAliasRequestProperties withWorkload(Workload workload)

Set the workload property: The workload type of the subscription. It can be either Production or DevTest.

Parameters:

workload - the workload value to set.

Returns:

the PutAliasRequestProperties object itself.

workload

public Workload workload()

Get the workload property: The workload type of the subscription. It can be either Production or DevTest.

Returns:

the workload value.

Applies to