Class MachineUpdate

java.lang.Object
com.azure.resourcemanager.hybridcompute.models.ResourceUpdate
com.azure.resourcemanager.hybridcompute.models.MachineUpdate
All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceUpdate>

public final class MachineUpdate extends ResourceUpdate
Describes a hybrid machine Update.
  • Constructor Details

    • MachineUpdate

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

    • identity

      public Identity identity()
      Get the identity property: Identity for the resource.
      Returns:
      the identity value.
    • withIdentity

      public MachineUpdate withIdentity(Identity identity)
      Set the identity property: Identity for the resource.
      Parameters:
      identity - the identity value to set.
      Returns:
      the MachineUpdate object itself.
    • kind

      public ArcKindEnum kind()
      Get the kind property: Indicates which kind of Arc machine placement on-premises, such as HCI, SCVMM or VMware etc.
      Returns:
      the kind value.
    • withKind

      public MachineUpdate withKind(ArcKindEnum kind)
      Set the kind property: Indicates which kind of Arc machine placement on-premises, such as HCI, SCVMM or VMware etc.
      Parameters:
      kind - the kind value to set.
      Returns:
      the MachineUpdate object itself.
    • withTags

      public MachineUpdate withTags(Map<String,String> tags)
      Set the tags property: Resource tags.
      Overrides:
      withTags in class ResourceUpdate
      Parameters:
      tags - the tags value to set.
      Returns:
      the ResourceUpdate object itself.
    • locationData

      public LocationData locationData()
      Get the locationData property: Metadata pertaining to the geographic location of the resource.
      Returns:
      the locationData value.
    • withLocationData

      public MachineUpdate withLocationData(LocationData locationData)
      Set the locationData property: Metadata pertaining to the geographic location of the resource.
      Parameters:
      locationData - the locationData value to set.
      Returns:
      the MachineUpdate object itself.
    • osProfile

      public OSProfile osProfile()
      Get the osProfile property: Specifies the operating system settings for the hybrid machine.
      Returns:
      the osProfile value.
    • withOsProfile

      public MachineUpdate withOsProfile(OSProfile osProfile)
      Set the osProfile property: Specifies the operating system settings for the hybrid machine.
      Parameters:
      osProfile - the osProfile value to set.
      Returns:
      the MachineUpdate object itself.
    • cloudMetadata

      public CloudMetadata cloudMetadata()
      Get the cloudMetadata property: The metadata of the cloud environment (Azure/GCP/AWS/OCI...).
      Returns:
      the cloudMetadata value.
    • withCloudMetadata

      public MachineUpdate withCloudMetadata(CloudMetadata cloudMetadata)
      Set the cloudMetadata property: The metadata of the cloud environment (Azure/GCP/AWS/OCI...).
      Parameters:
      cloudMetadata - the cloudMetadata value to set.
      Returns:
      the MachineUpdate object itself.
    • agentUpgrade

      public AgentUpgrade agentUpgrade()
      Get the agentUpgrade property: The info of the machine w.r.t Agent Upgrade.
      Returns:
      the agentUpgrade value.
    • withAgentUpgrade

      public MachineUpdate withAgentUpgrade(AgentUpgrade agentUpgrade)
      Set the agentUpgrade property: The info of the machine w.r.t Agent Upgrade.
      Parameters:
      agentUpgrade - the agentUpgrade value to set.
      Returns:
      the MachineUpdate object itself.
    • parentClusterResourceId

      public String parentClusterResourceId()
      Get the parentClusterResourceId property: The resource id of the parent cluster (Azure HCI) this machine is assigned to, if any.
      Returns:
      the parentClusterResourceId value.
    • withParentClusterResourceId

      public MachineUpdate withParentClusterResourceId(String parentClusterResourceId)
      Set the parentClusterResourceId property: The resource id of the parent cluster (Azure HCI) this machine is assigned to, if any.
      Parameters:
      parentClusterResourceId - the parentClusterResourceId value to set.
      Returns:
      the MachineUpdate object itself.
    • privateLinkScopeResourceId

      public String privateLinkScopeResourceId()
      Get the privateLinkScopeResourceId property: The resource id of the private link scope this machine is assigned to, if any.
      Returns:
      the privateLinkScopeResourceId value.
    • withPrivateLinkScopeResourceId

      public MachineUpdate withPrivateLinkScopeResourceId(String privateLinkScopeResourceId)
      Set the privateLinkScopeResourceId property: The resource id of the private link scope this machine is assigned to, if any.
      Parameters:
      privateLinkScopeResourceId - the privateLinkScopeResourceId value to set.
      Returns:
      the MachineUpdate object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ResourceUpdate
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ResourceUpdate>
      Overrides:
      toJson in class ResourceUpdate
      Throws:
      IOException
    • fromJson

      public static MachineUpdate fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of MachineUpdate from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of MachineUpdate if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the MachineUpdate.