Share via


AzureResourceProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.migration.assessment.models.AzureResourceProperties

Implements

public class AzureResourceProperties
implements JsonSerializable<AzureResourceProperties>

Common properties for all azure tracked and proxy resources.

Constructor Summary

Constructor Description
AzureResourceProperties()

Creates an instance of AzureResourceProperties class.

Method Summary

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

Reads an instance of AzureResourceProperties from the JsonReader.

ProvisioningState provisioningState()

Get the provisioningState property: The status of the last operation.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AzureResourceProperties withProvisioningState(ProvisioningState provisioningState)

Set the provisioningState property: The status of the last operation.

Methods inherited from java.lang.Object

Constructor Details

AzureResourceProperties

public AzureResourceProperties()

Creates an instance of AzureResourceProperties class.

Method Details

fromJson

public static AzureResourceProperties fromJson(JsonReader jsonReader)

Reads an instance of AzureResourceProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The status of the last operation.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withProvisioningState

public AzureResourceProperties withProvisioningState(ProvisioningState provisioningState)

Set the provisioningState property: The status of the last operation.

Parameters:

provisioningState - the provisioningState value to set.

Returns:

the AzureResourceProperties object itself.

Applies to