Share via


ResourceSettings Class

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

Implements

public class ResourceSettings
implements JsonSerializable<ResourceSettings>

Gets or sets the resource settings.

Constructor Summary

Constructor Description
ResourceSettings()

Creates an instance of ResourceSettings class.

Method Summary

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

Reads an instance of ResourceSettings from the JsonReader.

String resourceType()

Get the resourceType property: The resource type.

String targetResourceGroupName()

Get the targetResourceGroupName property: Gets or sets the target resource group name.

String targetResourceName()

Get the targetResourceName property: Gets or sets the target Resource name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ResourceSettings withTargetResourceGroupName(String targetResourceGroupName)

Set the targetResourceGroupName property: Gets or sets the target resource group name.

ResourceSettings withTargetResourceName(String targetResourceName)

Set the targetResourceName property: Gets or sets the target Resource name.

Methods inherited from java.lang.Object

Constructor Details

ResourceSettings

public ResourceSettings()

Creates an instance of ResourceSettings class.

Method Details

fromJson

public static ResourceSettings fromJson(JsonReader jsonReader)

Reads an instance of ResourceSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

resourceType

public String resourceType()

Get the resourceType property: The resource type. For example, the value can be Microsoft.Compute/virtualMachines.

Returns:

the resourceType value.

targetResourceGroupName

public String targetResourceGroupName()

Get the targetResourceGroupName property: Gets or sets the target resource group name.

Returns:

the targetResourceGroupName value.

targetResourceName

public String targetResourceName()

Get the targetResourceName property: Gets or sets the target Resource name.

Returns:

the targetResourceName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withTargetResourceGroupName

public ResourceSettings withTargetResourceGroupName(String targetResourceGroupName)

Set the targetResourceGroupName property: Gets or sets the target resource group name.

Parameters:

targetResourceGroupName - the targetResourceGroupName value to set.

Returns:

the ResourceSettings object itself.

withTargetResourceName

public ResourceSettings withTargetResourceName(String targetResourceName)

Set the targetResourceName property: Gets or sets the target Resource name.

Parameters:

targetResourceName - the targetResourceName value to set.

Returns:

the ResourceSettings object itself.

Applies to