
com.pulumi.aws.iot.outputs.TopicRuleKinesis 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 TopicRuleKinesis {
/**
* @return The partition key.
*
*/
private @Nullable String partitionKey;
/**
* @return The ARN of the IAM role that grants access to the Amazon Kinesis stream.
*
*/
private String roleArn;
/**
* @return The name of the Amazon Kinesis stream.
*
*/
private String streamName;
private TopicRuleKinesis() {}
/**
* @return The partition key.
*
*/
public Optional partitionKey() {
return Optional.ofNullable(this.partitionKey);
}
/**
* @return The ARN of the IAM role that grants access to the Amazon Kinesis stream.
*
*/
public String roleArn() {
return this.roleArn;
}
/**
* @return The name of the Amazon Kinesis stream.
*
*/
public String streamName() {
return this.streamName;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TopicRuleKinesis defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String partitionKey;
private String roleArn;
private String streamName;
public Builder() {}
public Builder(TopicRuleKinesis defaults) {
Objects.requireNonNull(defaults);
this.partitionKey = defaults.partitionKey;
this.roleArn = defaults.roleArn;
this.streamName = defaults.streamName;
}
@CustomType.Setter
public Builder partitionKey(@Nullable String partitionKey) {
this.partitionKey = partitionKey;
return this;
}
@CustomType.Setter
public Builder roleArn(String roleArn) {
if (roleArn == null) {
throw new MissingRequiredPropertyException("TopicRuleKinesis", "roleArn");
}
this.roleArn = roleArn;
return this;
}
@CustomType.Setter
public Builder streamName(String streamName) {
if (streamName == null) {
throw new MissingRequiredPropertyException("TopicRuleKinesis", "streamName");
}
this.streamName = streamName;
return this;
}
public TopicRuleKinesis build() {
final var _resultValue = new TopicRuleKinesis();
_resultValue.partitionKey = partitionKey;
_resultValue.roleArn = roleArn;
_resultValue.streamName = streamName;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy