ManagedInstanceMaintenanceConfigurationCapability Class
- java.
lang. Object - com.
azure. resourcemanager. sql. models. ManagedInstanceMaintenanceConfigurationCapability
- com.
Implements
public final class ManagedInstanceMaintenanceConfigurationCapability
implements JsonSerializable<ManagedInstanceMaintenanceConfigurationCapability>
The maintenance configuration capability.
Constructor Summary
Constructor | Description |
---|---|
ManagedInstanceMaintenanceConfigurationCapability() |
Creates an instance of Managed |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Managed |
fromJson(JsonReader jsonReader)
Reads an instance of Managed |
String |
name()
Get the name property: Maintenance configuration name. |
String |
reason()
Get the reason property: The reason for the capability not being available. |
Capability |
status()
Get the status property: The status of the capability. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Managed |
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:
Returns:
Throws:
name
public String name()
Get the name property: Maintenance configuration name.
Returns:
reason
public String reason()
Get the reason property: The reason for the capability not being available.
Returns:
status
public CapabilityStatus status()
Get the status property: The status of the capability.
Returns:
toJson
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:
Returns:
Applies to
Azure SDK for Java