Compartir a través de


RestorePointCollectionSourceProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.RestorePointCollectionSourceProperties

Implements

public final class RestorePointCollectionSourceProperties
implements JsonSerializable<RestorePointCollectionSourceProperties>

The properties of the source resource that this restore point collection is created from.

Constructor Summary

Constructor Description
RestorePointCollectionSourceProperties()

Creates an instance of RestorePointCollectionSourceProperties class.

Method Summary

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

Reads an instance of RestorePointCollectionSourceProperties from the JsonReader.

String id()

Get the id property: Resource Id of the source resource used to create this restore point collection.

String location()

Get the location property: Location of the source resource used to create this restore point collection.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RestorePointCollectionSourceProperties withId(String id)

Set the id property: Resource Id of the source resource used to create this restore point collection.

Methods inherited from java.lang.Object

Constructor Details

RestorePointCollectionSourceProperties

public RestorePointCollectionSourceProperties()

Creates an instance of RestorePointCollectionSourceProperties class.

Method Details

fromJson

public static RestorePointCollectionSourceProperties fromJson(JsonReader jsonReader)

Reads an instance of RestorePointCollectionSourceProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Resource Id of the source resource used to create this restore point collection.

Returns:

the id value.

location

public String location()

Get the location property: Location of the source resource used to create this restore point collection.

Returns:

the location value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public RestorePointCollectionSourceProperties withId(String id)

Set the id property: Resource Id of the source resource used to create this restore point collection.

Parameters:

id - the id value to set.

Returns:

the RestorePointCollectionSourceProperties object itself.

Applies to