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

com.pulumi.alicloud.ots.outputs.TunnelChannel Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.ots.outputs;

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

@CustomType
public final class TunnelChannel {
    /**
     * @return The id of the channel.
     * 
     */
    private @Nullable String channelId;
    /**
     * @return The latest consumption time of the channel, unix time in nanosecond.
     * 
     */
    private @Nullable Integer channelRpo;
    /**
     * @return The status of the channel, valid values: `WAIT`, `OPEN`, `CLOSING`, `CLOSE`, `TERMINATED`.
     * 
     */
    private @Nullable String channelStatus;
    /**
     * @return The type of the channel, valid values: `BaseData`, `Stream`.
     * 
     */
    private @Nullable String channelType;
    /**
     * @return The client id of the channel.
     * 
     */
    private @Nullable String clientId;

    private TunnelChannel() {}
    /**
     * @return The id of the channel.
     * 
     */
    public Optional channelId() {
        return Optional.ofNullable(this.channelId);
    }
    /**
     * @return The latest consumption time of the channel, unix time in nanosecond.
     * 
     */
    public Optional channelRpo() {
        return Optional.ofNullable(this.channelRpo);
    }
    /**
     * @return The status of the channel, valid values: `WAIT`, `OPEN`, `CLOSING`, `CLOSE`, `TERMINATED`.
     * 
     */
    public Optional channelStatus() {
        return Optional.ofNullable(this.channelStatus);
    }
    /**
     * @return The type of the channel, valid values: `BaseData`, `Stream`.
     * 
     */
    public Optional channelType() {
        return Optional.ofNullable(this.channelType);
    }
    /**
     * @return The client id of the channel.
     * 
     */
    public Optional clientId() {
        return Optional.ofNullable(this.clientId);
    }

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

    public static Builder builder(TunnelChannel defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String channelId;
        private @Nullable Integer channelRpo;
        private @Nullable String channelStatus;
        private @Nullable String channelType;
        private @Nullable String clientId;
        public Builder() {}
        public Builder(TunnelChannel defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.channelId = defaults.channelId;
    	      this.channelRpo = defaults.channelRpo;
    	      this.channelStatus = defaults.channelStatus;
    	      this.channelType = defaults.channelType;
    	      this.clientId = defaults.clientId;
        }

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

            this.channelId = channelId;
            return this;
        }
        @CustomType.Setter
        public Builder channelRpo(@Nullable Integer channelRpo) {

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

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

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

            this.clientId = clientId;
            return this;
        }
        public TunnelChannel build() {
            final var _resultValue = new TunnelChannel();
            _resultValue.channelId = channelId;
            _resultValue.channelRpo = channelRpo;
            _resultValue.channelStatus = channelStatus;
            _resultValue.channelType = channelType;
            _resultValue.clientId = clientId;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy