Class ModuleProperties
java.lang.Object
com.azure.resourcemanager.automation.fluent.models.ModuleProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ModuleProperties>
public final class ModuleProperties
extends Object
implements com.azure.json.JsonSerializable<ModuleProperties>
Definition of the module property type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the activityCount property: Gets or sets the activity count of the module.Get the contentLink property: Gets or sets the contentLink of the module.Get the creationTime property: Gets or sets the creation time.Get the description property: Gets or sets the description.error()
Get the error property: Gets or sets the error info of the module.static ModuleProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ModuleProperties from the JsonReader.Get the isComposite property: Gets or sets type of module, if its composite or not.isGlobal()
Get the isGlobal property: Gets or sets the isGlobal flag of the module.Get the lastModifiedTime property: Gets or sets the last modified time.Get the provisioningState property: Gets or sets the provisioning state of the module.Get the sizeInBytes property: Gets or sets the size in bytes of the module.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.version()
Get the version property: Gets or sets the version of the module.withActivityCount
(Integer activityCount) Set the activityCount property: Gets or sets the activity count of the module.withContentLink
(ContentLink contentLink) Set the contentLink property: Gets or sets the contentLink of the module.withCreationTime
(OffsetDateTime creationTime) Set the creationTime property: Gets or sets the creation time.withDescription
(String description) Set the description property: Gets or sets the description.withError
(ModuleErrorInfo error) Set the error property: Gets or sets the error info of the module.withIsComposite
(Boolean isComposite) Set the isComposite property: Gets or sets type of module, if its composite or not.withIsGlobal
(Boolean isGlobal) Set the isGlobal property: Gets or sets the isGlobal flag of the module.withLastModifiedTime
(OffsetDateTime lastModifiedTime) Set the lastModifiedTime property: Gets or sets the last modified time.withProvisioningState
(ModuleProvisioningState provisioningState) Set the provisioningState property: Gets or sets the provisioning state of the module.withSizeInBytes
(Long sizeInBytes) Set the sizeInBytes property: Gets or sets the size in bytes of the module.withVersion
(String version) Set the version property: Gets or sets the version of the module.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
-
ModuleProperties
public ModuleProperties()Creates an instance of ModuleProperties class.
-
-
Method Details
-
isGlobal
Get the isGlobal property: Gets or sets the isGlobal flag of the module.- Returns:
- the isGlobal value.
-
withIsGlobal
Set the isGlobal property: Gets or sets the isGlobal flag of the module.- Parameters:
isGlobal
- the isGlobal value to set.- Returns:
- the ModuleProperties object itself.
-
version
Get the version property: Gets or sets the version of the module.- Returns:
- the version value.
-
withVersion
Set the version property: Gets or sets the version of the module.- Parameters:
version
- the version value to set.- Returns:
- the ModuleProperties object itself.
-
sizeInBytes
Get the sizeInBytes property: Gets or sets the size in bytes of the module.- Returns:
- the sizeInBytes value.
-
withSizeInBytes
Set the sizeInBytes property: Gets or sets the size in bytes of the module.- Parameters:
sizeInBytes
- the sizeInBytes value to set.- Returns:
- the ModuleProperties object itself.
-
activityCount
Get the activityCount property: Gets or sets the activity count of the module.- Returns:
- the activityCount value.
-
withActivityCount
Set the activityCount property: Gets or sets the activity count of the module.- Parameters:
activityCount
- the activityCount value to set.- Returns:
- the ModuleProperties object itself.
-
provisioningState
Get the provisioningState property: Gets or sets the provisioning state of the module.- Returns:
- the provisioningState value.
-
withProvisioningState
Set the provisioningState property: Gets or sets the provisioning state of the module.- Parameters:
provisioningState
- the provisioningState value to set.- Returns:
- the ModuleProperties object itself.
-
contentLink
Get the contentLink property: Gets or sets the contentLink of the module.- Returns:
- the contentLink value.
-
withContentLink
Set the contentLink property: Gets or sets the contentLink of the module.- Parameters:
contentLink
- the contentLink value to set.- Returns:
- the ModuleProperties object itself.
-
error
Get the error property: Gets or sets the error info of the module.- Returns:
- the error value.
-
withError
Set the error property: Gets or sets the error info of the module.- Parameters:
error
- the error value to set.- Returns:
- the ModuleProperties object itself.
-
creationTime
Get the creationTime property: Gets or sets the creation time.- Returns:
- the creationTime value.
-
withCreationTime
Set the creationTime property: Gets or sets the creation time.- Parameters:
creationTime
- the creationTime value to set.- Returns:
- the ModuleProperties object itself.
-
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 ModuleProperties object itself.
-
description
Get the description property: Gets or sets the description.- Returns:
- the description value.
-
withDescription
Set the description property: Gets or sets the description.- Parameters:
description
- the description value to set.- Returns:
- the ModuleProperties object itself.
-
isComposite
Get the isComposite property: Gets or sets type of module, if its composite or not.- Returns:
- the isComposite value.
-
withIsComposite
Set the isComposite property: Gets or sets type of module, if its composite or not.- Parameters:
isComposite
- the isComposite value to set.- Returns:
- the ModuleProperties 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<ModuleProperties>
- Throws:
IOException
-
fromJson
Reads an instance of ModuleProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ModuleProperties 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 ModuleProperties.
-