com.pulumi.azurenative.engagementfabric.outputs.GetChannelResult 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.engagementfabric.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class GetChannelResult {
/**
* @return The functions to be enabled for the channel
*
*/
private @Nullable List channelFunctions;
/**
* @return The channel type
*
*/
private String channelType;
/**
* @return The channel credentials
*
*/
private @Nullable Map credentials;
/**
* @return The ID of the resource
*
*/
private String id;
/**
* @return The name of the resource
*
*/
private String name;
/**
* @return The fully qualified type of the resource
*
*/
private String type;
private GetChannelResult() {}
/**
* @return The functions to be enabled for the channel
*
*/
public List channelFunctions() {
return this.channelFunctions == null ? List.of() : this.channelFunctions;
}
/**
* @return The channel type
*
*/
public String channelType() {
return this.channelType;
}
/**
* @return The channel credentials
*
*/
public Map credentials() {
return this.credentials == null ? Map.of() : this.credentials;
}
/**
* @return The ID of the resource
*
*/
public String id() {
return this.id;
}
/**
* @return The name of the resource
*
*/
public String name() {
return this.name;
}
/**
* @return The fully qualified type of the resource
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetChannelResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List channelFunctions;
private String channelType;
private @Nullable Map credentials;
private String id;
private String name;
private String type;
public Builder() {}
public Builder(GetChannelResult defaults) {
Objects.requireNonNull(defaults);
this.channelFunctions = defaults.channelFunctions;
this.channelType = defaults.channelType;
this.credentials = defaults.credentials;
this.id = defaults.id;
this.name = defaults.name;
this.type = defaults.type;
}
@CustomType.Setter
public Builder channelFunctions(@Nullable List channelFunctions) {
this.channelFunctions = channelFunctions;
return this;
}
public Builder channelFunctions(String... channelFunctions) {
return channelFunctions(List.of(channelFunctions));
}
@CustomType.Setter
public Builder channelType(String channelType) {
if (channelType == null) {
throw new MissingRequiredPropertyException("GetChannelResult", "channelType");
}
this.channelType = channelType;
return this;
}
@CustomType.Setter
public Builder credentials(@Nullable Map credentials) {
this.credentials = credentials;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetChannelResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetChannelResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetChannelResult", "type");
}
this.type = type;
return this;
}
public GetChannelResult build() {
final var _resultValue = new GetChannelResult();
_resultValue.channelFunctions = channelFunctions;
_resultValue.channelType = channelType;
_resultValue.credentials = credentials;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy