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

com.pulumi.azurenative.testbase.outputs.GetCustomerEventResult Maven / Gradle / Ivy

There is a newer version: 2.82.0
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.azurenative.testbase.outputs;

import com.pulumi.azurenative.testbase.outputs.NotificationEventReceiverResponse;
import com.pulumi.azurenative.testbase.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetCustomerEventResult {
    /**
     * @return The name of the event subscribed to.
     * 
     */
    private String eventName;
    /**
     * @return Resource ID.
     * 
     */
    private String id;
    /**
     * @return Resource name.
     * 
     */
    private String name;
    /**
     * @return The notification event receivers.
     * 
     */
    private List receivers;
    /**
     * @return The system metadata relating to this resource
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return Resource type.
     * 
     */
    private String type;

    private GetCustomerEventResult() {}
    /**
     * @return The name of the event subscribed to.
     * 
     */
    public String eventName() {
        return this.eventName;
    }
    /**
     * @return Resource ID.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Resource name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The notification event receivers.
     * 
     */
    public List receivers() {
        return this.receivers;
    }
    /**
     * @return The system metadata relating to this resource
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetCustomerEventResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String eventName;
        private String id;
        private String name;
        private List receivers;
        private SystemDataResponse systemData;
        private String type;
        public Builder() {}
        public Builder(GetCustomerEventResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.eventName = defaults.eventName;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.receivers = defaults.receivers;
    	      this.systemData = defaults.systemData;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder eventName(String eventName) {
            if (eventName == null) {
              throw new MissingRequiredPropertyException("GetCustomerEventResult", "eventName");
            }
            this.eventName = eventName;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetCustomerEventResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetCustomerEventResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder receivers(List receivers) {
            if (receivers == null) {
              throw new MissingRequiredPropertyException("GetCustomerEventResult", "receivers");
            }
            this.receivers = receivers;
            return this;
        }
        public Builder receivers(NotificationEventReceiverResponse... receivers) {
            return receivers(List.of(receivers));
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetCustomerEventResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetCustomerEventResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetCustomerEventResult build() {
            final var _resultValue = new GetCustomerEventResult();
            _resultValue.eventName = eventName;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.receivers = receivers;
            _resultValue.systemData = systemData;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy