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

com.pulumi.azurenative.awsconnector.outputs.AutoScalingGroupNotificationConfigurationResponse 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.azurenative.awsconnector.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class AutoScalingGroupNotificationConfigurationResponse {
    /**
     * @return A list of event types that send a notification. Event types can include any of the following types.  *Allowed values*:  +   ``autoscaling:EC2_INSTANCE_LAUNCH``   +   ``autoscaling:EC2_INSTANCE_LAUNCH_ERROR``   +   ``autoscaling:EC2_INSTANCE_TERMINATE``   +   ``autoscaling:EC2_INSTANCE_TERMINATE_ERROR``   +   ``autoscaling:TEST_NOTIFICATION``
     * 
     */
    private @Nullable List notificationTypes;
    /**
     * @return The Amazon Resource Name (ARN) of the Amazon SNS topic.
     * 
     */
    private @Nullable String topicARN;

    private AutoScalingGroupNotificationConfigurationResponse() {}
    /**
     * @return A list of event types that send a notification. Event types can include any of the following types.  *Allowed values*:  +   ``autoscaling:EC2_INSTANCE_LAUNCH``   +   ``autoscaling:EC2_INSTANCE_LAUNCH_ERROR``   +   ``autoscaling:EC2_INSTANCE_TERMINATE``   +   ``autoscaling:EC2_INSTANCE_TERMINATE_ERROR``   +   ``autoscaling:TEST_NOTIFICATION``
     * 
     */
    public List notificationTypes() {
        return this.notificationTypes == null ? List.of() : this.notificationTypes;
    }
    /**
     * @return The Amazon Resource Name (ARN) of the Amazon SNS topic.
     * 
     */
    public Optional topicARN() {
        return Optional.ofNullable(this.topicARN);
    }

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

    public static Builder builder(AutoScalingGroupNotificationConfigurationResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List notificationTypes;
        private @Nullable String topicARN;
        public Builder() {}
        public Builder(AutoScalingGroupNotificationConfigurationResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.notificationTypes = defaults.notificationTypes;
    	      this.topicARN = defaults.topicARN;
        }

        @CustomType.Setter
        public Builder notificationTypes(@Nullable List notificationTypes) {

            this.notificationTypes = notificationTypes;
            return this;
        }
        public Builder notificationTypes(String... notificationTypes) {
            return notificationTypes(List.of(notificationTypes));
        }
        @CustomType.Setter
        public Builder topicARN(@Nullable String topicARN) {

            this.topicARN = topicARN;
            return this;
        }
        public AutoScalingGroupNotificationConfigurationResponse build() {
            final var _resultValue = new AutoScalingGroupNotificationConfigurationResponse();
            _resultValue.notificationTypes = notificationTypes;
            _resultValue.topicARN = topicARN;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy