
com.pulumi.aws.iot.outputs.TopicRuleStepFunction 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.aws.iot.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class TopicRuleStepFunction {
/**
* @return The prefix used to generate, along with a UUID, the unique state machine execution name.
*
*/
private @Nullable String executionNamePrefix;
/**
* @return The ARN of the IAM role that grants access to start execution of the state machine.
*
*/
private String roleArn;
/**
* @return The name of the Step Functions state machine whose execution will be started.
*
*/
private String stateMachineName;
private TopicRuleStepFunction() {}
/**
* @return The prefix used to generate, along with a UUID, the unique state machine execution name.
*
*/
public Optional executionNamePrefix() {
return Optional.ofNullable(this.executionNamePrefix);
}
/**
* @return The ARN of the IAM role that grants access to start execution of the state machine.
*
*/
public String roleArn() {
return this.roleArn;
}
/**
* @return The name of the Step Functions state machine whose execution will be started.
*
*/
public String stateMachineName() {
return this.stateMachineName;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TopicRuleStepFunction defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String executionNamePrefix;
private String roleArn;
private String stateMachineName;
public Builder() {}
public Builder(TopicRuleStepFunction defaults) {
Objects.requireNonNull(defaults);
this.executionNamePrefix = defaults.executionNamePrefix;
this.roleArn = defaults.roleArn;
this.stateMachineName = defaults.stateMachineName;
}
@CustomType.Setter
public Builder executionNamePrefix(@Nullable String executionNamePrefix) {
this.executionNamePrefix = executionNamePrefix;
return this;
}
@CustomType.Setter
public Builder roleArn(String roleArn) {
if (roleArn == null) {
throw new MissingRequiredPropertyException("TopicRuleStepFunction", "roleArn");
}
this.roleArn = roleArn;
return this;
}
@CustomType.Setter
public Builder stateMachineName(String stateMachineName) {
if (stateMachineName == null) {
throw new MissingRequiredPropertyException("TopicRuleStepFunction", "stateMachineName");
}
this.stateMachineName = stateMachineName;
return this;
}
public TopicRuleStepFunction build() {
final var _resultValue = new TopicRuleStepFunction();
_resultValue.executionNamePrefix = executionNamePrefix;
_resultValue.roleArn = roleArn;
_resultValue.stateMachineName = stateMachineName;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy