com.pulumi.azure.orbital.outputs.ContactProfileLinkChannelEndPoint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.orbital.outputs;
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 ContactProfileLinkChannelEndPoint {
/**
* @return Name of an end point.
*
*/
private String endPointName;
/**
* @return IP address of an end point.
*
*/
private @Nullable String ipAddress;
/**
* @return TCP port to listen on to receive data.
*
*/
private String port;
/**
* @return Protocol of an end point. Possible values are `TCP` and `UDP`.
*
*/
private String protocol;
private ContactProfileLinkChannelEndPoint() {}
/**
* @return Name of an end point.
*
*/
public String endPointName() {
return this.endPointName;
}
/**
* @return IP address of an end point.
*
*/
public Optional ipAddress() {
return Optional.ofNullable(this.ipAddress);
}
/**
* @return TCP port to listen on to receive data.
*
*/
public String port() {
return this.port;
}
/**
* @return Protocol of an end point. Possible values are `TCP` and `UDP`.
*
*/
public String protocol() {
return this.protocol;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ContactProfileLinkChannelEndPoint defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String endPointName;
private @Nullable String ipAddress;
private String port;
private String protocol;
public Builder() {}
public Builder(ContactProfileLinkChannelEndPoint defaults) {
Objects.requireNonNull(defaults);
this.endPointName = defaults.endPointName;
this.ipAddress = defaults.ipAddress;
this.port = defaults.port;
this.protocol = defaults.protocol;
}
@CustomType.Setter
public Builder endPointName(String endPointName) {
if (endPointName == null) {
throw new MissingRequiredPropertyException("ContactProfileLinkChannelEndPoint", "endPointName");
}
this.endPointName = endPointName;
return this;
}
@CustomType.Setter
public Builder ipAddress(@Nullable String ipAddress) {
this.ipAddress = ipAddress;
return this;
}
@CustomType.Setter
public Builder port(String port) {
if (port == null) {
throw new MissingRequiredPropertyException("ContactProfileLinkChannelEndPoint", "port");
}
this.port = port;
return this;
}
@CustomType.Setter
public Builder protocol(String protocol) {
if (protocol == null) {
throw new MissingRequiredPropertyException("ContactProfileLinkChannelEndPoint", "protocol");
}
this.protocol = protocol;
return this;
}
public ContactProfileLinkChannelEndPoint build() {
final var _resultValue = new ContactProfileLinkChannelEndPoint();
_resultValue.endPointName = endPointName;
_resultValue.ipAddress = ipAddress;
_resultValue.port = port;
_resultValue.protocol = protocol;
return _resultValue;
}
}
}