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

com.pulumi.aws.oam.inputs.LinkState 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.oam.inputs;

import com.pulumi.aws.oam.inputs.LinkLinkConfigurationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
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 LinkState extends com.pulumi.resources.ResourceArgs {

    public static final LinkState Empty = new LinkState();

    /**
     * ARN of the link.
     * 
     */
    @Import(name="arn")
    private @Nullable Output arn;

    /**
     * @return ARN of the link.
     * 
     */
    public Optional> arn() {
        return Optional.ofNullable(this.arn);
    }

    /**
     * Label that is assigned to this link.
     * 
     */
    @Import(name="label")
    private @Nullable Output label;

    /**
     * @return Label that is assigned to this link.
     * 
     */
    public Optional> label() {
        return Optional.ofNullable(this.label);
    }

    /**
     * Human-readable name to use to identify this source account when you are viewing data from it in the monitoring account.
     * 
     */
    @Import(name="labelTemplate")
    private @Nullable Output labelTemplate;

    /**
     * @return Human-readable name to use to identify this source account when you are viewing data from it in the monitoring account.
     * 
     */
    public Optional> labelTemplate() {
        return Optional.ofNullable(this.labelTemplate);
    }

    /**
     * Configuration for creating filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account. See `link_configuration` Block for details.
     * 
     */
    @Import(name="linkConfiguration")
    private @Nullable Output linkConfiguration;

    /**
     * @return Configuration for creating filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account. See `link_configuration` Block for details.
     * 
     */
    public Optional> linkConfiguration() {
        return Optional.ofNullable(this.linkConfiguration);
    }

    /**
     * ID string that AWS generated as part of the link ARN.
     * 
     */
    @Import(name="linkId")
    private @Nullable Output linkId;

    /**
     * @return ID string that AWS generated as part of the link ARN.
     * 
     */
    public Optional> linkId() {
        return Optional.ofNullable(this.linkId);
    }

    /**
     * Types of data that the source account shares with the monitoring account.
     * 
     */
    @Import(name="resourceTypes")
    private @Nullable Output> resourceTypes;

    /**
     * @return Types of data that the source account shares with the monitoring account.
     * 
     */
    public Optional>> resourceTypes() {
        return Optional.ofNullable(this.resourceTypes);
    }

    /**
     * ARN of the sink that is used for this link.
     * 
     */
    @Import(name="sinkArn")
    private @Nullable Output sinkArn;

    /**
     * @return ARN of the sink that is used for this link.
     * 
     */
    public Optional> sinkArn() {
        return Optional.ofNullable(this.sinkArn);
    }

    /**
     * Identifier of the sink to use to create this link.
     * 
     * The following arguments are optional:
     * 
     */
    @Import(name="sinkIdentifier")
    private @Nullable Output sinkIdentifier;

    /**
     * @return Identifier of the sink to use to create this link.
     * 
     * The following arguments are optional:
     * 
     */
    public Optional> sinkIdentifier() {
        return Optional.ofNullable(this.sinkIdentifier);
    }

    /**
     * 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);
    }

    /**
     * @deprecated
     * Please use `tags` instead.
     * 
     */
    @Deprecated /* Please use `tags` instead. */
    @Import(name="tagsAll")
    private @Nullable Output> tagsAll;

    /**
     * @deprecated
     * Please use `tags` instead.
     * 
     */
    @Deprecated /* Please use `tags` instead. */
    public Optional>> tagsAll() {
        return Optional.ofNullable(this.tagsAll);
    }

    private LinkState() {}

    private LinkState(LinkState $) {
        this.arn = $.arn;
        this.label = $.label;
        this.labelTemplate = $.labelTemplate;
        this.linkConfiguration = $.linkConfiguration;
        this.linkId = $.linkId;
        this.resourceTypes = $.resourceTypes;
        this.sinkArn = $.sinkArn;
        this.sinkIdentifier = $.sinkIdentifier;
        this.tags = $.tags;
        this.tagsAll = $.tagsAll;
    }

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

    public static final class Builder {
        private LinkState $;

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

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

        /**
         * @param arn ARN of the link.
         * 
         * @return builder
         * 
         */
        public Builder arn(@Nullable Output arn) {
            $.arn = arn;
            return this;
        }

        /**
         * @param arn ARN of the link.
         * 
         * @return builder
         * 
         */
        public Builder arn(String arn) {
            return arn(Output.of(arn));
        }

        /**
         * @param label Label that is assigned to this link.
         * 
         * @return builder
         * 
         */
        public Builder label(@Nullable Output label) {
            $.label = label;
            return this;
        }

        /**
         * @param label Label that is assigned to this link.
         * 
         * @return builder
         * 
         */
        public Builder label(String label) {
            return label(Output.of(label));
        }

        /**
         * @param labelTemplate Human-readable name to use to identify this source account when you are viewing data from it in the monitoring account.
         * 
         * @return builder
         * 
         */
        public Builder labelTemplate(@Nullable Output labelTemplate) {
            $.labelTemplate = labelTemplate;
            return this;
        }

        /**
         * @param labelTemplate Human-readable name to use to identify this source account when you are viewing data from it in the monitoring account.
         * 
         * @return builder
         * 
         */
        public Builder labelTemplate(String labelTemplate) {
            return labelTemplate(Output.of(labelTemplate));
        }

        /**
         * @param linkConfiguration Configuration for creating filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account. See `link_configuration` Block for details.
         * 
         * @return builder
         * 
         */
        public Builder linkConfiguration(@Nullable Output linkConfiguration) {
            $.linkConfiguration = linkConfiguration;
            return this;
        }

        /**
         * @param linkConfiguration Configuration for creating filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account. See `link_configuration` Block for details.
         * 
         * @return builder
         * 
         */
        public Builder linkConfiguration(LinkLinkConfigurationArgs linkConfiguration) {
            return linkConfiguration(Output.of(linkConfiguration));
        }

        /**
         * @param linkId ID string that AWS generated as part of the link ARN.
         * 
         * @return builder
         * 
         */
        public Builder linkId(@Nullable Output linkId) {
            $.linkId = linkId;
            return this;
        }

        /**
         * @param linkId ID string that AWS generated as part of the link ARN.
         * 
         * @return builder
         * 
         */
        public Builder linkId(String linkId) {
            return linkId(Output.of(linkId));
        }

        /**
         * @param resourceTypes Types of data that the source account shares with the monitoring account.
         * 
         * @return builder
         * 
         */
        public Builder resourceTypes(@Nullable Output> resourceTypes) {
            $.resourceTypes = resourceTypes;
            return this;
        }

        /**
         * @param resourceTypes Types of data that the source account shares with the monitoring account.
         * 
         * @return builder
         * 
         */
        public Builder resourceTypes(List resourceTypes) {
            return resourceTypes(Output.of(resourceTypes));
        }

        /**
         * @param resourceTypes Types of data that the source account shares with the monitoring account.
         * 
         * @return builder
         * 
         */
        public Builder resourceTypes(String... resourceTypes) {
            return resourceTypes(List.of(resourceTypes));
        }

        /**
         * @param sinkArn ARN of the sink that is used for this link.
         * 
         * @return builder
         * 
         */
        public Builder sinkArn(@Nullable Output sinkArn) {
            $.sinkArn = sinkArn;
            return this;
        }

        /**
         * @param sinkArn ARN of the sink that is used for this link.
         * 
         * @return builder
         * 
         */
        public Builder sinkArn(String sinkArn) {
            return sinkArn(Output.of(sinkArn));
        }

        /**
         * @param sinkIdentifier Identifier of the sink to use to create this link.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder sinkIdentifier(@Nullable Output sinkIdentifier) {
            $.sinkIdentifier = sinkIdentifier;
            return this;
        }

        /**
         * @param sinkIdentifier Identifier of the sink to use to create this link.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder sinkIdentifier(String sinkIdentifier) {
            return sinkIdentifier(Output.of(sinkIdentifier));
        }

        /**
         * @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));
        }

        /**
         * @return builder
         * 
         * @deprecated
         * Please use `tags` instead.
         * 
         */
        @Deprecated /* Please use `tags` instead. */
        public Builder tagsAll(@Nullable Output> tagsAll) {
            $.tagsAll = tagsAll;
            return this;
        }

        /**
         * @return builder
         * 
         * @deprecated
         * Please use `tags` instead.
         * 
         */
        @Deprecated /* Please use `tags` instead. */
        public Builder tagsAll(Map tagsAll) {
            return tagsAll(Output.of(tagsAll));
        }

        public LinkState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy