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

com.pulumi.aws.ssmcontacts.inputs.ContactChannelState 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.ssmcontacts.inputs;

import com.pulumi.aws.ssmcontacts.inputs.ContactChannelDeliveryAddressArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ContactChannelState Empty = new ContactChannelState();

    /**
     * Whether the contact channel is activated. The contact channel must be activated to use it to engage the contact. One of `ACTIVATED` or `NOT_ACTIVATED`.
     * 
     */
    @Import(name="activationStatus")
    private @Nullable Output activationStatus;

    /**
     * @return Whether the contact channel is activated. The contact channel must be activated to use it to engage the contact. One of `ACTIVATED` or `NOT_ACTIVATED`.
     * 
     */
    public Optional> activationStatus() {
        return Optional.ofNullable(this.activationStatus);
    }

    /**
     * Amazon Resource Name (ARN) of the contact channel.
     * 
     */
    @Import(name="arn")
    private @Nullable Output arn;

    /**
     * @return Amazon Resource Name (ARN) of the contact channel.
     * 
     */
    public Optional> arn() {
        return Optional.ofNullable(this.arn);
    }

    /**
     * Amazon Resource Name (ARN) of the AWS SSM Contact that the contact channel belongs to.
     * 
     */
    @Import(name="contactId")
    private @Nullable Output contactId;

    /**
     * @return Amazon Resource Name (ARN) of the AWS SSM Contact that the contact channel belongs to.
     * 
     */
    public Optional> contactId() {
        return Optional.ofNullable(this.contactId);
    }

    /**
     * Block that contains contact engagement details. See details below.
     * 
     */
    @Import(name="deliveryAddress")
    private @Nullable Output deliveryAddress;

    /**
     * @return Block that contains contact engagement details. See details below.
     * 
     */
    public Optional> deliveryAddress() {
        return Optional.ofNullable(this.deliveryAddress);
    }

    /**
     * Name of the contact channel. Must be between 1 and 255 characters, and may contain alphanumerics, underscores (`_`), hyphens (`-`), periods (`.`), and spaces.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the contact channel. Must be between 1 and 255 characters, and may contain alphanumerics, underscores (`_`), hyphens (`-`), periods (`.`), and spaces.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Type of the contact channel. One of `SMS`, `VOICE` or `EMAIL`.
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return Type of the contact channel. One of `SMS`, `VOICE` or `EMAIL`.
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    private ContactChannelState() {}

    private ContactChannelState(ContactChannelState $) {
        this.activationStatus = $.activationStatus;
        this.arn = $.arn;
        this.contactId = $.contactId;
        this.deliveryAddress = $.deliveryAddress;
        this.name = $.name;
        this.type = $.type;
    }

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

    public static final class Builder {
        private ContactChannelState $;

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

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

        /**
         * @param activationStatus Whether the contact channel is activated. The contact channel must be activated to use it to engage the contact. One of `ACTIVATED` or `NOT_ACTIVATED`.
         * 
         * @return builder
         * 
         */
        public Builder activationStatus(@Nullable Output activationStatus) {
            $.activationStatus = activationStatus;
            return this;
        }

        /**
         * @param activationStatus Whether the contact channel is activated. The contact channel must be activated to use it to engage the contact. One of `ACTIVATED` or `NOT_ACTIVATED`.
         * 
         * @return builder
         * 
         */
        public Builder activationStatus(String activationStatus) {
            return activationStatus(Output.of(activationStatus));
        }

        /**
         * @param arn Amazon Resource Name (ARN) of the contact channel.
         * 
         * @return builder
         * 
         */
        public Builder arn(@Nullable Output arn) {
            $.arn = arn;
            return this;
        }

        /**
         * @param arn Amazon Resource Name (ARN) of the contact channel.
         * 
         * @return builder
         * 
         */
        public Builder arn(String arn) {
            return arn(Output.of(arn));
        }

        /**
         * @param contactId Amazon Resource Name (ARN) of the AWS SSM Contact that the contact channel belongs to.
         * 
         * @return builder
         * 
         */
        public Builder contactId(@Nullable Output contactId) {
            $.contactId = contactId;
            return this;
        }

        /**
         * @param contactId Amazon Resource Name (ARN) of the AWS SSM Contact that the contact channel belongs to.
         * 
         * @return builder
         * 
         */
        public Builder contactId(String contactId) {
            return contactId(Output.of(contactId));
        }

        /**
         * @param deliveryAddress Block that contains contact engagement details. See details below.
         * 
         * @return builder
         * 
         */
        public Builder deliveryAddress(@Nullable Output deliveryAddress) {
            $.deliveryAddress = deliveryAddress;
            return this;
        }

        /**
         * @param deliveryAddress Block that contains contact engagement details. See details below.
         * 
         * @return builder
         * 
         */
        public Builder deliveryAddress(ContactChannelDeliveryAddressArgs deliveryAddress) {
            return deliveryAddress(Output.of(deliveryAddress));
        }

        /**
         * @param name Name of the contact channel. Must be between 1 and 255 characters, and may contain alphanumerics, underscores (`_`), hyphens (`-`), periods (`.`), and spaces.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the contact channel. Must be between 1 and 255 characters, and may contain alphanumerics, underscores (`_`), hyphens (`-`), periods (`.`), and spaces.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param type Type of the contact channel. One of `SMS`, `VOICE` or `EMAIL`.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of the contact channel. One of `SMS`, `VOICE` or `EMAIL`.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public ContactChannelState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy