Class DscNodeConfigurationInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.automation.fluent.models.DscNodeConfigurationInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class DscNodeConfigurationInner
extends com.azure.core.management.ProxyResource
Definition of the dsc node configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DscNodeConfigurationInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the configuration property: Gets or sets the configuration of the node.Get the creationTime property: Gets or sets creation time.static DscNodeConfigurationInner
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DscNodeConfigurationInner from the JsonReader.id()
Get the id property: Fully qualified resource Id for the resource.Get the incrementNodeConfigurationBuild property: If a new build version of NodeConfiguration is required.Get the lastModifiedTime property: Gets or sets the last modified time.name()
Get the name property: The name of the resource.Get the nodeCount property: Number of nodes with this node configuration assigned.source()
Get the source property: Source of node configuration.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: The type of the resource.void
validate()
Validates the instance.withConfiguration
(DscConfigurationAssociationProperty configuration) Set the configuration property: Gets or sets the configuration of the node.withCreationTime
(OffsetDateTime creationTime) Set the creationTime property: Gets or sets creation time.withIncrementNodeConfigurationBuild
(Boolean incrementNodeConfigurationBuild) Set the incrementNodeConfigurationBuild property: If a new build version of NodeConfiguration is required.withLastModifiedTime
(OffsetDateTime lastModifiedTime) Set the lastModifiedTime property: Gets or sets the last modified time.withNodeCount
(Long nodeCount) Set the nodeCount property: Number of nodes with this node configuration assigned.withSource
(String source) Set the source property: Source of node configuration.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
-
DscNodeConfigurationInner
public DscNodeConfigurationInner()Creates an instance of DscNodeConfigurationInner class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
type
in classcom.azure.core.management.ProxyResource
- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
name
in classcom.azure.core.management.ProxyResource
- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
id
in classcom.azure.core.management.ProxyResource
- Returns:
- the id value.
-
lastModifiedTime
Get the lastModifiedTime property: Gets or sets the last modified time.- Returns:
- the lastModifiedTime value.
-
withLastModifiedTime
Set the lastModifiedTime property: Gets or sets the last modified time.- Parameters:
lastModifiedTime
- the lastModifiedTime value to set.- Returns:
- the DscNodeConfigurationInner object itself.
-
creationTime
Get the creationTime property: Gets or sets creation time.- Returns:
- the creationTime value.
-
withCreationTime
Set the creationTime property: Gets or sets creation time.- Parameters:
creationTime
- the creationTime value to set.- Returns:
- the DscNodeConfigurationInner object itself.
-
configuration
Get the configuration property: Gets or sets the configuration of the node.- Returns:
- the configuration value.
-
withConfiguration
public DscNodeConfigurationInner withConfiguration(DscConfigurationAssociationProperty configuration) Set the configuration property: Gets or sets the configuration of the node.- Parameters:
configuration
- the configuration value to set.- Returns:
- the DscNodeConfigurationInner object itself.
-
source
Get the source property: Source of node configuration.- Returns:
- the source value.
-
withSource
Set the source property: Source of node configuration.- Parameters:
source
- the source value to set.- Returns:
- the DscNodeConfigurationInner object itself.
-
nodeCount
Get the nodeCount property: Number of nodes with this node configuration assigned.- Returns:
- the nodeCount value.
-
withNodeCount
Set the nodeCount property: Number of nodes with this node configuration assigned.- Parameters:
nodeCount
- the nodeCount value to set.- Returns:
- the DscNodeConfigurationInner object itself.
-
incrementNodeConfigurationBuild
Get the incrementNodeConfigurationBuild property: If a new build version of NodeConfiguration is required.- Returns:
- the incrementNodeConfigurationBuild value.
-
withIncrementNodeConfigurationBuild
public DscNodeConfigurationInner withIncrementNodeConfigurationBuild(Boolean incrementNodeConfigurationBuild) Set the incrementNodeConfigurationBuild property: If a new build version of NodeConfiguration is required.- Parameters:
incrementNodeConfigurationBuild
- the incrementNodeConfigurationBuild value to set.- Returns:
- the DscNodeConfigurationInner 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<com.azure.core.management.ProxyResource>
- Overrides:
toJson
in classcom.azure.core.management.ProxyResource
- Throws:
IOException
-
fromJson
public static DscNodeConfigurationInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DscNodeConfigurationInner from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of DscNodeConfigurationInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the DscNodeConfigurationInner.
-