com.pulumi.azurenative.orbital.outputs.EndPointResponse 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.orbital.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class EndPointResponse {
/**
* @return Name of an end point.
*
*/
private String endPointName;
/**
* @return IP Address (IPv4).
*
*/
private String ipAddress;
/**
* @return TCP port to listen on to receive data.
*
*/
private String port;
/**
* @return Protocol either UDP or TCP.
*
*/
private String protocol;
private EndPointResponse() {}
/**
* @return Name of an end point.
*
*/
public String endPointName() {
return this.endPointName;
}
/**
* @return IP Address (IPv4).
*
*/
public String ipAddress() {
return this.ipAddress;
}
/**
* @return TCP port to listen on to receive data.
*
*/
public String port() {
return this.port;
}
/**
* @return Protocol either UDP or TCP.
*
*/
public String protocol() {
return this.protocol;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(EndPointResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String endPointName;
private String ipAddress;
private String port;
private String protocol;
public Builder() {}
public Builder(EndPointResponse 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("EndPointResponse", "endPointName");
}
this.endPointName = endPointName;
return this;
}
@CustomType.Setter
public Builder ipAddress(String ipAddress) {
if (ipAddress == null) {
throw new MissingRequiredPropertyException("EndPointResponse", "ipAddress");
}
this.ipAddress = ipAddress;
return this;
}
@CustomType.Setter
public Builder port(String port) {
if (port == null) {
throw new MissingRequiredPropertyException("EndPointResponse", "port");
}
this.port = port;
return this;
}
@CustomType.Setter
public Builder protocol(String protocol) {
if (protocol == null) {
throw new MissingRequiredPropertyException("EndPointResponse", "protocol");
}
this.protocol = protocol;
return this;
}
public EndPointResponse build() {
final var _resultValue = new EndPointResponse();
_resultValue.endPointName = endPointName;
_resultValue.ipAddress = ipAddress;
_resultValue.port = port;
_resultValue.protocol = protocol;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy