Partager via


DscNodeProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.automation.fluent.models.DscNodeProperties

Implements

public final class DscNodeProperties
implements JsonSerializable<DscNodeProperties>

The properties of a DscNode.

Constructor Summary

Constructor Description
DscNodeProperties()

Creates an instance of DscNodeProperties class.

Method Summary

Modifier and Type Method and Description
String accountId()

Get the accountId property: Gets or sets the account id of the node.

String etag()

Get the etag property: Gets or sets the etag of the resource.

List<DscNodeExtensionHandlerAssociationProperty> extensionHandler()

Get the extensionHandler property: Gets or sets the list of extensionHandler properties for a Node.

static DscNodeProperties fromJson(JsonReader jsonReader)

Reads an instance of DscNodeProperties from the JsonReader.

String ip()

Get the ip property: Gets or sets the ip of the node.

OffsetDateTime lastSeen()

Get the lastSeen property: Gets or sets the last seen time of the node.

String name()

Get the name property: Gets or sets the name of the dsc node configuration.

String nodeId()

Get the nodeId property: Gets or sets the node id.

OffsetDateTime registrationTime()

Get the registrationTime property: Gets or sets the registration time of the node.

String status()

Get the status property: Gets or sets the status of the node.

JsonWriter toJson(JsonWriter jsonWriter)
Integer totalCount()

Get the totalCount property: Gets the total number of records matching filter criteria.

void validate()

Validates the instance.

DscNodeProperties withAccountId(String accountId)

Set the accountId property: Gets or sets the account id of the node.

DscNodeProperties withEtag(String etag)

Set the etag property: Gets or sets the etag of the resource.

DscNodeProperties withExtensionHandler(List<DscNodeExtensionHandlerAssociationProperty> extensionHandler)

Set the extensionHandler property: Gets or sets the list of extensionHandler properties for a Node.

DscNodeProperties withIp(String ip)

Set the ip property: Gets or sets the ip of the node.

DscNodeProperties withLastSeen(OffsetDateTime lastSeen)

Set the lastSeen property: Gets or sets the last seen time of the node.

DscNodeProperties withName(String name)

Set the name property: Gets or sets the name of the dsc node configuration.

DscNodeProperties withNodeId(String nodeId)

Set the nodeId property: Gets or sets the node id.

DscNodeProperties withRegistrationTime(OffsetDateTime registrationTime)

Set the registrationTime property: Gets or sets the registration time of the node.

DscNodeProperties withStatus(String status)

Set the status property: Gets or sets the status of the node.

DscNodeProperties withTotalCount(Integer totalCount)

Set the totalCount property: Gets the total number of records matching filter criteria.

Methods inherited from java.lang.Object

Constructor Details

DscNodeProperties

public DscNodeProperties()

Creates an instance of DscNodeProperties class.

Method Details

accountId

public String accountId()

Get the accountId property: Gets or sets the account id of the node.

Returns:

the accountId value.

etag

public String etag()

Get the etag property: Gets or sets the etag of the resource.

Returns:

the etag value.

extensionHandler

public List<DscNodeExtensionHandlerAssociationProperty> extensionHandler()

Get the extensionHandler property: Gets or sets the list of extensionHandler properties for a Node.

Returns:

the extensionHandler value.

fromJson

public static DscNodeProperties fromJson(JsonReader jsonReader)

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.

ip

public String ip()

Get the ip property: Gets or sets the ip of the node.

Returns:

the ip value.

lastSeen

public OffsetDateTime lastSeen()

Get the lastSeen property: Gets or sets the last seen time of the node.

Returns:

the lastSeen value.

name

public String name()

Get the name property: Gets or sets the name of the dsc node configuration.

Returns:

the name value.

nodeId

public String nodeId()

Get the nodeId property: Gets or sets the node id.

Returns:

the nodeId value.

registrationTime

public OffsetDateTime registrationTime()

Get the registrationTime property: Gets or sets the registration time of the node.

Returns:

the registrationTime value.

status

public String status()

Get the status property: Gets or sets the status of the node.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

totalCount

public Integer totalCount()

Get the totalCount property: Gets the total number of records matching filter criteria.

Returns:

the totalCount value.

validate

public void validate()

Validates the instance.

withAccountId

public DscNodeProperties withAccountId(String accountId)

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.

withEtag

public DscNodeProperties withEtag(String etag)

Set the etag property: Gets or sets the etag of the resource.

Parameters:

etag - the etag value to set.

Returns:

the DscNodeProperties object itself.

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.

withIp

public DscNodeProperties withIp(String ip)

Set the ip property: Gets or sets the ip of the node.

Parameters:

ip - the ip value to set.

Returns:

the DscNodeProperties object itself.

withLastSeen

public DscNodeProperties withLastSeen(OffsetDateTime lastSeen)

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.

withName

public DscNodeProperties withName(String name)

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.

withNodeId

public DscNodeProperties withNodeId(String nodeId)

Set the nodeId property: Gets or sets the node id.

Parameters:

nodeId - the nodeId value to set.

Returns:

the DscNodeProperties object itself.

withRegistrationTime

public DscNodeProperties withRegistrationTime(OffsetDateTime registrationTime)

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.

withStatus

public DscNodeProperties withStatus(String status)

Set the status property: Gets or sets the status of the node.

Parameters:

status - the status value to set.

Returns:

the DscNodeProperties object itself.

withTotalCount

public DscNodeProperties withTotalCount(Integer totalCount)

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.

Applies to