RoleInstanceInner Class
- java.
lang. Object - com.
azure. resourcemanager. compute. fluent. models. RoleInstanceInner
- com.
Implements
public final class RoleInstanceInner
implements JsonSerializable<RoleInstanceInner>
Describes the cloud service role instance.
Constructor Summary
Constructor | Description |
---|---|
RoleInstanceInner() |
Creates an instance of Role |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Role |
fromJson(JsonReader jsonReader)
Reads an instance of Role |
String |
id()
Get the id property: Resource Id. |
String |
location()
Get the location property: Resource Location. |
String |
name()
Get the name property: Resource Name. |
Role |
properties()
Get the properties property: Role instance properties. |
Instance |
sku()
Get the sku property: The role instance SKU. |
Map<String,String> |
tags()
Get the tags property: Resource tags. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: Resource Type. |
void |
validate()
Validates the instance. |
Role |
withProperties(RoleInstancePropertiesInner properties)
Set the properties property: Role instance properties. |
Role |
withSku(InstanceSku sku)
Set the sku property: The role instance SKU. |
Methods inherited from java.lang.Object
Constructor Details
RoleInstanceInner
public RoleInstanceInner()
Creates an instance of RoleInstanceInner class.
Method Details
fromJson
public static RoleInstanceInner fromJson(JsonReader jsonReader)
Reads an instance of RoleInstanceInner 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 RoleInstancePropertiesInner properties()
Get the properties property: Role instance properties.
Returns:
sku
public InstanceSku sku()
Get the sku property: The role instance SKU.
Returns:
tags
public Map
Get the tags property: Resource tags.
Returns:
toJson
type
public String type()
Get the type property: Resource Type.
Returns:
validate
public void validate()
Validates the instance.
withProperties
public RoleInstanceInner withProperties(RoleInstancePropertiesInner properties)
Set the properties property: Role instance properties.
Parameters:
Returns:
withSku
public RoleInstanceInner withSku(InstanceSku sku)
Set the sku property: The role instance SKU.
Parameters:
Returns:
Applies to
Azure SDK for Java