CustomerProperties Class

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

Implements

public final class CustomerProperties
implements JsonSerializable<CustomerProperties>

A partner's customer.

Constructor Summary

Constructor Description
CustomerProperties()

Creates an instance of CustomerProperties class.

Method Summary

Modifier and Type Method and Description
String billingProfileDisplayName()

Get the billingProfileDisplayName property: The name of the billing profile.

String billingProfileId()

Get the billingProfileId property: The fully qualified ID that uniquely identifies a billing profile.

String displayName()

Get the displayName property: The name of the customer.

List<AzurePlan> enabledAzurePlans()

Get the enabledAzurePlans property: Azure plans enabled for the customer.

static CustomerProperties fromJson(JsonReader jsonReader)

Reads an instance of CustomerProperties from the JsonReader.

List<Reseller> resellers()

Get the resellers property: The list of resellers for which an Azure plan is enabled for the customer.

CustomerStatus status()

Get the status property: Identifies the status of an customer.

String systemId()

Get the systemId property: The system generated unique identifier for a customer.

Map<String,String> tags()

Get the tags property: Dictionary of metadata associated with the resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CustomerProperties withEnabledAzurePlans(List<AzurePlan> enabledAzurePlans)

Set the enabledAzurePlans property: Azure plans enabled for the customer.

CustomerProperties withResellers(List<Reseller> resellers)

Set the resellers property: The list of resellers for which an Azure plan is enabled for the customer.

CustomerProperties withTags(Map<String,String> tags)

Set the tags property: Dictionary of metadata associated with the resource.

Methods inherited from java.lang.Object

Constructor Details

CustomerProperties

public CustomerProperties()

Creates an instance of CustomerProperties class.

Method Details

billingProfileDisplayName

public String billingProfileDisplayName()

Get the billingProfileDisplayName property: The name of the billing profile.

Returns:

the billingProfileDisplayName value.

billingProfileId

public String billingProfileId()

Get the billingProfileId property: The fully qualified ID that uniquely identifies a billing profile.

Returns:

the billingProfileId value.

displayName

public String displayName()

Get the displayName property: The name of the customer.

Returns:

the displayName value.

enabledAzurePlans

public List<AzurePlan> enabledAzurePlans()

Get the enabledAzurePlans property: Azure plans enabled for the customer.

Returns:

the enabledAzurePlans value.

fromJson

public static CustomerProperties fromJson(JsonReader jsonReader)

Reads an instance of CustomerProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

resellers

public List<Reseller> resellers()

Get the resellers property: The list of resellers for which an Azure plan is enabled for the customer.

Returns:

the resellers value.

status

public CustomerStatus status()

Get the status property: Identifies the status of an customer. This is an upcoming property that will be populated in the future.

Returns:

the status value.

systemId

public String systemId()

Get the systemId property: The system generated unique identifier for a customer.

Returns:

the systemId value.

tags

public Map<String,String> tags()

Get the tags property: Dictionary of metadata associated with the resource. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnabledAzurePlans

public CustomerProperties withEnabledAzurePlans(List<AzurePlan> enabledAzurePlans)

Set the enabledAzurePlans property: Azure plans enabled for the customer.

Parameters:

enabledAzurePlans - the enabledAzurePlans value to set.

Returns:

the CustomerProperties object itself.

withResellers

public CustomerProperties withResellers(List<Reseller> resellers)

Set the resellers property: The list of resellers for which an Azure plan is enabled for the customer.

Parameters:

resellers - the resellers value to set.

Returns:

the CustomerProperties object itself.

withTags

public CustomerProperties withTags(Map<String,String> tags)

Set the tags property: Dictionary of metadata associated with the resource. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /.

Parameters:

tags - the tags value to set.

Returns:

the CustomerProperties object itself.

Applies to