Class ActivityProperties
java.lang.Object
com.azure.resourcemanager.automation.fluent.models.ActivityProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ActivityProperties>
public final class ActivityProperties
extends Object
implements com.azure.json.JsonSerializable<ActivityProperties>
Properties of the activity.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the creationTime property: Gets or sets the creation time.Get the definition property: Gets or sets the user name of the activity.Get the description property: Gets or sets the description.static ActivityProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ActivityProperties from the JsonReader.Get the lastModifiedTime property: Gets or sets the last modified time.Get the outputTypes property: Gets or sets the output types of the activity.Get the parameterSets property: Gets or sets the parameter sets of the activity.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withCreationTime
(OffsetDateTime creationTime) Set the creationTime property: Gets or sets the creation time.withDefinition
(String definition) Set the definition property: Gets or sets the user name of the activity.withDescription
(String description) Set the description property: Gets or sets the description.withLastModifiedTime
(OffsetDateTime lastModifiedTime) Set the lastModifiedTime property: Gets or sets the last modified time.withOutputTypes
(List<ActivityOutputType> outputTypes) Set the outputTypes property: Gets or sets the output types of the activity.withParameterSets
(List<ActivityParameterSet> parameterSets) Set the parameterSets property: Gets or sets the parameter sets of the activity.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
-
ActivityProperties
public ActivityProperties()Creates an instance of ActivityProperties class.
-
-
Method Details
-
definition
Get the definition property: Gets or sets the user name of the activity.- Returns:
- the definition value.
-
withDefinition
Set the definition property: Gets or sets the user name of the activity.- Parameters:
definition
- the definition value to set.- Returns:
- the ActivityProperties object itself.
-
parameterSets
Get the parameterSets property: Gets or sets the parameter sets of the activity.- Returns:
- the parameterSets value.
-
withParameterSets
Set the parameterSets property: Gets or sets the parameter sets of the activity.- Parameters:
parameterSets
- the parameterSets value to set.- Returns:
- the ActivityProperties object itself.
-
outputTypes
Get the outputTypes property: Gets or sets the output types of the activity.- Returns:
- the outputTypes value.
-
withOutputTypes
Set the outputTypes property: Gets or sets the output types of the activity.- Parameters:
outputTypes
- the outputTypes value to set.- Returns:
- the ActivityProperties 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 ActivityProperties 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 ActivityProperties 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 ActivityProperties 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<ActivityProperties>
- Throws:
IOException
-
fromJson
Reads an instance of ActivityProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ActivityProperties 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 ActivityProperties.
-