com.pulumi.azurenative.servicefabricmesh.inputs.TcpConfigArgs 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.servicefabricmesh.inputs;
import com.pulumi.azurenative.servicefabricmesh.inputs.GatewayDestinationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
/**
* Describes the tcp configuration for external connectivity for this network.
*
*/
public final class TcpConfigArgs extends com.pulumi.resources.ResourceArgs {
public static final TcpConfigArgs Empty = new TcpConfigArgs();
/**
* Describes destination endpoint for routing traffic.
*
*/
@Import(name="destination", required=true)
private Output destination;
/**
* @return Describes destination endpoint for routing traffic.
*
*/
public Output destination() {
return this.destination;
}
/**
* tcp gateway config name.
*
*/
@Import(name="name", required=true)
private Output name;
/**
* @return tcp gateway config name.
*
*/
public Output name() {
return this.name;
}
/**
* Specifies the port at which the service endpoint below needs to be exposed.
*
*/
@Import(name="port", required=true)
private Output port;
/**
* @return Specifies the port at which the service endpoint below needs to be exposed.
*
*/
public Output port() {
return this.port;
}
private TcpConfigArgs() {}
private TcpConfigArgs(TcpConfigArgs $) {
this.destination = $.destination;
this.name = $.name;
this.port = $.port;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TcpConfigArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private TcpConfigArgs $;
public Builder() {
$ = new TcpConfigArgs();
}
public Builder(TcpConfigArgs defaults) {
$ = new TcpConfigArgs(Objects.requireNonNull(defaults));
}
/**
* @param destination Describes destination endpoint for routing traffic.
*
* @return builder
*
*/
public Builder destination(Output destination) {
$.destination = destination;
return this;
}
/**
* @param destination Describes destination endpoint for routing traffic.
*
* @return builder
*
*/
public Builder destination(GatewayDestinationArgs destination) {
return destination(Output.of(destination));
}
/**
* @param name tcp gateway config name.
*
* @return builder
*
*/
public Builder name(Output name) {
$.name = name;
return this;
}
/**
* @param name tcp gateway config name.
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param port Specifies the port at which the service endpoint below needs to be exposed.
*
* @return builder
*
*/
public Builder port(Output port) {
$.port = port;
return this;
}
/**
* @param port Specifies the port at which the service endpoint below needs to be exposed.
*
* @return builder
*
*/
public Builder port(Integer port) {
return port(Output.of(port));
}
public TcpConfigArgs build() {
if ($.destination == null) {
throw new MissingRequiredPropertyException("TcpConfigArgs", "destination");
}
if ($.name == null) {
throw new MissingRequiredPropertyException("TcpConfigArgs", "name");
}
if ($.port == null) {
throw new MissingRequiredPropertyException("TcpConfigArgs", "port");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy