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

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

import com.pulumi.azurenative.botservice.outputs.WebChatSiteResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class WebChatChannelPropertiesResponse {
    /**
     * @return The list of Web Chat sites
     * 
     */
    private @Nullable List sites;
    /**
     * @return Web chat control embed code
     * 
     */
    private String webChatEmbedCode;

    private WebChatChannelPropertiesResponse() {}
    /**
     * @return The list of Web Chat sites
     * 
     */
    public List sites() {
        return this.sites == null ? List.of() : this.sites;
    }
    /**
     * @return Web chat control embed code
     * 
     */
    public String webChatEmbedCode() {
        return this.webChatEmbedCode;
    }

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

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

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

            this.sites = sites;
            return this;
        }
        public Builder sites(WebChatSiteResponse... sites) {
            return sites(List.of(sites));
        }
        @CustomType.Setter
        public Builder webChatEmbedCode(String webChatEmbedCode) {
            if (webChatEmbedCode == null) {
              throw new MissingRequiredPropertyException("WebChatChannelPropertiesResponse", "webChatEmbedCode");
            }
            this.webChatEmbedCode = webChatEmbedCode;
            return this;
        }
        public WebChatChannelPropertiesResponse build() {
            final var _resultValue = new WebChatChannelPropertiesResponse();
            _resultValue.sites = sites;
            _resultValue.webChatEmbedCode = webChatEmbedCode;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy