InvoiceSectionProperties Class

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

Implements

public final class InvoiceSectionProperties
implements JsonSerializable<InvoiceSectionProperties>

An invoice section.

Constructor Summary

Constructor Description
InvoiceSectionProperties()

Creates an instance of InvoiceSectionProperties class.

Method Summary

Modifier and Type Method and Description
String displayName()

Get the displayName property: The name of the invoice section.

static InvoiceSectionProperties fromJson(JsonReader jsonReader)

Reads an instance of InvoiceSectionProperties from the JsonReader.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource during a long-running operation.

InvoiceSectionStateReasonCode reasonCode()

Get the reasonCode property: Reason for the specified invoice section status.

InvoiceSectionState state()

Get the state property: Identifies the status of an invoice section.

String systemId()

Get the systemId property: The system generated unique identifier for an invoice section.

Map<String,String> tags()

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

String targetCloud()

Get the targetCloud property: Identifies the cloud environments that are associated with an invoice section.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

InvoiceSectionProperties withDisplayName(String displayName)

Set the displayName property: The name of the invoice section.

InvoiceSectionProperties withReasonCode(InvoiceSectionStateReasonCode reasonCode)

Set the reasonCode property: Reason for the specified invoice section status.

InvoiceSectionProperties withState(InvoiceSectionState state)

Set the state property: Identifies the status of an invoice section.

InvoiceSectionProperties withTags(Map<String,String> tags)

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

InvoiceSectionProperties withTargetCloud(String targetCloud)

Set the targetCloud property: Identifies the cloud environments that are associated with an invoice section.

Methods inherited from java.lang.Object

Constructor Details

InvoiceSectionProperties

public InvoiceSectionProperties()

Creates an instance of InvoiceSectionProperties class.

Method Details

displayName

public String displayName()

Get the displayName property: The name of the invoice section.

Returns:

the displayName value.

fromJson

public static InvoiceSectionProperties fromJson(JsonReader jsonReader)

Reads an instance of InvoiceSectionProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource during a long-running operation.

Returns:

the provisioningState value.

reasonCode

public InvoiceSectionStateReasonCode reasonCode()

Get the reasonCode property: Reason for the specified invoice section status.

Returns:

the reasonCode value.

state

public InvoiceSectionState state()

Get the state property: Identifies the status of an invoice section.

Returns:

the state value.

systemId

public String systemId()

Get the systemId property: The system generated unique identifier for an invoice section.

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.

targetCloud

public String targetCloud()

Get the targetCloud property: Identifies the cloud environments that are associated with an invoice section. This is a system managed optional field and gets updated as the invoice section gets associated with accounts in various clouds.

Returns:

the targetCloud value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDisplayName

public InvoiceSectionProperties withDisplayName(String displayName)

Set the displayName property: The name of the invoice section.

Parameters:

displayName - the displayName value to set.

Returns:

the InvoiceSectionProperties object itself.

withReasonCode

public InvoiceSectionProperties withReasonCode(InvoiceSectionStateReasonCode reasonCode)

Set the reasonCode property: Reason for the specified invoice section status.

Parameters:

reasonCode - the reasonCode value to set.

Returns:

the InvoiceSectionProperties object itself.

withState

public InvoiceSectionProperties withState(InvoiceSectionState state)

Set the state property: Identifies the status of an invoice section.

Parameters:

state - the state value to set.

Returns:

the InvoiceSectionProperties object itself.

withTags

public InvoiceSectionProperties 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 InvoiceSectionProperties object itself.

withTargetCloud

public InvoiceSectionProperties withTargetCloud(String targetCloud)

Set the targetCloud property: Identifies the cloud environments that are associated with an invoice section. This is a system managed optional field and gets updated as the invoice section gets associated with accounts in various clouds.

Parameters:

targetCloud - the targetCloud value to set.

Returns:

the InvoiceSectionProperties object itself.

Applies to