Share via


Activity Class

  • java.lang.Object
    • com.azure.resourcemanager.datafactory.models.Activity

Implements

public class Activity
implements JsonSerializable<Activity>

A pipeline activity.

Constructor Summary

Constructor Description
Activity()

Creates an instance of Activity class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: A pipeline activity.

List<ActivityDependency> dependsOn()

Get the dependsOn property: Activity depends on condition.

String description()

Get the description property: Activity description.

static Activity fromJson(JsonReader jsonReader)

Reads an instance of Activity from the JsonReader.

String name()

Get the name property: Activity name.

ActivityOnInactiveMarkAs onInactiveMarkAs()

Get the onInactiveMarkAs property: Status result of the activity when the state is set to Inactive.

ActivityState state()

Get the state property: Activity state.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Type of activity.

List<UserProperty> userProperties()

Get the userProperties property: Activity user properties.

void validate()

Validates the instance.

Activity withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: A pipeline activity.

Activity withDependsOn(List<ActivityDependency> dependsOn)

Set the dependsOn property: Activity depends on condition.

Activity withDescription(String description)

Set the description property: Activity description.

Activity withName(String name)

Set the name property: Activity name.

Activity withOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)

Set the onInactiveMarkAs property: Status result of the activity when the state is set to Inactive.

Activity withState(ActivityState state)

Set the state property: Activity state.

Activity withUserProperties(List<UserProperty> userProperties)

Set the userProperties property: Activity user properties.

Methods inherited from java.lang.Object

Constructor Details

Activity

public Activity()

Creates an instance of Activity class.

Method Details

additionalProperties

public Map<String,Object> additionalProperties()

Get the additionalProperties property: A pipeline activity.

Returns:

the additionalProperties value.

dependsOn

public List<ActivityDependency> dependsOn()

Get the dependsOn property: Activity depends on condition.

Returns:

the dependsOn value.

description

public String description()

Get the description property: Activity description.

Returns:

the description value.

fromJson

public static Activity fromJson(JsonReader jsonReader)

Reads an instance of Activity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Activity if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

name

public String name()

Get the name property: Activity name.

Returns:

the name value.

onInactiveMarkAs

public ActivityOnInactiveMarkAs onInactiveMarkAs()

Get the onInactiveMarkAs property: Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when the activity is inactive, the status will be Succeeded by default.

Returns:

the onInactiveMarkAs value.

state

public ActivityState state()

Get the state property: Activity state. This is an optional property and if not provided, the state will be Active by default.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Type of activity.

Returns:

the type value.

userProperties

public List<UserProperty> userProperties()

Get the userProperties property: Activity user properties.

Returns:

the userProperties value.

validate

public void validate()

Validates the instance.

withAdditionalProperties

public Activity withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: A pipeline activity.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the Activity object itself.

withDependsOn

public Activity withDependsOn(List<ActivityDependency> dependsOn)

Set the dependsOn property: Activity depends on condition.

Parameters:

dependsOn - the dependsOn value to set.

Returns:

the Activity object itself.

withDescription

public Activity withDescription(String description)

Set the description property: Activity description.

Parameters:

description - the description value to set.

Returns:

the Activity object itself.

withName

public Activity withName(String name)

Set the name property: Activity name.

Parameters:

name - the name value to set.

Returns:

the Activity object itself.

withOnInactiveMarkAs

public Activity withOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)

Set the onInactiveMarkAs property: Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when the activity is inactive, the status will be Succeeded by default.

Parameters:

onInactiveMarkAs - the onInactiveMarkAs value to set.

Returns:

the Activity object itself.

withState

public Activity withState(ActivityState state)

Set the state property: Activity state. This is an optional property and if not provided, the state will be Active by default.

Parameters:

state - the state value to set.

Returns:

the Activity object itself.

withUserProperties

public Activity withUserProperties(List<UserProperty> userProperties)

Set the userProperties property: Activity user properties.

Parameters:

userProperties - the userProperties value to set.

Returns:

the Activity object itself.

Applies to