All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.iot.outputs.TopicRuleTimestream Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** 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.aws.iot.outputs.TopicRuleTimestreamDimension;
import com.pulumi.aws.iot.outputs.TopicRuleTimestreamTimestamp;
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 TopicRuleTimestream {
    /**
     * @return The name of an Amazon Timestream database.
     * 
     */
    private String databaseName;
    /**
     * @return Configuration blocks with metadata attributes of the time series that are written in each measure record. Nested arguments below.
     * 
     */
    private List dimensions;
    /**
     * @return The ARN of the role that grants permission to write to the Amazon Timestream database table.
     * 
     */
    private String roleArn;
    /**
     * @return The name of the database table into which to write the measure records.
     * 
     */
    private String tableName;
    /**
     * @return Configuration block specifying an application-defined value to replace the default value assigned to the Timestream record's timestamp in the time column. Nested arguments below.
     * 
     */
    private @Nullable TopicRuleTimestreamTimestamp timestamp;

    private TopicRuleTimestream() {}
    /**
     * @return The name of an Amazon Timestream database.
     * 
     */
    public String databaseName() {
        return this.databaseName;
    }
    /**
     * @return Configuration blocks with metadata attributes of the time series that are written in each measure record. Nested arguments below.
     * 
     */
    public List dimensions() {
        return this.dimensions;
    }
    /**
     * @return The ARN of the role that grants permission to write to the Amazon Timestream database table.
     * 
     */
    public String roleArn() {
        return this.roleArn;
    }
    /**
     * @return The name of the database table into which to write the measure records.
     * 
     */
    public String tableName() {
        return this.tableName;
    }
    /**
     * @return Configuration block specifying an application-defined value to replace the default value assigned to the Timestream record's timestamp in the time column. Nested arguments below.
     * 
     */
    public Optional timestamp() {
        return Optional.ofNullable(this.timestamp);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(TopicRuleTimestream defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String databaseName;
        private List dimensions;
        private String roleArn;
        private String tableName;
        private @Nullable TopicRuleTimestreamTimestamp timestamp;
        public Builder() {}
        public Builder(TopicRuleTimestream defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.databaseName = defaults.databaseName;
    	      this.dimensions = defaults.dimensions;
    	      this.roleArn = defaults.roleArn;
    	      this.tableName = defaults.tableName;
    	      this.timestamp = defaults.timestamp;
        }

        @CustomType.Setter
        public Builder databaseName(String databaseName) {
            if (databaseName == null) {
              throw new MissingRequiredPropertyException("TopicRuleTimestream", "databaseName");
            }
            this.databaseName = databaseName;
            return this;
        }
        @CustomType.Setter
        public Builder dimensions(List dimensions) {
            if (dimensions == null) {
              throw new MissingRequiredPropertyException("TopicRuleTimestream", "dimensions");
            }
            this.dimensions = dimensions;
            return this;
        }
        public Builder dimensions(TopicRuleTimestreamDimension... dimensions) {
            return dimensions(List.of(dimensions));
        }
        @CustomType.Setter
        public Builder roleArn(String roleArn) {
            if (roleArn == null) {
              throw new MissingRequiredPropertyException("TopicRuleTimestream", "roleArn");
            }
            this.roleArn = roleArn;
            return this;
        }
        @CustomType.Setter
        public Builder tableName(String tableName) {
            if (tableName == null) {
              throw new MissingRequiredPropertyException("TopicRuleTimestream", "tableName");
            }
            this.tableName = tableName;
            return this;
        }
        @CustomType.Setter
        public Builder timestamp(@Nullable TopicRuleTimestreamTimestamp timestamp) {

            this.timestamp = timestamp;
            return this;
        }
        public TopicRuleTimestream build() {
            final var _resultValue = new TopicRuleTimestream();
            _resultValue.databaseName = databaseName;
            _resultValue.dimensions = dimensions;
            _resultValue.roleArn = roleArn;
            _resultValue.tableName = tableName;
            _resultValue.timestamp = timestamp;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy