Freigeben über


Placement Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.Placement

Implements

public final class Placement
implements JsonSerializable<Placement>

The complex type of the zonal placement details.

Constructor Summary

Constructor Description
Placement()

Creates an instance of Placement class.

Method Summary

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

Reads an instance of Placement from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Placement withZonePlacementPolicy(ZonePlacementPolicy zonePlacementPolicy)

Set the zonePlacementPolicy property: The availability zone pinning policy for the storage account.

ZonePlacementPolicy zonePlacementPolicy()

Get the zonePlacementPolicy property: The availability zone pinning policy for the storage account.

Methods inherited from java.lang.Object

Constructor Details

Placement

public Placement()

Creates an instance of Placement class.

Method Details

fromJson

public static Placement fromJson(JsonReader jsonReader)

Reads an instance of Placement from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withZonePlacementPolicy

public Placement withZonePlacementPolicy(ZonePlacementPolicy zonePlacementPolicy)

Set the zonePlacementPolicy property: The availability zone pinning policy for the storage account.

Parameters:

zonePlacementPolicy - the zonePlacementPolicy value to set.

Returns:

the Placement object itself.

zonePlacementPolicy

public ZonePlacementPolicy zonePlacementPolicy()

Get the zonePlacementPolicy property: The availability zone pinning policy for the storage account.

Returns:

the zonePlacementPolicy value.

Applies to