SkuName Class

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

Implements

public final class SkuName
implements JsonSerializable<SkuName>

The name of sku.

Constructor Summary

Constructor Description
SkuName()

Creates an instance of SkuName class.

Method Summary

Modifier and Type Method and Description
static SkuName fromJson(JsonReader jsonReader)

Reads an instance of SkuName from the JsonReader.

String name()

Get the name property: The name property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SkuName withName(String name)

Set the name property: The name property.

Methods inherited from java.lang.Object

Constructor Details

SkuName

public SkuName()

Creates an instance of SkuName class.

Method Details

fromJson

public static SkuName fromJson(JsonReader jsonReader)

Reads an instance of SkuName from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The name property.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public SkuName withName(String name)

Set the name property: The name property.

Parameters:

name - the name value to set.

Returns:

the SkuName object itself.

Applies to