com.pulumi.azurenative.botservice.outputs.EmailChannelResponse 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.EmailChannelPropertiesResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class EmailChannelResponse {
/**
* @return The channel name
* Expected value is 'EmailChannel'.
*
*/
private String channelName;
/**
* @return Entity Tag of the resource
*
*/
private @Nullable String etag;
/**
* @return Specifies the location of the resource.
*
*/
private @Nullable String location;
/**
* @return The set of properties specific to email channel resource
*
*/
private @Nullable EmailChannelPropertiesResponse properties;
/**
* @return Provisioning state of the resource
*
*/
private String provisioningState;
private EmailChannelResponse() {}
/**
* @return The channel name
* Expected value is 'EmailChannel'.
*
*/
public String channelName() {
return this.channelName;
}
/**
* @return Entity Tag of the resource
*
*/
public Optional etag() {
return Optional.ofNullable(this.etag);
}
/**
* @return Specifies the location of the resource.
*
*/
public Optional location() {
return Optional.ofNullable(this.location);
}
/**
* @return The set of properties specific to email channel resource
*
*/
public Optional properties() {
return Optional.ofNullable(this.properties);
}
/**
* @return Provisioning state of the resource
*
*/
public String provisioningState() {
return this.provisioningState;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(EmailChannelResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String channelName;
private @Nullable String etag;
private @Nullable String location;
private @Nullable EmailChannelPropertiesResponse properties;
private String provisioningState;
public Builder() {}
public Builder(EmailChannelResponse defaults) {
Objects.requireNonNull(defaults);
this.channelName = defaults.channelName;
this.etag = defaults.etag;
this.location = defaults.location;
this.properties = defaults.properties;
this.provisioningState = defaults.provisioningState;
}
@CustomType.Setter
public Builder channelName(String channelName) {
if (channelName == null) {
throw new MissingRequiredPropertyException("EmailChannelResponse", "channelName");
}
this.channelName = channelName;
return this;
}
@CustomType.Setter
public Builder etag(@Nullable String etag) {
this.etag = etag;
return this;
}
@CustomType.Setter
public Builder location(@Nullable String location) {
this.location = location;
return this;
}
@CustomType.Setter
public Builder properties(@Nullable EmailChannelPropertiesResponse properties) {
this.properties = properties;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("EmailChannelResponse", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
public EmailChannelResponse build() {
final var _resultValue = new EmailChannelResponse();
_resultValue.channelName = channelName;
_resultValue.etag = etag;
_resultValue.location = location;
_resultValue.properties = properties;
_resultValue.provisioningState = provisioningState;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy