ManagedInstanceMaintenanceConfigurationCapability Class

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

Implements

public final class ManagedInstanceMaintenanceConfigurationCapability
implements JsonSerializable<ManagedInstanceMaintenanceConfigurationCapability>

The maintenance configuration capability.

Constructor Summary

Constructor Description
ManagedInstanceMaintenanceConfigurationCapability()

Creates an instance of ManagedInstanceMaintenanceConfigurationCapability class.

Method Summary

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

Reads an instance of ManagedInstanceMaintenanceConfigurationCapability from the JsonReader.

String name()

Get the name property: Maintenance configuration name.

String reason()

Get the reason property: The reason for the capability not being available.

CapabilityStatus status()

Get the status property: The status of the capability.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedInstanceMaintenanceConfigurationCapability withReason(String reason)

Set the reason property: The reason for the capability not being available.

Methods inherited from java.lang.Object

Constructor Details

ManagedInstanceMaintenanceConfigurationCapability

public ManagedInstanceMaintenanceConfigurationCapability()

Creates an instance of ManagedInstanceMaintenanceConfigurationCapability class.

Method Details

fromJson

public static ManagedInstanceMaintenanceConfigurationCapability fromJson(JsonReader jsonReader)

Reads an instance of ManagedInstanceMaintenanceConfigurationCapability from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: Maintenance configuration name.

Returns:

the name value.

reason

public String reason()

Get the reason property: The reason for the capability not being available.

Returns:

the reason value.

status

public CapabilityStatus status()

Get the status property: The status of the capability.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withReason

public ManagedInstanceMaintenanceConfigurationCapability withReason(String reason)

Set the reason property: The reason for the capability not being available.

Parameters:

reason - the reason value to set.

Returns:

the ManagedInstanceMaintenanceConfigurationCapability object itself.

Applies to