
com.pulumi.azurenative.botservice.outputs.TelephonyChannelPropertiesResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.TelephonyChannelResourceApiConfigurationResponse;
import com.pulumi.azurenative.botservice.outputs.TelephonyPhoneNumbersResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class TelephonyChannelPropertiesResponse {
/**
* @return The list of Telephony api configuration
*
*/
private @Nullable List apiConfigurations;
/**
* @return The extensionKey2
*
*/
private @Nullable String cognitiveServiceRegion;
/**
* @return The extensionKey1
*
*/
private @Nullable String cognitiveServiceSubscriptionKey;
/**
* @return The default locale of the channel
*
*/
private @Nullable String defaultLocale;
/**
* @return Whether the channel is enabled
*
*/
private @Nullable Boolean isEnabled;
/**
* @return The list of Telephony phone numbers
*
*/
private @Nullable List phoneNumbers;
/**
* @return The premium SKU applied to the channel
*
*/
private @Nullable String premiumSKU;
private TelephonyChannelPropertiesResponse() {}
/**
* @return The list of Telephony api configuration
*
*/
public List apiConfigurations() {
return this.apiConfigurations == null ? List.of() : this.apiConfigurations;
}
/**
* @return The extensionKey2
*
*/
public Optional cognitiveServiceRegion() {
return Optional.ofNullable(this.cognitiveServiceRegion);
}
/**
* @return The extensionKey1
*
*/
public Optional cognitiveServiceSubscriptionKey() {
return Optional.ofNullable(this.cognitiveServiceSubscriptionKey);
}
/**
* @return The default locale of the channel
*
*/
public Optional defaultLocale() {
return Optional.ofNullable(this.defaultLocale);
}
/**
* @return Whether the channel is enabled
*
*/
public Optional isEnabled() {
return Optional.ofNullable(this.isEnabled);
}
/**
* @return The list of Telephony phone numbers
*
*/
public List phoneNumbers() {
return this.phoneNumbers == null ? List.of() : this.phoneNumbers;
}
/**
* @return The premium SKU applied to the channel
*
*/
public Optional premiumSKU() {
return Optional.ofNullable(this.premiumSKU);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TelephonyChannelPropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List apiConfigurations;
private @Nullable String cognitiveServiceRegion;
private @Nullable String cognitiveServiceSubscriptionKey;
private @Nullable String defaultLocale;
private @Nullable Boolean isEnabled;
private @Nullable List phoneNumbers;
private @Nullable String premiumSKU;
public Builder() {}
public Builder(TelephonyChannelPropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.apiConfigurations = defaults.apiConfigurations;
this.cognitiveServiceRegion = defaults.cognitiveServiceRegion;
this.cognitiveServiceSubscriptionKey = defaults.cognitiveServiceSubscriptionKey;
this.defaultLocale = defaults.defaultLocale;
this.isEnabled = defaults.isEnabled;
this.phoneNumbers = defaults.phoneNumbers;
this.premiumSKU = defaults.premiumSKU;
}
@CustomType.Setter
public Builder apiConfigurations(@Nullable List apiConfigurations) {
this.apiConfigurations = apiConfigurations;
return this;
}
public Builder apiConfigurations(TelephonyChannelResourceApiConfigurationResponse... apiConfigurations) {
return apiConfigurations(List.of(apiConfigurations));
}
@CustomType.Setter
public Builder cognitiveServiceRegion(@Nullable String cognitiveServiceRegion) {
this.cognitiveServiceRegion = cognitiveServiceRegion;
return this;
}
@CustomType.Setter
public Builder cognitiveServiceSubscriptionKey(@Nullable String cognitiveServiceSubscriptionKey) {
this.cognitiveServiceSubscriptionKey = cognitiveServiceSubscriptionKey;
return this;
}
@CustomType.Setter
public Builder defaultLocale(@Nullable String defaultLocale) {
this.defaultLocale = defaultLocale;
return this;
}
@CustomType.Setter
public Builder isEnabled(@Nullable Boolean isEnabled) {
this.isEnabled = isEnabled;
return this;
}
@CustomType.Setter
public Builder phoneNumbers(@Nullable List phoneNumbers) {
this.phoneNumbers = phoneNumbers;
return this;
}
public Builder phoneNumbers(TelephonyPhoneNumbersResponse... phoneNumbers) {
return phoneNumbers(List.of(phoneNumbers));
}
@CustomType.Setter
public Builder premiumSKU(@Nullable String premiumSKU) {
this.premiumSKU = premiumSKU;
return this;
}
public TelephonyChannelPropertiesResponse build() {
final var _resultValue = new TelephonyChannelPropertiesResponse();
_resultValue.apiConfigurations = apiConfigurations;
_resultValue.cognitiveServiceRegion = cognitiveServiceRegion;
_resultValue.cognitiveServiceSubscriptionKey = cognitiveServiceSubscriptionKey;
_resultValue.defaultLocale = defaultLocale;
_resultValue.isEnabled = isEnabled;
_resultValue.phoneNumbers = phoneNumbers;
_resultValue.premiumSKU = premiumSKU;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy