ServiceObjectiveProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.fluent.models.ServiceObjectiveProperties

Implements

public final class ServiceObjectiveProperties
implements JsonSerializable<ServiceObjectiveProperties>

Represents the properties of a database service objective.

Constructor Summary

Constructor Description
ServiceObjectiveProperties()

Creates an instance of ServiceObjectiveProperties class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: The description for the service level objective.

Boolean enabled()

Get the enabled property: Gets whether the service level objective is enabled.

static ServiceObjectiveProperties fromJson(JsonReader jsonReader)

Reads an instance of ServiceObjectiveProperties from the JsonReader.

Boolean isDefault()

Get the isDefault property: Gets whether the service level objective is the default service objective.

Boolean isSystem()

Get the isSystem property: Gets whether the service level objective is a system service objective.

String serviceObjectiveName()

Get the serviceObjectiveName property: The name for the service objective.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

ServiceObjectiveProperties

public ServiceObjectiveProperties()

Creates an instance of ServiceObjectiveProperties class.

Method Details

description

public String description()

Get the description property: The description for the service level objective.

Returns:

the description value.

enabled

public Boolean enabled()

Get the enabled property: Gets whether the service level objective is enabled.

Returns:

the enabled value.

fromJson

public static ServiceObjectiveProperties fromJson(JsonReader jsonReader)

Reads an instance of ServiceObjectiveProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

isDefault

public Boolean isDefault()

Get the isDefault property: Gets whether the service level objective is the default service objective.

Returns:

the isDefault value.

isSystem

public Boolean isSystem()

Get the isSystem property: Gets whether the service level objective is a system service objective.

Returns:

the isSystem value.

serviceObjectiveName

public String serviceObjectiveName()

Get the serviceObjectiveName property: The name for the service objective.

Returns:

the serviceObjectiveName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to