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

com.pulumi.aws.rolesanywhere.TrustAnchorArgs 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.rolesanywhere;

import com.pulumi.aws.rolesanywhere.inputs.TrustAnchorNotificationSettingArgs;
import com.pulumi.aws.rolesanywhere.inputs.TrustAnchorSourceArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class TrustAnchorArgs extends com.pulumi.resources.ResourceArgs {

    public static final TrustAnchorArgs Empty = new TrustAnchorArgs();

    /**
     * Whether or not the Trust Anchor should be enabled.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return Whether or not the Trust Anchor should be enabled.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * The name of the Trust Anchor.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the Trust Anchor.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    @Import(name="notificationSettings")
    private @Nullable Output> notificationSettings;

    public Optional>> notificationSettings() {
        return Optional.ofNullable(this.notificationSettings);
    }

    /**
     * The source of trust, documented below
     * 
     */
    @Import(name="source", required=true)
    private Output source;

    /**
     * @return The source of trust, documented below
     * 
     */
    public Output source() {
        return this.source;
    }

    /**
     * A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private TrustAnchorArgs() {}

    private TrustAnchorArgs(TrustAnchorArgs $) {
        this.enabled = $.enabled;
        this.name = $.name;
        this.notificationSettings = $.notificationSettings;
        this.source = $.source;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private TrustAnchorArgs $;

        public Builder() {
            $ = new TrustAnchorArgs();
        }

        public Builder(TrustAnchorArgs defaults) {
            $ = new TrustAnchorArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param enabled Whether or not the Trust Anchor should be enabled.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Whether or not the Trust Anchor should be enabled.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param name The name of the Trust Anchor.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the Trust Anchor.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        public Builder notificationSettings(@Nullable Output> notificationSettings) {
            $.notificationSettings = notificationSettings;
            return this;
        }

        public Builder notificationSettings(List notificationSettings) {
            return notificationSettings(Output.of(notificationSettings));
        }

        public Builder notificationSettings(TrustAnchorNotificationSettingArgs... notificationSettings) {
            return notificationSettings(List.of(notificationSettings));
        }

        /**
         * @param source The source of trust, documented below
         * 
         * @return builder
         * 
         */
        public Builder source(Output source) {
            $.source = source;
            return this;
        }

        /**
         * @param source The source of trust, documented below
         * 
         * @return builder
         * 
         */
        public Builder source(TrustAnchorSourceArgs source) {
            return source(Output.of(source));
        }

        /**
         * @param tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public TrustAnchorArgs build() {
            if ($.source == null) {
                throw new MissingRequiredPropertyException("TrustAnchorArgs", "source");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy