Share via


MoveResourceDependency Class

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

Implements

public final class MoveResourceDependency
implements JsonSerializable<MoveResourceDependency>

Defines the dependency of the move resource.

Constructor Summary

Constructor Description
MoveResourceDependency()

Creates an instance of MoveResourceDependency class.

Method Summary

Modifier and Type Method and Description
AutomaticResolutionProperties automaticResolution()

Get the automaticResolution property: Defines the properties for automatic resolution.

DependencyType dependencyType()

Get the dependencyType property: Defines the dependency type.

static MoveResourceDependency fromJson(JsonReader jsonReader)

Reads an instance of MoveResourceDependency from the JsonReader.

String id()

Get the id property: Gets the source ARM ID of the dependent resource.

String isOptional()

Get the isOptional property: Gets or sets a value indicating whether the dependency is optional.

ManualResolutionProperties manualResolution()

Get the manualResolution property: Defines the properties for manual resolution.

String resolutionStatus()

Get the resolutionStatus property: Gets the dependency resolution status.

ResolutionType resolutionType()

Get the resolutionType property: Defines the resolution type.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MoveResourceDependency withAutomaticResolution(AutomaticResolutionProperties automaticResolution)

Set the automaticResolution property: Defines the properties for automatic resolution.

MoveResourceDependency withDependencyType(DependencyType dependencyType)

Set the dependencyType property: Defines the dependency type.

MoveResourceDependency withId(String id)

Set the id property: Gets the source ARM ID of the dependent resource.

MoveResourceDependency withIsOptional(String isOptional)

Set the isOptional property: Gets or sets a value indicating whether the dependency is optional.

MoveResourceDependency withManualResolution(ManualResolutionProperties manualResolution)

Set the manualResolution property: Defines the properties for manual resolution.

MoveResourceDependency withResolutionStatus(String resolutionStatus)

Set the resolutionStatus property: Gets the dependency resolution status.

MoveResourceDependency withResolutionType(ResolutionType resolutionType)

Set the resolutionType property: Defines the resolution type.

Methods inherited from java.lang.Object

Constructor Details

MoveResourceDependency

public MoveResourceDependency()

Creates an instance of MoveResourceDependency class.

Method Details

automaticResolution

public AutomaticResolutionProperties automaticResolution()

Get the automaticResolution property: Defines the properties for automatic resolution.

Returns:

the automaticResolution value.

dependencyType

public DependencyType dependencyType()

Get the dependencyType property: Defines the dependency type.

Returns:

the dependencyType value.

fromJson

public static MoveResourceDependency fromJson(JsonReader jsonReader)

Reads an instance of MoveResourceDependency from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Gets the source ARM ID of the dependent resource.

Returns:

the id value.

isOptional

public String isOptional()

Get the isOptional property: Gets or sets a value indicating whether the dependency is optional.

Returns:

the isOptional value.

manualResolution

public ManualResolutionProperties manualResolution()

Get the manualResolution property: Defines the properties for manual resolution.

Returns:

the manualResolution value.

resolutionStatus

public String resolutionStatus()

Get the resolutionStatus property: Gets the dependency resolution status.

Returns:

the resolutionStatus value.

resolutionType

public ResolutionType resolutionType()

Get the resolutionType property: Defines the resolution type.

Returns:

the resolutionType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAutomaticResolution

public MoveResourceDependency withAutomaticResolution(AutomaticResolutionProperties automaticResolution)

Set the automaticResolution property: Defines the properties for automatic resolution.

Parameters:

automaticResolution - the automaticResolution value to set.

Returns:

the MoveResourceDependency object itself.

withDependencyType

public MoveResourceDependency withDependencyType(DependencyType dependencyType)

Set the dependencyType property: Defines the dependency type.

Parameters:

dependencyType - the dependencyType value to set.

Returns:

the MoveResourceDependency object itself.

withId

public MoveResourceDependency withId(String id)

Set the id property: Gets the source ARM ID of the dependent resource.

Parameters:

id - the id value to set.

Returns:

the MoveResourceDependency object itself.

withIsOptional

public MoveResourceDependency withIsOptional(String isOptional)

Set the isOptional property: Gets or sets a value indicating whether the dependency is optional.

Parameters:

isOptional - the isOptional value to set.

Returns:

the MoveResourceDependency object itself.

withManualResolution

public MoveResourceDependency withManualResolution(ManualResolutionProperties manualResolution)

Set the manualResolution property: Defines the properties for manual resolution.

Parameters:

manualResolution - the manualResolution value to set.

Returns:

the MoveResourceDependency object itself.

withResolutionStatus

public MoveResourceDependency withResolutionStatus(String resolutionStatus)

Set the resolutionStatus property: Gets the dependency resolution status.

Parameters:

resolutionStatus - the resolutionStatus value to set.

Returns:

the MoveResourceDependency object itself.

withResolutionType

public MoveResourceDependency withResolutionType(ResolutionType resolutionType)

Set the resolutionType property: Defines the resolution type.

Parameters:

resolutionType - the resolutionType value to set.

Returns:

the MoveResourceDependency object itself.

Applies to