Class RoleInstanceInner
- java.lang.Object
-
- com.azure.resourcemanager.compute.fluent.models.RoleInstanceInner
-
public final class RoleInstanceInner extends Object
The RoleInstance model.
-
-
Constructor Summary
Constructors Constructor Description RoleInstanceInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringid()Get the id property: Resource Id.Stringlocation()Get the location property: Resource Location.Stringname()Get the name property: Resource Name.RoleInstancePropertiesInnerproperties()Get the properties property: The properties property.InstanceSkusku()Get the sku property: The sku property.Map<String,String>tags()Get the tags property: Resource tags.Stringtype()Get the type property: Resource Type.voidvalidate()Validates the instance.RoleInstanceInnerwithProperties(RoleInstancePropertiesInner properties)Set the properties property: The properties property.RoleInstanceInnerwithSku(InstanceSku sku)Set the sku property: The sku property.
-
-
-
Method Detail
-
id
public String id()
Get the id property: Resource Id.- Returns:
- the id value.
-
name
public String name()
Get the name property: Resource Name.- Returns:
- the name value.
-
type
public String type()
Get the type property: Resource Type.- Returns:
- the type value.
-
location
public String location()
Get the location property: Resource Location.- Returns:
- the location value.
-
tags
public Map<String,String> tags()
Get the tags property: Resource tags.- Returns:
- the tags value.
-
sku
public InstanceSku sku()
Get the sku property: The sku property.- Returns:
- the sku value.
-
withSku
public RoleInstanceInner withSku(InstanceSku sku)
Set the sku property: The sku property.- Parameters:
sku- the sku value to set.- Returns:
- the RoleInstanceInner object itself.
-
properties
public RoleInstancePropertiesInner properties()
Get the properties property: The properties property.- Returns:
- the properties value.
-
withProperties
public RoleInstanceInner withProperties(RoleInstancePropertiesInner properties)
Set the properties property: The properties property.- Parameters:
properties- the properties value to set.- Returns:
- the RoleInstanceInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-