com.pulumi.azurenative.impact.outputs.ConnectivityResponse 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.impact.outputs;
import com.pulumi.azurenative.impact.outputs.SourceOrTargetResponse;
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 ConnectivityResponse {
/**
* @return Port number for the connection
*
*/
private @Nullable Integer port;
/**
* @return Protocol used for the connection
*
*/
private @Nullable String protocol;
/**
* @return Source from which the connection was attempted
*
*/
private @Nullable SourceOrTargetResponse source;
/**
* @return target which connection was attempted
*
*/
private @Nullable SourceOrTargetResponse target;
private ConnectivityResponse() {}
/**
* @return Port number for the connection
*
*/
public Optional port() {
return Optional.ofNullable(this.port);
}
/**
* @return Protocol used for the connection
*
*/
public Optional protocol() {
return Optional.ofNullable(this.protocol);
}
/**
* @return Source from which the connection was attempted
*
*/
public Optional source() {
return Optional.ofNullable(this.source);
}
/**
* @return target which connection was attempted
*
*/
public Optional target() {
return Optional.ofNullable(this.target);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ConnectivityResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer port;
private @Nullable String protocol;
private @Nullable SourceOrTargetResponse source;
private @Nullable SourceOrTargetResponse target;
public Builder() {}
public Builder(ConnectivityResponse defaults) {
Objects.requireNonNull(defaults);
this.port = defaults.port;
this.protocol = defaults.protocol;
this.source = defaults.source;
this.target = defaults.target;
}
@CustomType.Setter
public Builder port(@Nullable Integer port) {
this.port = port;
return this;
}
@CustomType.Setter
public Builder protocol(@Nullable String protocol) {
this.protocol = protocol;
return this;
}
@CustomType.Setter
public Builder source(@Nullable SourceOrTargetResponse source) {
this.source = source;
return this;
}
@CustomType.Setter
public Builder target(@Nullable SourceOrTargetResponse target) {
this.target = target;
return this;
}
public ConnectivityResponse build() {
final var _resultValue = new ConnectivityResponse();
_resultValue.port = port;
_resultValue.protocol = protocol;
_resultValue.source = source;
_resultValue.target = target;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy