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

com.pulumi.azurenative.botservice.outputs.DirectLineChannelPropertiesResponse 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.azurenative.botservice.outputs.DirectLineSiteResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DirectLineChannelPropertiesResponse {
    /**
     * @return Direct Line embed code of the resource
     * 
     */
    private @Nullable String directLineEmbedCode;
    /**
     * @return The extensionKey1
     * 
     */
    private @Nullable String extensionKey1;
    /**
     * @return The extensionKey2
     * 
     */
    private @Nullable String extensionKey2;
    /**
     * @return The list of Direct Line sites
     * 
     */
    private @Nullable List sites;

    private DirectLineChannelPropertiesResponse() {}
    /**
     * @return Direct Line embed code of the resource
     * 
     */
    public Optional directLineEmbedCode() {
        return Optional.ofNullable(this.directLineEmbedCode);
    }
    /**
     * @return The extensionKey1
     * 
     */
    public Optional extensionKey1() {
        return Optional.ofNullable(this.extensionKey1);
    }
    /**
     * @return The extensionKey2
     * 
     */
    public Optional extensionKey2() {
        return Optional.ofNullable(this.extensionKey2);
    }
    /**
     * @return The list of Direct Line sites
     * 
     */
    public List sites() {
        return this.sites == null ? List.of() : this.sites;
    }

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

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

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

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

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

            this.extensionKey2 = extensionKey2;
            return this;
        }
        @CustomType.Setter
        public Builder sites(@Nullable List sites) {

            this.sites = sites;
            return this;
        }
        public Builder sites(DirectLineSiteResponse... sites) {
            return sites(List.of(sites));
        }
        public DirectLineChannelPropertiesResponse build() {
            final var _resultValue = new DirectLineChannelPropertiesResponse();
            _resultValue.directLineEmbedCode = directLineEmbedCode;
            _resultValue.extensionKey1 = extensionKey1;
            _resultValue.extensionKey2 = extensionKey2;
            _resultValue.sites = sites;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy