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 Details

    • RoleInstanceInner

      public RoleInstanceInner()
      Creates an instance of RoleInstanceInner class.
  • Method Details

    • name

      public String name()
      Get the name property: The role instance name.
      Overrides:
      name in class com.azure.core.management.ProxyResource
      Returns:
      the name value.
    • withName

      public RoleInstanceInner withName(String name)
      Set the name property: The role instance name.
      Parameters:
      name - the name value to set.
      Returns:
      the RoleInstanceInner object itself.
    • id

      public String id()
      Get the id property: The ARM ID of the resource.
      Overrides:
      id in class com.azure.core.management.ProxyResource
      Returns:
      the id value.
    • withId

      public RoleInstanceInner withId(String id)
      Set the id property: The ARM ID of the resource.
      Parameters:
      id - the id value to set.
      Returns:
      the RoleInstanceInner object itself.
    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class com.azure.core.management.ProxyResource
      Returns:
      the type value.
    • withType

      public RoleInstanceInner withType(String type)
      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

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the RoleInstance resource.
      Returns:
      the provisioningState value.
    • operationalState

      public OperationalState operationalState()
      Get the operationalState property: The operational state of the role instance.
      Returns:
      the operationalState value.
    • withOperationalState

      public RoleInstanceInner withOperationalState(OperationalState operationalState)
      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.