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

com.pulumi.sumologic.outputs.KinesisMetricsSourceAuthentication 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.sumologic.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 KinesisMetricsSourceAuthentication {
    /**
     * @return Your AWS access key if using type `S3BucketAuthentication`
     * 
     */
    private @Nullable String accessKey;
    /**
     * @return Your AWS role ARN if using type `AWSRoleBasedAuthentication`
     * 
     */
    private @Nullable String roleArn;
    /**
     * @return Your AWS secret key if using type `S3BucketAuthentication`
     * 
     */
    private @Nullable String secretKey;
    /**
     * @return Must be either `S3BucketAuthentication` or `AWSRoleBasedAuthentication`
     * 
     */
    private String type;

    private KinesisMetricsSourceAuthentication() {}
    /**
     * @return Your AWS access key if using type `S3BucketAuthentication`
     * 
     */
    public Optional accessKey() {
        return Optional.ofNullable(this.accessKey);
    }
    /**
     * @return Your AWS role ARN if using type `AWSRoleBasedAuthentication`
     * 
     */
    public Optional roleArn() {
        return Optional.ofNullable(this.roleArn);
    }
    /**
     * @return Your AWS secret key if using type `S3BucketAuthentication`
     * 
     */
    public Optional secretKey() {
        return Optional.ofNullable(this.secretKey);
    }
    /**
     * @return Must be either `S3BucketAuthentication` or `AWSRoleBasedAuthentication`
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(KinesisMetricsSourceAuthentication defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String accessKey;
        private @Nullable String roleArn;
        private @Nullable String secretKey;
        private String type;
        public Builder() {}
        public Builder(KinesisMetricsSourceAuthentication defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.accessKey = defaults.accessKey;
    	      this.roleArn = defaults.roleArn;
    	      this.secretKey = defaults.secretKey;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder accessKey(@Nullable String accessKey) {

            this.accessKey = accessKey;
            return this;
        }
        @CustomType.Setter
        public Builder roleArn(@Nullable String roleArn) {

            this.roleArn = roleArn;
            return this;
        }
        @CustomType.Setter
        public Builder secretKey(@Nullable String secretKey) {

            this.secretKey = secretKey;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("KinesisMetricsSourceAuthentication", "type");
            }
            this.type = type;
            return this;
        }
        public KinesisMetricsSourceAuthentication build() {
            final var _resultValue = new KinesisMetricsSourceAuthentication();
            _resultValue.accessKey = accessKey;
            _resultValue.roleArn = roleArn;
            _resultValue.secretKey = secretKey;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy