ServiceInner Class

  • java.lang.Object
    • com.azure.resourcemanager.support.fluent.models.ServiceInner

Implements

public final class ServiceInner
implements JsonSerializable<ServiceInner>

Object that represents a Service resource.

Constructor Summary

Constructor Description
ServiceInner()

Creates an instance of ServiceInner class.

Method Summary

Modifier and Type Method and Description
String displayName()

Get the displayName property: Localized name of the Azure service.

static ServiceInner fromJson(JsonReader jsonReader)

Reads an instance of ServiceInner from the JsonReader.

String id()

Get the id property: Id of the resource.

String name()

Get the name property: Name of the resource.

List<String> resourceTypes()

Get the resourceTypes property: ARM Resource types.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Type of the resource 'Microsoft.Support/services'.

void validate()

Validates the instance.

ServiceInner withDisplayName(String displayName)

Set the displayName property: Localized name of the Azure service.

ServiceInner withResourceTypes(List<String> resourceTypes)

Set the resourceTypes property: ARM Resource types.

Methods inherited from java.lang.Object

Constructor Details

ServiceInner

public ServiceInner()

Creates an instance of ServiceInner class.

Method Details

displayName

public String displayName()

Get the displayName property: Localized name of the Azure service.

Returns:

the displayName value.

fromJson

public static ServiceInner fromJson(JsonReader jsonReader)

Reads an instance of ServiceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Id of the resource.

Returns:

the id value.

name

public String name()

Get the name property: Name of the resource.

Returns:

the name value.

resourceTypes

public List<String> resourceTypes()

Get the resourceTypes property: ARM Resource types.

Returns:

the resourceTypes value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Type of the resource 'Microsoft.Support/services'.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDisplayName

public ServiceInner withDisplayName(String displayName)

Set the displayName property: Localized name of the Azure service.

Parameters:

displayName - the displayName value to set.

Returns:

the ServiceInner object itself.

withResourceTypes

public ServiceInner withResourceTypes(List<String> resourceTypes)

Set the resourceTypes property: ARM Resource types.

Parameters:

resourceTypes - the resourceTypes value to set.

Returns:

the ServiceInner object itself.

Applies to