com.pulumi.azurenative.hdinsight.outputs.RuntimeScriptActionResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.hdinsight.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class RuntimeScriptActionResponse {
/**
* @return The application name of the script action, if any.
*
*/
private String applicationName;
/**
* @return The name of the script action.
*
*/
private String name;
/**
* @return The parameters for the script
*
*/
private @Nullable String parameters;
/**
* @return The list of roles where script will be executed.
*
*/
private List roles;
/**
* @return The URI to the script.
*
*/
private String uri;
private RuntimeScriptActionResponse() {}
/**
* @return The application name of the script action, if any.
*
*/
public String applicationName() {
return this.applicationName;
}
/**
* @return The name of the script action.
*
*/
public String name() {
return this.name;
}
/**
* @return The parameters for the script
*
*/
public Optional parameters() {
return Optional.ofNullable(this.parameters);
}
/**
* @return The list of roles where script will be executed.
*
*/
public List roles() {
return this.roles;
}
/**
* @return The URI to the script.
*
*/
public String uri() {
return this.uri;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RuntimeScriptActionResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String applicationName;
private String name;
private @Nullable String parameters;
private List roles;
private String uri;
public Builder() {}
public Builder(RuntimeScriptActionResponse defaults) {
Objects.requireNonNull(defaults);
this.applicationName = defaults.applicationName;
this.name = defaults.name;
this.parameters = defaults.parameters;
this.roles = defaults.roles;
this.uri = defaults.uri;
}
@CustomType.Setter
public Builder applicationName(String applicationName) {
if (applicationName == null) {
throw new MissingRequiredPropertyException("RuntimeScriptActionResponse", "applicationName");
}
this.applicationName = applicationName;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("RuntimeScriptActionResponse", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder parameters(@Nullable String parameters) {
this.parameters = parameters;
return this;
}
@CustomType.Setter
public Builder roles(List roles) {
if (roles == null) {
throw new MissingRequiredPropertyException("RuntimeScriptActionResponse", "roles");
}
this.roles = roles;
return this;
}
public Builder roles(String... roles) {
return roles(List.of(roles));
}
@CustomType.Setter
public Builder uri(String uri) {
if (uri == null) {
throw new MissingRequiredPropertyException("RuntimeScriptActionResponse", "uri");
}
this.uri = uri;
return this;
}
public RuntimeScriptActionResponse build() {
final var _resultValue = new RuntimeScriptActionResponse();
_resultValue.applicationName = applicationName;
_resultValue.name = name;
_resultValue.parameters = parameters;
_resultValue.roles = roles;
_resultValue.uri = uri;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy