Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azurenative.datafactory.inputs.WebActivityArgs Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.datafactory.inputs;
import com.pulumi.azurenative.datafactory.enums.ActivityOnInactiveMarkAs;
import com.pulumi.azurenative.datafactory.enums.ActivityState;
import com.pulumi.azurenative.datafactory.enums.WebActivityMethod;
import com.pulumi.azurenative.datafactory.inputs.ActivityDependencyArgs;
import com.pulumi.azurenative.datafactory.inputs.ActivityPolicyArgs;
import com.pulumi.azurenative.datafactory.inputs.DatasetReferenceArgs;
import com.pulumi.azurenative.datafactory.inputs.IntegrationRuntimeReferenceArgs;
import com.pulumi.azurenative.datafactory.inputs.LinkedServiceReferenceArgs;
import com.pulumi.azurenative.datafactory.inputs.UserPropertyArgs;
import com.pulumi.azurenative.datafactory.inputs.WebActivityAuthenticationArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Web activity.
*
*/
public final class WebActivityArgs extends com.pulumi.resources.ResourceArgs {
public static final WebActivityArgs Empty = new WebActivityArgs();
/**
* Authentication method used for calling the endpoint.
*
*/
@Import(name="authentication")
private @Nullable Output authentication;
/**
* @return Authentication method used for calling the endpoint.
*
*/
public Optional> authentication() {
return Optional.ofNullable(this.authentication);
}
/**
* Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string).
*
*/
@Import(name="body")
private @Nullable Output body;
/**
* @return Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string).
*
*/
public Optional> body() {
return Optional.ofNullable(this.body);
}
/**
* The integration runtime reference.
*
*/
@Import(name="connectVia")
private @Nullable Output connectVia;
/**
* @return The integration runtime reference.
*
*/
public Optional> connectVia() {
return Optional.ofNullable(this.connectVia);
}
/**
* List of datasets passed to web endpoint.
*
*/
@Import(name="datasets")
private @Nullable Output> datasets;
/**
* @return List of datasets passed to web endpoint.
*
*/
public Optional>> datasets() {
return Optional.ofNullable(this.datasets);
}
/**
* Activity depends on condition.
*
*/
@Import(name="dependsOn")
private @Nullable Output> dependsOn;
/**
* @return Activity depends on condition.
*
*/
public Optional>> dependsOn() {
return Optional.ofNullable(this.dependsOn);
}
/**
* Activity description.
*
*/
@Import(name="description")
private @Nullable Output description;
/**
* @return Activity description.
*
*/
public Optional> description() {
return Optional.ofNullable(this.description);
}
/**
* When set to true, Certificate validation will be disabled.
*
*/
@Import(name="disableCertValidation")
private @Nullable Output disableCertValidation;
/**
* @return When set to true, Certificate validation will be disabled.
*
*/
public Optional> disableCertValidation() {
return Optional.ofNullable(this.disableCertValidation);
}
/**
* Represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: string (or Expression with resultType string).
*
*/
@Import(name="headers")
private @Nullable Output> headers;
/**
* @return Represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: string (or Expression with resultType string).
*
*/
public Optional>> headers() {
return Optional.ofNullable(this.headers);
}
/**
* Timeout for the HTTP request to get a response. Format is in TimeSpan (hh:mm:ss). This value is the timeout to get a response, not the activity timeout. The default value is 00:01:00 (1 minute). The range is from 1 to 10 minutes
*
*/
@Import(name="httpRequestTimeout")
private @Nullable Output httpRequestTimeout;
/**
* @return Timeout for the HTTP request to get a response. Format is in TimeSpan (hh:mm:ss). This value is the timeout to get a response, not the activity timeout. The default value is 00:01:00 (1 minute). The range is from 1 to 10 minutes
*
*/
public Optional> httpRequestTimeout() {
return Optional.ofNullable(this.httpRequestTimeout);
}
/**
* Linked service reference.
*
*/
@Import(name="linkedServiceName")
private @Nullable Output linkedServiceName;
/**
* @return Linked service reference.
*
*/
public Optional> linkedServiceName() {
return Optional.ofNullable(this.linkedServiceName);
}
/**
* List of linked services passed to web endpoint.
*
*/
@Import(name="linkedServices")
private @Nullable Output> linkedServices;
/**
* @return List of linked services passed to web endpoint.
*
*/
public Optional>> linkedServices() {
return Optional.ofNullable(this.linkedServices);
}
/**
* Rest API method for target endpoint.
*
*/
@Import(name="method", required=true)
private Output> method;
/**
* @return Rest API method for target endpoint.
*
*/
public Output> method() {
return this.method;
}
/**
* Activity name.
*
*/
@Import(name="name", required=true)
private Output name;
/**
* @return Activity name.
*
*/
public Output name() {
return this.name;
}
/**
* 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.
*
*/
@Import(name="onInactiveMarkAs")
private @Nullable Output> onInactiveMarkAs;
/**
* @return 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.
*
*/
public Optional>> onInactiveMarkAs() {
return Optional.ofNullable(this.onInactiveMarkAs);
}
/**
* Activity policy.
*
*/
@Import(name="policy")
private @Nullable Output policy;
/**
* @return Activity policy.
*
*/
public Optional> policy() {
return Optional.ofNullable(this.policy);
}
/**
* Activity state. This is an optional property and if not provided, the state will be Active by default.
*
*/
@Import(name="state")
private @Nullable Output> state;
/**
* @return Activity state. This is an optional property and if not provided, the state will be Active by default.
*
*/
public Optional>> state() {
return Optional.ofNullable(this.state);
}
/**
* Option to disable invoking HTTP GET on location given in response header of a HTTP 202 Response. If set true, it stops invoking HTTP GET on http location given in response header. If set false then continues to invoke HTTP GET call on location given in http response headers.
*
*/
@Import(name="turnOffAsync")
private @Nullable Output turnOffAsync;
/**
* @return Option to disable invoking HTTP GET on location given in response header of a HTTP 202 Response. If set true, it stops invoking HTTP GET on http location given in response header. If set false then continues to invoke HTTP GET call on location given in http response headers.
*
*/
public Optional> turnOffAsync() {
return Optional.ofNullable(this.turnOffAsync);
}
/**
* Type of activity.
* Expected value is 'WebActivity'.
*
*/
@Import(name="type", required=true)
private Output type;
/**
* @return Type of activity.
* Expected value is 'WebActivity'.
*
*/
public Output type() {
return this.type;
}
/**
* Web activity target endpoint and path. Type: string (or Expression with resultType string).
*
*/
@Import(name="url", required=true)
private Output url;
/**
* @return Web activity target endpoint and path. Type: string (or Expression with resultType string).
*
*/
public Output url() {
return this.url;
}
/**
* Activity user properties.
*
*/
@Import(name="userProperties")
private @Nullable Output> userProperties;
/**
* @return Activity user properties.
*
*/
public Optional>> userProperties() {
return Optional.ofNullable(this.userProperties);
}
private WebActivityArgs() {}
private WebActivityArgs(WebActivityArgs $) {
this.authentication = $.authentication;
this.body = $.body;
this.connectVia = $.connectVia;
this.datasets = $.datasets;
this.dependsOn = $.dependsOn;
this.description = $.description;
this.disableCertValidation = $.disableCertValidation;
this.headers = $.headers;
this.httpRequestTimeout = $.httpRequestTimeout;
this.linkedServiceName = $.linkedServiceName;
this.linkedServices = $.linkedServices;
this.method = $.method;
this.name = $.name;
this.onInactiveMarkAs = $.onInactiveMarkAs;
this.policy = $.policy;
this.state = $.state;
this.turnOffAsync = $.turnOffAsync;
this.type = $.type;
this.url = $.url;
this.userProperties = $.userProperties;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WebActivityArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private WebActivityArgs $;
public Builder() {
$ = new WebActivityArgs();
}
public Builder(WebActivityArgs defaults) {
$ = new WebActivityArgs(Objects.requireNonNull(defaults));
}
/**
* @param authentication Authentication method used for calling the endpoint.
*
* @return builder
*
*/
public Builder authentication(@Nullable Output authentication) {
$.authentication = authentication;
return this;
}
/**
* @param authentication Authentication method used for calling the endpoint.
*
* @return builder
*
*/
public Builder authentication(WebActivityAuthenticationArgs authentication) {
return authentication(Output.of(authentication));
}
/**
* @param body Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string).
*
* @return builder
*
*/
public Builder body(@Nullable Output body) {
$.body = body;
return this;
}
/**
* @param body Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string).
*
* @return builder
*
*/
public Builder body(Object body) {
return body(Output.of(body));
}
/**
* @param connectVia The integration runtime reference.
*
* @return builder
*
*/
public Builder connectVia(@Nullable Output connectVia) {
$.connectVia = connectVia;
return this;
}
/**
* @param connectVia The integration runtime reference.
*
* @return builder
*
*/
public Builder connectVia(IntegrationRuntimeReferenceArgs connectVia) {
return connectVia(Output.of(connectVia));
}
/**
* @param datasets List of datasets passed to web endpoint.
*
* @return builder
*
*/
public Builder datasets(@Nullable Output> datasets) {
$.datasets = datasets;
return this;
}
/**
* @param datasets List of datasets passed to web endpoint.
*
* @return builder
*
*/
public Builder datasets(List datasets) {
return datasets(Output.of(datasets));
}
/**
* @param datasets List of datasets passed to web endpoint.
*
* @return builder
*
*/
public Builder datasets(DatasetReferenceArgs... datasets) {
return datasets(List.of(datasets));
}
/**
* @param dependsOn Activity depends on condition.
*
* @return builder
*
*/
public Builder dependsOn(@Nullable Output> dependsOn) {
$.dependsOn = dependsOn;
return this;
}
/**
* @param dependsOn Activity depends on condition.
*
* @return builder
*
*/
public Builder dependsOn(List dependsOn) {
return dependsOn(Output.of(dependsOn));
}
/**
* @param dependsOn Activity depends on condition.
*
* @return builder
*
*/
public Builder dependsOn(ActivityDependencyArgs... dependsOn) {
return dependsOn(List.of(dependsOn));
}
/**
* @param description Activity description.
*
* @return builder
*
*/
public Builder description(@Nullable Output description) {
$.description = description;
return this;
}
/**
* @param description Activity description.
*
* @return builder
*
*/
public Builder description(String description) {
return description(Output.of(description));
}
/**
* @param disableCertValidation When set to true, Certificate validation will be disabled.
*
* @return builder
*
*/
public Builder disableCertValidation(@Nullable Output disableCertValidation) {
$.disableCertValidation = disableCertValidation;
return this;
}
/**
* @param disableCertValidation When set to true, Certificate validation will be disabled.
*
* @return builder
*
*/
public Builder disableCertValidation(Boolean disableCertValidation) {
return disableCertValidation(Output.of(disableCertValidation));
}
/**
* @param headers Represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: string (or Expression with resultType string).
*
* @return builder
*
*/
public Builder headers(@Nullable Output> headers) {
$.headers = headers;
return this;
}
/**
* @param headers Represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: string (or Expression with resultType string).
*
* @return builder
*
*/
public Builder headers(Map headers) {
return headers(Output.of(headers));
}
/**
* @param httpRequestTimeout Timeout for the HTTP request to get a response. Format is in TimeSpan (hh:mm:ss). This value is the timeout to get a response, not the activity timeout. The default value is 00:01:00 (1 minute). The range is from 1 to 10 minutes
*
* @return builder
*
*/
public Builder httpRequestTimeout(@Nullable Output httpRequestTimeout) {
$.httpRequestTimeout = httpRequestTimeout;
return this;
}
/**
* @param httpRequestTimeout Timeout for the HTTP request to get a response. Format is in TimeSpan (hh:mm:ss). This value is the timeout to get a response, not the activity timeout. The default value is 00:01:00 (1 minute). The range is from 1 to 10 minutes
*
* @return builder
*
*/
public Builder httpRequestTimeout(Object httpRequestTimeout) {
return httpRequestTimeout(Output.of(httpRequestTimeout));
}
/**
* @param linkedServiceName Linked service reference.
*
* @return builder
*
*/
public Builder linkedServiceName(@Nullable Output linkedServiceName) {
$.linkedServiceName = linkedServiceName;
return this;
}
/**
* @param linkedServiceName Linked service reference.
*
* @return builder
*
*/
public Builder linkedServiceName(LinkedServiceReferenceArgs linkedServiceName) {
return linkedServiceName(Output.of(linkedServiceName));
}
/**
* @param linkedServices List of linked services passed to web endpoint.
*
* @return builder
*
*/
public Builder linkedServices(@Nullable Output> linkedServices) {
$.linkedServices = linkedServices;
return this;
}
/**
* @param linkedServices List of linked services passed to web endpoint.
*
* @return builder
*
*/
public Builder linkedServices(List linkedServices) {
return linkedServices(Output.of(linkedServices));
}
/**
* @param linkedServices List of linked services passed to web endpoint.
*
* @return builder
*
*/
public Builder linkedServices(LinkedServiceReferenceArgs... linkedServices) {
return linkedServices(List.of(linkedServices));
}
/**
* @param method Rest API method for target endpoint.
*
* @return builder
*
*/
public Builder method(Output> method) {
$.method = method;
return this;
}
/**
* @param method Rest API method for target endpoint.
*
* @return builder
*
*/
public Builder method(Either method) {
return method(Output.of(method));
}
/**
* @param method Rest API method for target endpoint.
*
* @return builder
*
*/
public Builder method(String method) {
return method(Either.ofLeft(method));
}
/**
* @param method Rest API method for target endpoint.
*
* @return builder
*
*/
public Builder method(WebActivityMethod method) {
return method(Either.ofRight(method));
}
/**
* @param name Activity name.
*
* @return builder
*
*/
public Builder name(Output name) {
$.name = name;
return this;
}
/**
* @param name Activity name.
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param onInactiveMarkAs 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.
*
* @return builder
*
*/
public Builder onInactiveMarkAs(@Nullable Output> onInactiveMarkAs) {
$.onInactiveMarkAs = onInactiveMarkAs;
return this;
}
/**
* @param onInactiveMarkAs 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.
*
* @return builder
*
*/
public Builder onInactiveMarkAs(Either onInactiveMarkAs) {
return onInactiveMarkAs(Output.of(onInactiveMarkAs));
}
/**
* @param onInactiveMarkAs 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.
*
* @return builder
*
*/
public Builder onInactiveMarkAs(String onInactiveMarkAs) {
return onInactiveMarkAs(Either.ofLeft(onInactiveMarkAs));
}
/**
* @param onInactiveMarkAs 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.
*
* @return builder
*
*/
public Builder onInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs) {
return onInactiveMarkAs(Either.ofRight(onInactiveMarkAs));
}
/**
* @param policy Activity policy.
*
* @return builder
*
*/
public Builder policy(@Nullable Output policy) {
$.policy = policy;
return this;
}
/**
* @param policy Activity policy.
*
* @return builder
*
*/
public Builder policy(ActivityPolicyArgs policy) {
return policy(Output.of(policy));
}
/**
* @param state Activity state. This is an optional property and if not provided, the state will be Active by default.
*
* @return builder
*
*/
public Builder state(@Nullable Output> state) {
$.state = state;
return this;
}
/**
* @param state Activity state. This is an optional property and if not provided, the state will be Active by default.
*
* @return builder
*
*/
public Builder state(Either state) {
return state(Output.of(state));
}
/**
* @param state Activity state. This is an optional property and if not provided, the state will be Active by default.
*
* @return builder
*
*/
public Builder state(String state) {
return state(Either.ofLeft(state));
}
/**
* @param state Activity state. This is an optional property and if not provided, the state will be Active by default.
*
* @return builder
*
*/
public Builder state(ActivityState state) {
return state(Either.ofRight(state));
}
/**
* @param turnOffAsync Option to disable invoking HTTP GET on location given in response header of a HTTP 202 Response. If set true, it stops invoking HTTP GET on http location given in response header. If set false then continues to invoke HTTP GET call on location given in http response headers.
*
* @return builder
*
*/
public Builder turnOffAsync(@Nullable Output turnOffAsync) {
$.turnOffAsync = turnOffAsync;
return this;
}
/**
* @param turnOffAsync Option to disable invoking HTTP GET on location given in response header of a HTTP 202 Response. If set true, it stops invoking HTTP GET on http location given in response header. If set false then continues to invoke HTTP GET call on location given in http response headers.
*
* @return builder
*
*/
public Builder turnOffAsync(Boolean turnOffAsync) {
return turnOffAsync(Output.of(turnOffAsync));
}
/**
* @param type Type of activity.
* Expected value is 'WebActivity'.
*
* @return builder
*
*/
public Builder type(Output type) {
$.type = type;
return this;
}
/**
* @param type Type of activity.
* Expected value is 'WebActivity'.
*
* @return builder
*
*/
public Builder type(String type) {
return type(Output.of(type));
}
/**
* @param url Web activity target endpoint and path. Type: string (or Expression with resultType string).
*
* @return builder
*
*/
public Builder url(Output url) {
$.url = url;
return this;
}
/**
* @param url Web activity target endpoint and path. Type: string (or Expression with resultType string).
*
* @return builder
*
*/
public Builder url(Object url) {
return url(Output.of(url));
}
/**
* @param userProperties Activity user properties.
*
* @return builder
*
*/
public Builder userProperties(@Nullable Output> userProperties) {
$.userProperties = userProperties;
return this;
}
/**
* @param userProperties Activity user properties.
*
* @return builder
*
*/
public Builder userProperties(List userProperties) {
return userProperties(Output.of(userProperties));
}
/**
* @param userProperties Activity user properties.
*
* @return builder
*
*/
public Builder userProperties(UserPropertyArgs... userProperties) {
return userProperties(List.of(userProperties));
}
public WebActivityArgs build() {
if ($.method == null) {
throw new MissingRequiredPropertyException("WebActivityArgs", "method");
}
if ($.name == null) {
throw new MissingRequiredPropertyException("WebActivityArgs", "name");
}
$.type = Codegen.stringProp("type").output().arg($.type).require();
if ($.url == null) {
throw new MissingRequiredPropertyException("WebActivityArgs", "url");
}
return $;
}
}
}