java.lang.Object
com.azure.resourcemanager.automation.fluent.models.ActivityInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<ActivityInner>

public final class ActivityInner extends Object implements com.azure.json.JsonSerializable<ActivityInner>
Definition of the activity.
  • Constructor Details

    • ActivityInner

      public ActivityInner()
      Creates an instance of ActivityInner class.
  • Method Details

    • id

      public String id()
      Get the id property: Gets or sets the id of the resource.
      Returns:
      the id value.
    • withId

      public ActivityInner withId(String id)
      Set the id property: Gets or sets the id of the resource.
      Parameters:
      id - the id value to set.
      Returns:
      the ActivityInner object itself.
    • name

      public String name()
      Get the name property: Gets the name of the activity.
      Returns:
      the name value.
    • definition

      public String definition()
      Get the definition property: Gets or sets the user name of the activity.
      Returns:
      the definition value.
    • withDefinition

      public ActivityInner withDefinition(String definition)
      Set the definition property: Gets or sets the user name of the activity.
      Parameters:
      definition - the definition value to set.
      Returns:
      the ActivityInner object itself.
    • parameterSets

      public List<ActivityParameterSet> parameterSets()
      Get the parameterSets property: Gets or sets the parameter sets of the activity.
      Returns:
      the parameterSets value.
    • withParameterSets

      public ActivityInner withParameterSets(List<ActivityParameterSet> parameterSets)
      Set the parameterSets property: Gets or sets the parameter sets of the activity.
      Parameters:
      parameterSets - the parameterSets value to set.
      Returns:
      the ActivityInner object itself.
    • outputTypes

      public List<ActivityOutputType> outputTypes()
      Get the outputTypes property: Gets or sets the output types of the activity.
      Returns:
      the outputTypes value.
    • withOutputTypes

      public ActivityInner withOutputTypes(List<ActivityOutputType> outputTypes)
      Set the outputTypes property: Gets or sets the output types of the activity.
      Parameters:
      outputTypes - the outputTypes value to set.
      Returns:
      the ActivityInner object itself.
    • creationTime

      public OffsetDateTime creationTime()
      Get the creationTime property: Gets or sets the creation time.
      Returns:
      the creationTime value.
    • withCreationTime

      public ActivityInner withCreationTime(OffsetDateTime creationTime)
      Set the creationTime property: Gets or sets the creation time.
      Parameters:
      creationTime - the creationTime value to set.
      Returns:
      the ActivityInner object itself.
    • lastModifiedTime

      public OffsetDateTime lastModifiedTime()
      Get the lastModifiedTime property: Gets or sets the last modified time.
      Returns:
      the lastModifiedTime value.
    • withLastModifiedTime

      public ActivityInner withLastModifiedTime(OffsetDateTime lastModifiedTime)
      Set the lastModifiedTime property: Gets or sets the last modified time.
      Parameters:
      lastModifiedTime - the lastModifiedTime value to set.
      Returns:
      the ActivityInner object itself.
    • description

      public String description()
      Get the description property: Gets or sets the description.
      Returns:
      the description value.
    • withDescription

      public ActivityInner withDescription(String description)
      Set the description property: Gets or sets the description.
      Parameters:
      description - the description value to set.
      Returns:
      the ActivityInner object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ActivityInner>
      Throws:
      IOException
    • fromJson

      public static ActivityInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ActivityInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ActivityInner 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 ActivityInner.