com.pulumi.aws.ses.outputs.ReceiptRuleWorkmailAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud 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.aws.ses.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ReceiptRuleWorkmailAction {
/**
* @return The ARN of the WorkMail organization
*
*/
private String organizationArn;
/**
* @return The position of the action in the receipt rule
*
*/
private Integer position;
/**
* @return The ARN of an SNS topic to notify
*
*/
private @Nullable String topicArn;
private ReceiptRuleWorkmailAction() {}
/**
* @return The ARN of the WorkMail organization
*
*/
public String organizationArn() {
return this.organizationArn;
}
/**
* @return The position of the action in the receipt rule
*
*/
public Integer position() {
return this.position;
}
/**
* @return The ARN of an SNS topic to notify
*
*/
public Optional topicArn() {
return Optional.ofNullable(this.topicArn);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ReceiptRuleWorkmailAction defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String organizationArn;
private Integer position;
private @Nullable String topicArn;
public Builder() {}
public Builder(ReceiptRuleWorkmailAction defaults) {
Objects.requireNonNull(defaults);
this.organizationArn = defaults.organizationArn;
this.position = defaults.position;
this.topicArn = defaults.topicArn;
}
@CustomType.Setter
public Builder organizationArn(String organizationArn) {
if (organizationArn == null) {
throw new MissingRequiredPropertyException("ReceiptRuleWorkmailAction", "organizationArn");
}
this.organizationArn = organizationArn;
return this;
}
@CustomType.Setter
public Builder position(Integer position) {
if (position == null) {
throw new MissingRequiredPropertyException("ReceiptRuleWorkmailAction", "position");
}
this.position = position;
return this;
}
@CustomType.Setter
public Builder topicArn(@Nullable String topicArn) {
this.topicArn = topicArn;
return this;
}
public ReceiptRuleWorkmailAction build() {
final var _resultValue = new ReceiptRuleWorkmailAction();
_resultValue.organizationArn = organizationArn;
_resultValue.position = position;
_resultValue.topicArn = topicArn;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy