Class DscNodeProperties
java.lang.Object
com.azure.resourcemanager.automation.fluent.models.DscNodeProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DscNodeProperties>
public final class DscNodeProperties
extends Object
implements com.azure.json.JsonSerializable<DscNodeProperties>
The properties of a DscNode.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the accountId property: Gets or sets the account id of the node.etag()
Get the etag property: Gets or sets the etag of the resource.Get the extensionHandler property: Gets or sets the list of extensionHandler properties for a Node.static DscNodeProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DscNodeProperties from the JsonReader.ip()
Get the ip property: Gets or sets the ip of the node.lastSeen()
Get the lastSeen property: Gets or sets the last seen time of the node.name()
Get the name property: Gets or sets the name of the dsc node configuration.nodeId()
Get the nodeId property: Gets or sets the node id.Get the registrationTime property: Gets or sets the registration time of the node.status()
Get the status property: Gets or sets the status of the node.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Get the totalCount property: Gets the total number of records matching filter criteria.void
validate()
Validates the instance.withAccountId
(String accountId) Set the accountId property: Gets or sets the account id of the node.Set the etag property: Gets or sets the etag of the resource.withExtensionHandler
(List<DscNodeExtensionHandlerAssociationProperty> extensionHandler) Set the extensionHandler property: Gets or sets the list of extensionHandler properties for a Node.Set the ip property: Gets or sets the ip of the node.withLastSeen
(OffsetDateTime lastSeen) Set the lastSeen property: Gets or sets the last seen time of the node.Set the name property: Gets or sets the name of the dsc node configuration.withNodeId
(String nodeId) Set the nodeId property: Gets or sets the node id.withRegistrationTime
(OffsetDateTime registrationTime) Set the registrationTime property: Gets or sets the registration time of the node.withStatus
(String status) Set the status property: Gets or sets the status of the node.withTotalCount
(Integer totalCount) Set the totalCount property: Gets the total number of records matching filter criteria.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DscNodeProperties
public DscNodeProperties()Creates an instance of DscNodeProperties class.
-
-
Method Details
-
lastSeen
Get the lastSeen property: Gets or sets the last seen time of the node.- Returns:
- the lastSeen value.
-
withLastSeen
Set the lastSeen property: Gets or sets the last seen time of the node.- Parameters:
lastSeen
- the lastSeen value to set.- Returns:
- the DscNodeProperties object itself.
-
registrationTime
Get the registrationTime property: Gets or sets the registration time of the node.- Returns:
- the registrationTime value.
-
withRegistrationTime
Set the registrationTime property: Gets or sets the registration time of the node.- Parameters:
registrationTime
- the registrationTime value to set.- Returns:
- the DscNodeProperties object itself.
-
ip
Get the ip property: Gets or sets the ip of the node.- Returns:
- the ip value.
-
withIp
Set the ip property: Gets or sets the ip of the node.- Parameters:
ip
- the ip value to set.- Returns:
- the DscNodeProperties object itself.
-
accountId
Get the accountId property: Gets or sets the account id of the node.- Returns:
- the accountId value.
-
withAccountId
Set the accountId property: Gets or sets the account id of the node.- Parameters:
accountId
- the accountId value to set.- Returns:
- the DscNodeProperties object itself.
-
status
Get the status property: Gets or sets the status of the node.- Returns:
- the status value.
-
withStatus
Set the status property: Gets or sets the status of the node.- Parameters:
status
- the status value to set.- Returns:
- the DscNodeProperties object itself.
-
nodeId
Get the nodeId property: Gets or sets the node id.- Returns:
- the nodeId value.
-
withNodeId
Set the nodeId property: Gets or sets the node id.- Parameters:
nodeId
- the nodeId value to set.- Returns:
- the DscNodeProperties object itself.
-
etag
Get the etag property: Gets or sets the etag of the resource.- Returns:
- the etag value.
-
withEtag
Set the etag property: Gets or sets the etag of the resource.- Parameters:
etag
- the etag value to set.- Returns:
- the DscNodeProperties object itself.
-
totalCount
Get the totalCount property: Gets the total number of records matching filter criteria.- Returns:
- the totalCount value.
-
withTotalCount
Set the totalCount property: Gets the total number of records matching filter criteria.- Parameters:
totalCount
- the totalCount value to set.- Returns:
- the DscNodeProperties object itself.
-
extensionHandler
Get the extensionHandler property: Gets or sets the list of extensionHandler properties for a Node.- Returns:
- the extensionHandler value.
-
withExtensionHandler
public DscNodeProperties withExtensionHandler(List<DscNodeExtensionHandlerAssociationProperty> extensionHandler) Set the extensionHandler property: Gets or sets the list of extensionHandler properties for a Node.- Parameters:
extensionHandler
- the extensionHandler value to set.- Returns:
- the DscNodeProperties object itself.
-
name
Get the name property: Gets or sets the name of the dsc node configuration.- Returns:
- the name value.
-
withName
Set the name property: Gets or sets the name of the dsc node configuration.- Parameters:
name
- the name value to set.- Returns:
- the DscNodeProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<DscNodeProperties>
- Throws:
IOException
-
fromJson
Reads an instance of DscNodeProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of DscNodeProperties 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 DscNodeProperties.
-