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

com.pulumi.aws.sesv2.outputs.ContactListTopic 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.sesv2.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 ContactListTopic {
    /**
     * @return Default subscription status to be applied to a contact if the contact has not noted their preference for subscribing to a topic.
     * 
     */
    private String defaultSubscriptionStatus;
    /**
     * @return Description of what the topic is about, which the contact will see.
     * 
     */
    private @Nullable String description;
    /**
     * @return Name of the topic the contact will see.
     * 
     */
    private String displayName;
    /**
     * @return Name of the topic.
     * 
     * The following arguments are optional:
     * 
     */
    private String topicName;

    private ContactListTopic() {}
    /**
     * @return Default subscription status to be applied to a contact if the contact has not noted their preference for subscribing to a topic.
     * 
     */
    public String defaultSubscriptionStatus() {
        return this.defaultSubscriptionStatus;
    }
    /**
     * @return Description of what the topic is about, which the contact will see.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return Name of the topic the contact will see.
     * 
     */
    public String displayName() {
        return this.displayName;
    }
    /**
     * @return Name of the topic.
     * 
     * The following arguments are optional:
     * 
     */
    public String topicName() {
        return this.topicName;
    }

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

    public static Builder builder(ContactListTopic defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String defaultSubscriptionStatus;
        private @Nullable String description;
        private String displayName;
        private String topicName;
        public Builder() {}
        public Builder(ContactListTopic defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.defaultSubscriptionStatus = defaults.defaultSubscriptionStatus;
    	      this.description = defaults.description;
    	      this.displayName = defaults.displayName;
    	      this.topicName = defaults.topicName;
        }

        @CustomType.Setter
        public Builder defaultSubscriptionStatus(String defaultSubscriptionStatus) {
            if (defaultSubscriptionStatus == null) {
              throw new MissingRequiredPropertyException("ContactListTopic", "defaultSubscriptionStatus");
            }
            this.defaultSubscriptionStatus = defaultSubscriptionStatus;
            return this;
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder displayName(String displayName) {
            if (displayName == null) {
              throw new MissingRequiredPropertyException("ContactListTopic", "displayName");
            }
            this.displayName = displayName;
            return this;
        }
        @CustomType.Setter
        public Builder topicName(String topicName) {
            if (topicName == null) {
              throw new MissingRequiredPropertyException("ContactListTopic", "topicName");
            }
            this.topicName = topicName;
            return this;
        }
        public ContactListTopic build() {
            final var _resultValue = new ContactListTopic();
            _resultValue.defaultSubscriptionStatus = defaultSubscriptionStatus;
            _resultValue.description = description;
            _resultValue.displayName = displayName;
            _resultValue.topicName = topicName;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy