Class RoleInstanceInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.hybridnetwork.fluent.models.RoleInstanceInner
public final class RoleInstanceInner
extends com.azure.core.management.ProxyResource
The role instance sub resource.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionid()
Get the id property: The ARM ID of the resource.name()
Get the name property: The role instance name.Get the operationalState property: The operational state of the role instance.Get the provisioningState property: The provisioning state of the RoleInstance resource.com.azure.core.management.SystemData
Get the systemData property: The system meta data relating to this resource.type()
Get the type property: The type of the resource.void
validate()
Validates the instance.Set the id property: The ARM ID of the resource.Set the name property: The role instance name.withOperationalState
(OperationalState operationalState) Set the operationalState property: The operational state of the role instance.Set the type property: The type of the resource.
-
Constructor Details
-
RoleInstanceInner
public RoleInstanceInner()Creates an instance of RoleInstanceInner class.
-
-
Method Details
-
name
Get the name property: The role instance name.- Overrides:
name
in classcom.azure.core.management.ProxyResource
- Returns:
- the name value.
-
withName
Set the name property: The role instance name.- Parameters:
name
- the name value to set.- Returns:
- the RoleInstanceInner object itself.
-
id
Get the id property: The ARM ID of the resource.- Overrides:
id
in classcom.azure.core.management.ProxyResource
- Returns:
- the id value.
-
withId
Set the id property: The ARM ID of the resource.- Parameters:
id
- the id value to set.- Returns:
- the RoleInstanceInner object itself.
-
type
Get the type property: The type of the resource.- Overrides:
type
in classcom.azure.core.management.ProxyResource
- Returns:
- the type value.
-
withType
Set the type property: The type of the resource.- Parameters:
type
- the type value to set.- Returns:
- the RoleInstanceInner object itself.
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: The system meta data relating to this resource.- Returns:
- the systemData value.
-
provisioningState
Get the provisioningState property: The provisioning state of the RoleInstance resource.- Returns:
- the provisioningState value.
-
operationalState
Get the operationalState property: The operational state of the role instance.- Returns:
- the operationalState value.
-
withOperationalState
Set the operationalState property: The operational state of the role instance.- Parameters:
operationalState
- the operationalState value to set.- Returns:
- the RoleInstanceInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-