com.pulumi.azurenative.devtestlab.outputs.PortResponse 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.devtestlab.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class PortResponse {
/**
* @return Backend port of the target virtual machine.
*
*/
private @Nullable Integer backendPort;
/**
* @return Protocol type of the port.
*
*/
private @Nullable String transportProtocol;
private PortResponse() {}
/**
* @return Backend port of the target virtual machine.
*
*/
public Optional backendPort() {
return Optional.ofNullable(this.backendPort);
}
/**
* @return Protocol type of the port.
*
*/
public Optional transportProtocol() {
return Optional.ofNullable(this.transportProtocol);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PortResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer backendPort;
private @Nullable String transportProtocol;
public Builder() {}
public Builder(PortResponse defaults) {
Objects.requireNonNull(defaults);
this.backendPort = defaults.backendPort;
this.transportProtocol = defaults.transportProtocol;
}
@CustomType.Setter
public Builder backendPort(@Nullable Integer backendPort) {
this.backendPort = backendPort;
return this;
}
@CustomType.Setter
public Builder transportProtocol(@Nullable String transportProtocol) {
this.transportProtocol = transportProtocol;
return this;
}
public PortResponse build() {
final var _resultValue = new PortResponse();
_resultValue.backendPort = backendPort;
_resultValue.transportProtocol = transportProtocol;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy