Share via


ServiceObjectiveInner Class

public final class ServiceObjectiveInner
extends ProxyResource

Represents a database service objective.

Constructor Summary

Constructor Description
ServiceObjectiveInner()

Creates an instance of ServiceObjectiveInner 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 ServiceObjectiveInner fromJson(JsonReader jsonReader)

Reads an instance of ServiceObjectiveInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

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 name()

Get the name property: The name of the resource.

String serviceObjectiveName()

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

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ServiceObjectiveInner

public ServiceObjectiveInner()

Creates an instance of ServiceObjectiveInner 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 ServiceObjectiveInner fromJson(JsonReader jsonReader)

Reads an instance of ServiceObjectiveInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ServiceObjectiveInner.id()

Returns:

the id value.

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.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ServiceObjectiveInner.name()

Returns:

the name 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)

Overrides:

ServiceObjectiveInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ServiceObjectiveInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Applies to