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>
Describes a hybrid machine Update.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the agentUpgrade property: The info of the machine w.r.t Agent Upgrade.Get the cloudMetadata property: The metadata of the cloud environment (Azure/GCP/AWS/OCI...).static MachineUpdatefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MachineUpdate from the JsonReader.identity()Get the identity property: Identity for the resource.kind()Get the kind property: Indicates which kind of Arc machine placement on-premises, such as HCI, SCVMM or VMware etc.Get the locationData property: Metadata pertaining to the geographic location of the resource.Get the osProfile property: Specifies the operating system settings for the hybrid machine.Get the parentClusterResourceId property: The resource id of the parent cluster (Azure HCI) this machine is assigned to, if any.Get the privateLinkScopeResourceId property: The resource id of the private link scope this machine is assigned to, if any.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAgentUpgrade(AgentUpgrade agentUpgrade) Set the agentUpgrade property: The info of the machine w.r.t Agent Upgrade.withCloudMetadata(CloudMetadata cloudMetadata) Set the cloudMetadata property: The metadata of the cloud environment (Azure/GCP/AWS/OCI...).withIdentity(Identity identity) Set the identity property: Identity for the resource.withKind(ArcKindEnum kind) Set the kind property: Indicates which kind of Arc machine placement on-premises, such as HCI, SCVMM or VMware etc.withLocationData(LocationData locationData) Set the locationData property: Metadata pertaining to the geographic location of the resource.withOsProfile(OSProfile osProfile) Set the osProfile property: Specifies the operating system settings for the hybrid machine.withParentClusterResourceId(String parentClusterResourceId) Set the parentClusterResourceId property: The resource id of the parent cluster (Azure HCI) this machine is assigned to, if any.withPrivateLinkScopeResourceId(String privateLinkScopeResourceId) Set the privateLinkScopeResourceId property: The resource id of the private link scope this machine is assigned to, if any.Set the tags property: Resource tags.Methods inherited from class com.azure.resourcemanager.hybridcompute.models.ResourceUpdate
tagsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MachineUpdate
public MachineUpdate()Creates an instance of MachineUpdate class.
-
-
Method Details
-
identity
Get the identity property: Identity for the resource.- Returns:
- the identity value.
-
withIdentity
Set the identity property: Identity for the resource.- Parameters:
identity- the identity value to set.- Returns:
- the MachineUpdate object itself.
-
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
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
Set the tags property: Resource tags.- Overrides:
withTagsin classResourceUpdate- Parameters:
tags- the tags value to set.- Returns:
- the ResourceUpdate object itself.
-
locationData
Get the locationData property: Metadata pertaining to the geographic location of the resource.- Returns:
- the locationData value.
-
withLocationData
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
Get the osProfile property: Specifies the operating system settings for the hybrid machine.- Returns:
- the osProfile value.
-
withOsProfile
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
Get the cloudMetadata property: The metadata of the cloud environment (Azure/GCP/AWS/OCI...).- Returns:
- the cloudMetadata value.
-
withCloudMetadata
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
Get the agentUpgrade property: The info of the machine w.r.t Agent Upgrade.- Returns:
- the agentUpgrade value.
-
withAgentUpgrade
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
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
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
Get the privateLinkScopeResourceId property: The resource id of the private link scope this machine is assigned to, if any.- Returns:
- the privateLinkScopeResourceId value.
-
withPrivateLinkScopeResourceId
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:
validatein classResourceUpdate- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResourceUpdate>- Overrides:
toJsonin classResourceUpdate- Throws:
IOException
-
fromJson
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.
-