Dela via


CloudServiceInner Class

public final class CloudServiceInner
extends Resource

Describes the cloud service.

Constructor Summary

Constructor Description
CloudServiceInner()

Creates an instance of CloudServiceInner class.

Method Summary

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

Reads an instance of CloudServiceInner from the JsonReader.

String id()

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

String name()

Get the name property: The name of the resource.

CloudServiceProperties properties()

Get the properties property: Cloud service properties.

SystemData systemData()

Get the systemData property: The system meta data relating to this resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

CloudServiceInner withLocation(String location)
CloudServiceInner withProperties(CloudServiceProperties properties)

Set the properties property: Cloud service properties.

CloudServiceInner withSystemData(SystemData systemData)

Set the systemData property: The system meta data relating to this resource.

CloudServiceInner withTags(Map<String,String> tags)
CloudServiceInner withZones(List<String> zones)

Set the zones property: List of logical availability zone of the resource.

List<String> zones()

Get the zones property: List of logical availability zone of the resource.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

CloudServiceInner

public CloudServiceInner()

Creates an instance of CloudServiceInner class.

Method Details

fromJson

public static CloudServiceInner fromJson(JsonReader jsonReader)

Reads an instance of CloudServiceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CloudServiceInner 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:

CloudServiceInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

CloudServiceInner.name()

Returns:

the name value.

properties

public CloudServiceProperties properties()

Get the properties property: Cloud service properties.

Returns:

the properties value.

systemData

public SystemData systemData()

Get the systemData property: The system meta data relating to this resource.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

CloudServiceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

CloudServiceInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withLocation

public CloudServiceInner withLocation(String location)

Overrides:

CloudServiceInner.withLocation(String location)

Parameters:

location

withProperties

public CloudServiceInner withProperties(CloudServiceProperties properties)

Set the properties property: Cloud service properties.

Parameters:

properties - the properties value to set.

Returns:

the CloudServiceInner object itself.

withSystemData

public CloudServiceInner withSystemData(SystemData systemData)

Set the systemData property: The system meta data relating to this resource.

Parameters:

systemData - the systemData value to set.

Returns:

the CloudServiceInner object itself.

withTags

public CloudServiceInner withTags(Map tags)

Overrides:

CloudServiceInner.withTags(Map<String,String> tags)

Parameters:

tags

withZones

public CloudServiceInner withZones(List zones)

Set the zones property: List of logical availability zone of the resource. List should contain only 1 zone where cloud service should be provisioned. This field is optional.

Parameters:

zones - the zones value to set.

Returns:

the CloudServiceInner object itself.

zones

public List zones()

Get the zones property: List of logical availability zone of the resource. List should contain only 1 zone where cloud service should be provisioned. This field is optional.

Returns:

the zones value.

Applies to