CloudServiceRoleInner Class
- java.
lang. Object - com.
azure. resourcemanager. compute. fluent. models. CloudServiceRoleInner
- com.
Implements
public final class CloudServiceRoleInner
implements JsonSerializable<CloudServiceRoleInner>
Describes a role of the cloud service.
Constructor Summary
Constructor | Description |
---|---|
CloudServiceRoleInner() |
Creates an instance of Cloud |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Cloud |
fromJson(JsonReader jsonReader)
Reads an instance of Cloud |
String |
id()
Get the id property: Resource id. |
String |
location()
Get the location property: Resource location. |
String |
name()
Get the name property: Resource name. |
Cloud |
properties()
Get the properties property: The cloud service role properties. |
Cloud |
sku()
Get the sku property: Describes the cloud service role sku. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: Resource type. |
void |
validate()
Validates the instance. |
Cloud |
withProperties(CloudServiceRoleProperties properties)
Set the properties property: The cloud service role properties. |
Cloud |
withSku(CloudServiceRoleSku sku)
Set the sku property: Describes the cloud service role sku. |
Methods inherited from java.lang.Object
Constructor Details
CloudServiceRoleInner
public CloudServiceRoleInner()
Creates an instance of CloudServiceRoleInner class.
Method Details
fromJson
public static CloudServiceRoleInner fromJson(JsonReader jsonReader)
Reads an instance of CloudServiceRoleInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Resource id.
Returns:
location
public String location()
Get the location property: Resource location.
Returns:
name
public String name()
Get the name property: Resource name.
Returns:
properties
public CloudServiceRoleProperties properties()
Get the properties property: The cloud service role properties.
Returns:
sku
public CloudServiceRoleSku sku()
Get the sku property: Describes the cloud service role sku.
Returns:
toJson
type
public String type()
Get the type property: Resource type.
Returns:
validate
public void validate()
Validates the instance.
withProperties
public CloudServiceRoleInner withProperties(CloudServiceRoleProperties properties)
Set the properties property: The cloud service role properties.
Parameters:
Returns:
withSku
public CloudServiceRoleInner withSku(CloudServiceRoleSku sku)
Set the sku property: Describes the cloud service role sku.
Parameters:
Returns:
Applies to
Azure SDK for Java