Share via


MoveCollectionProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.resourcemover.models.MoveCollectionProperties

Implements

public final class MoveCollectionProperties
implements JsonSerializable<MoveCollectionProperties>

Defines the move collection properties.

Constructor Summary

Constructor Description
MoveCollectionProperties()

Creates an instance of MoveCollectionProperties class.

Method Summary

Modifier and Type Method and Description
MoveCollectionPropertiesErrors errors()

Get the errors property: Defines the move collection errors.

static MoveCollectionProperties fromJson(JsonReader jsonReader)

Reads an instance of MoveCollectionProperties from the JsonReader.

String moveRegion()

Get the moveRegion property: Gets or sets the move region which indicates the region where the VM Regional to Zonal move will be conducted.

MoveType moveType()

Get the moveType property: Defines the MoveType.

ProvisioningState provisioningState()

Get the provisioningState property: Defines the provisioning states.

String sourceRegion()

Get the sourceRegion property: Gets or sets the source region.

String targetRegion()

Get the targetRegion property: Gets or sets the target region.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String version()

Get the version property: Gets or sets the version of move collection.

MoveCollectionProperties withMoveRegion(String moveRegion)

Set the moveRegion property: Gets or sets the move region which indicates the region where the VM Regional to Zonal move will be conducted.

MoveCollectionProperties withMoveType(MoveType moveType)

Set the moveType property: Defines the MoveType.

MoveCollectionProperties withSourceRegion(String sourceRegion)

Set the sourceRegion property: Gets or sets the source region.

MoveCollectionProperties withTargetRegion(String targetRegion)

Set the targetRegion property: Gets or sets the target region.

MoveCollectionProperties withVersion(String version)

Set the version property: Gets or sets the version of move collection.

Methods inherited from java.lang.Object

Constructor Details

MoveCollectionProperties

public MoveCollectionProperties()

Creates an instance of MoveCollectionProperties class.

Method Details

errors

public MoveCollectionPropertiesErrors errors()

Get the errors property: Defines the move collection errors.

Returns:

the errors value.

fromJson

public static MoveCollectionProperties fromJson(JsonReader jsonReader)

Reads an instance of MoveCollectionProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

moveRegion

public String moveRegion()

Get the moveRegion property: Gets or sets the move region which indicates the region where the VM Regional to Zonal move will be conducted.

Returns:

the moveRegion value.

moveType

public MoveType moveType()

Get the moveType property: Defines the MoveType.

Returns:

the moveType value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Defines the provisioning states.

Returns:

the provisioningState value.

sourceRegion

public String sourceRegion()

Get the sourceRegion property: Gets or sets the source region.

Returns:

the sourceRegion value.

targetRegion

public String targetRegion()

Get the targetRegion property: Gets or sets the target region.

Returns:

the targetRegion value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

version

public String version()

Get the version property: Gets or sets the version of move collection.

Returns:

the version value.

withMoveRegion

public MoveCollectionProperties withMoveRegion(String moveRegion)

Set the moveRegion property: Gets or sets the move region which indicates the region where the VM Regional to Zonal move will be conducted.

Parameters:

moveRegion - the moveRegion value to set.

Returns:

the MoveCollectionProperties object itself.

withMoveType

public MoveCollectionProperties withMoveType(MoveType moveType)

Set the moveType property: Defines the MoveType.

Parameters:

moveType - the moveType value to set.

Returns:

the MoveCollectionProperties object itself.

withSourceRegion

public MoveCollectionProperties withSourceRegion(String sourceRegion)

Set the sourceRegion property: Gets or sets the source region.

Parameters:

sourceRegion - the sourceRegion value to set.

Returns:

the MoveCollectionProperties object itself.

withTargetRegion

public MoveCollectionProperties withTargetRegion(String targetRegion)

Set the targetRegion property: Gets or sets the target region.

Parameters:

targetRegion - the targetRegion value to set.

Returns:

the MoveCollectionProperties object itself.

withVersion

public MoveCollectionProperties withVersion(String version)

Set the version property: Gets or sets the version of move collection.

Parameters:

version - the version value to set.

Returns:

the MoveCollectionProperties object itself.

Applies to