Share via


CreateDatabaseRestorePointDefinition Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.models.CreateDatabaseRestorePointDefinition

Implements

public final class CreateDatabaseRestorePointDefinition
implements JsonSerializable<CreateDatabaseRestorePointDefinition>

Contains the information necessary to perform a create database restore point operation.

Constructor Summary

Constructor Description
CreateDatabaseRestorePointDefinition()

Creates an instance of CreateDatabaseRestorePointDefinition class.

Method Summary

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

Reads an instance of CreateDatabaseRestorePointDefinition from the JsonReader.

String restorePointLabel()

Get the restorePointLabel property: The restore point label to apply.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CreateDatabaseRestorePointDefinition withRestorePointLabel(String restorePointLabel)

Set the restorePointLabel property: The restore point label to apply.

Methods inherited from java.lang.Object

Constructor Details

CreateDatabaseRestorePointDefinition

public CreateDatabaseRestorePointDefinition()

Creates an instance of CreateDatabaseRestorePointDefinition class.

Method Details

fromJson

public static CreateDatabaseRestorePointDefinition fromJson(JsonReader jsonReader)

Reads an instance of CreateDatabaseRestorePointDefinition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CreateDatabaseRestorePointDefinition if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

restorePointLabel

public String restorePointLabel()

Get the restorePointLabel property: The restore point label to apply.

Returns:

the restorePointLabel value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withRestorePointLabel

public CreateDatabaseRestorePointDefinition withRestorePointLabel(String restorePointLabel)

Set the restorePointLabel property: The restore point label to apply.

Parameters:

restorePointLabel - the restorePointLabel value to set.

Returns:

the CreateDatabaseRestorePointDefinition object itself.

Applies to