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

com.pulumi.azurenative.botservice.outputs.KikChannelPropertiesResponse 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.botservice.outputs;

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

@CustomType
public final class KikChannelPropertiesResponse {
    /**
     * @return Kik API key. Value only returned through POST to the action Channel List API, otherwise empty.
     * 
     */
    private @Nullable String apiKey;
    /**
     * @return Whether this channel is enabled for the bot
     * 
     */
    private Boolean isEnabled;
    /**
     * @return Whether this channel is validated for the bot
     * 
     */
    private @Nullable Boolean isValidated;
    /**
     * @return The Kik user name
     * 
     */
    private String userName;

    private KikChannelPropertiesResponse() {}
    /**
     * @return Kik API key. Value only returned through POST to the action Channel List API, otherwise empty.
     * 
     */
    public Optional apiKey() {
        return Optional.ofNullable(this.apiKey);
    }
    /**
     * @return Whether this channel is enabled for the bot
     * 
     */
    public Boolean isEnabled() {
        return this.isEnabled;
    }
    /**
     * @return Whether this channel is validated for the bot
     * 
     */
    public Optional isValidated() {
        return Optional.ofNullable(this.isValidated);
    }
    /**
     * @return The Kik user name
     * 
     */
    public String userName() {
        return this.userName;
    }

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

    public static Builder builder(KikChannelPropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String apiKey;
        private Boolean isEnabled;
        private @Nullable Boolean isValidated;
        private String userName;
        public Builder() {}
        public Builder(KikChannelPropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.apiKey = defaults.apiKey;
    	      this.isEnabled = defaults.isEnabled;
    	      this.isValidated = defaults.isValidated;
    	      this.userName = defaults.userName;
        }

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

            this.apiKey = apiKey;
            return this;
        }
        @CustomType.Setter
        public Builder isEnabled(Boolean isEnabled) {
            if (isEnabled == null) {
              throw new MissingRequiredPropertyException("KikChannelPropertiesResponse", "isEnabled");
            }
            this.isEnabled = isEnabled;
            return this;
        }
        @CustomType.Setter
        public Builder isValidated(@Nullable Boolean isValidated) {

            this.isValidated = isValidated;
            return this;
        }
        @CustomType.Setter
        public Builder userName(String userName) {
            if (userName == null) {
              throw new MissingRequiredPropertyException("KikChannelPropertiesResponse", "userName");
            }
            this.userName = userName;
            return this;
        }
        public KikChannelPropertiesResponse build() {
            final var _resultValue = new KikChannelPropertiesResponse();
            _resultValue.apiKey = apiKey;
            _resultValue.isEnabled = isEnabled;
            _resultValue.isValidated = isValidated;
            _resultValue.userName = userName;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy