com.pulumi.azurenative.network.outputs.ConnectionMonitorSourceResponse 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.network.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ConnectionMonitorSourceResponse {
/**
* @return The source port used by connection monitor.
*
*/
private @Nullable Integer port;
/**
* @return The ID of the resource used as the source by connection monitor.
*
*/
private String resourceId;
private ConnectionMonitorSourceResponse() {}
/**
* @return The source port used by connection monitor.
*
*/
public Optional port() {
return Optional.ofNullable(this.port);
}
/**
* @return The ID of the resource used as the source by connection monitor.
*
*/
public String resourceId() {
return this.resourceId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ConnectionMonitorSourceResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer port;
private String resourceId;
public Builder() {}
public Builder(ConnectionMonitorSourceResponse defaults) {
Objects.requireNonNull(defaults);
this.port = defaults.port;
this.resourceId = defaults.resourceId;
}
@CustomType.Setter
public Builder port(@Nullable Integer port) {
this.port = port;
return this;
}
@CustomType.Setter
public Builder resourceId(String resourceId) {
if (resourceId == null) {
throw new MissingRequiredPropertyException("ConnectionMonitorSourceResponse", "resourceId");
}
this.resourceId = resourceId;
return this;
}
public ConnectionMonitorSourceResponse build() {
final var _resultValue = new ConnectionMonitorSourceResponse();
_resultValue.port = port;
_resultValue.resourceId = resourceId;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy