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

com.pulumi.azurenative.eventgrid.outputs.GetChannelResult Maven / Gradle / Ivy

There is a newer version: 2.72.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.eventgrid.outputs;

import com.pulumi.azurenative.eventgrid.outputs.PartnerTopicInfoResponse;
import com.pulumi.azurenative.eventgrid.outputs.SystemDataResponse;
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 GetChannelResult {
    /**
     * @return The type of the event channel which represents the direction flow of events.
     * 
     */
    private @Nullable String channelType;
    /**
     * @return Expiration time of the channel. If this timer expires while the corresponding partner topic is never activated,
     * the channel and corresponding partner topic are deleted.
     * 
     */
    private @Nullable String expirationTimeIfNotActivatedUtc;
    /**
     * @return Fully qualified identifier of the resource.
     * 
     */
    private String id;
    /**
     * @return Context or helpful message that can be used during the approval process by the subscriber.
     * 
     */
    private @Nullable String messageForActivation;
    /**
     * @return Name of the resource.
     * 
     */
    private String name;
    /**
     * @return This property should be populated when channelType is PartnerTopic and represents information about the partner topic resource corresponding to the channel.
     * 
     */
    private @Nullable PartnerTopicInfoResponse partnerTopicInfo;
    /**
     * @return Provisioning state of the channel.
     * 
     */
    private @Nullable String provisioningState;
    /**
     * @return The readiness state of the corresponding partner topic.
     * 
     */
    private @Nullable String readinessState;
    /**
     * @return The system metadata relating to Channel resource.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return Type of the resource.
     * 
     */
    private String type;

    private GetChannelResult() {}
    /**
     * @return The type of the event channel which represents the direction flow of events.
     * 
     */
    public Optional channelType() {
        return Optional.ofNullable(this.channelType);
    }
    /**
     * @return Expiration time of the channel. If this timer expires while the corresponding partner topic is never activated,
     * the channel and corresponding partner topic are deleted.
     * 
     */
    public Optional expirationTimeIfNotActivatedUtc() {
        return Optional.ofNullable(this.expirationTimeIfNotActivatedUtc);
    }
    /**
     * @return Fully qualified identifier of the resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Context or helpful message that can be used during the approval process by the subscriber.
     * 
     */
    public Optional messageForActivation() {
        return Optional.ofNullable(this.messageForActivation);
    }
    /**
     * @return Name of the resource.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return This property should be populated when channelType is PartnerTopic and represents information about the partner topic resource corresponding to the channel.
     * 
     */
    public Optional partnerTopicInfo() {
        return Optional.ofNullable(this.partnerTopicInfo);
    }
    /**
     * @return Provisioning state of the channel.
     * 
     */
    public Optional provisioningState() {
        return Optional.ofNullable(this.provisioningState);
    }
    /**
     * @return The readiness state of the corresponding partner topic.
     * 
     */
    public Optional readinessState() {
        return Optional.ofNullable(this.readinessState);
    }
    /**
     * @return The system metadata relating to Channel resource.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return Type of the resource.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetChannelResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String channelType;
        private @Nullable String expirationTimeIfNotActivatedUtc;
        private String id;
        private @Nullable String messageForActivation;
        private String name;
        private @Nullable PartnerTopicInfoResponse partnerTopicInfo;
        private @Nullable String provisioningState;
        private @Nullable String readinessState;
        private SystemDataResponse systemData;
        private String type;
        public Builder() {}
        public Builder(GetChannelResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.channelType = defaults.channelType;
    	      this.expirationTimeIfNotActivatedUtc = defaults.expirationTimeIfNotActivatedUtc;
    	      this.id = defaults.id;
    	      this.messageForActivation = defaults.messageForActivation;
    	      this.name = defaults.name;
    	      this.partnerTopicInfo = defaults.partnerTopicInfo;
    	      this.provisioningState = defaults.provisioningState;
    	      this.readinessState = defaults.readinessState;
    	      this.systemData = defaults.systemData;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder channelType(@Nullable String channelType) {

            this.channelType = channelType;
            return this;
        }
        @CustomType.Setter
        public Builder expirationTimeIfNotActivatedUtc(@Nullable String expirationTimeIfNotActivatedUtc) {

            this.expirationTimeIfNotActivatedUtc = expirationTimeIfNotActivatedUtc;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetChannelResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder messageForActivation(@Nullable String messageForActivation) {

            this.messageForActivation = messageForActivation;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetChannelResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder partnerTopicInfo(@Nullable PartnerTopicInfoResponse partnerTopicInfo) {

            this.partnerTopicInfo = partnerTopicInfo;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(@Nullable String provisioningState) {

            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder readinessState(@Nullable String readinessState) {

            this.readinessState = readinessState;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetChannelResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetChannelResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetChannelResult build() {
            final var _resultValue = new GetChannelResult();
            _resultValue.channelType = channelType;
            _resultValue.expirationTimeIfNotActivatedUtc = expirationTimeIfNotActivatedUtc;
            _resultValue.id = id;
            _resultValue.messageForActivation = messageForActivation;
            _resultValue.name = name;
            _resultValue.partnerTopicInfo = partnerTopicInfo;
            _resultValue.provisioningState = provisioningState;
            _resultValue.readinessState = readinessState;
            _resultValue.systemData = systemData;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy