
com.pulumi.aws.networkmanager.outputs.GetConnectionsResult Maven / Gradle / Ivy
// *** 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.aws.networkmanager.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetConnectionsResult {
private @Nullable String deviceId;
private String globalNetworkId;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return IDs of the connections.
*
*/
private List ids;
private @Nullable Map tags;
private GetConnectionsResult() {}
public Optional deviceId() {
return Optional.ofNullable(this.deviceId);
}
public String globalNetworkId() {
return this.globalNetworkId;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return IDs of the connections.
*
*/
public List ids() {
return this.ids;
}
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetConnectionsResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String deviceId;
private String globalNetworkId;
private String id;
private List ids;
private @Nullable Map tags;
public Builder() {}
public Builder(GetConnectionsResult defaults) {
Objects.requireNonNull(defaults);
this.deviceId = defaults.deviceId;
this.globalNetworkId = defaults.globalNetworkId;
this.id = defaults.id;
this.ids = defaults.ids;
this.tags = defaults.tags;
}
@CustomType.Setter
public Builder deviceId(@Nullable String deviceId) {
this.deviceId = deviceId;
return this;
}
@CustomType.Setter
public Builder globalNetworkId(String globalNetworkId) {
if (globalNetworkId == null) {
throw new MissingRequiredPropertyException("GetConnectionsResult", "globalNetworkId");
}
this.globalNetworkId = globalNetworkId;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetConnectionsResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder ids(List ids) {
if (ids == null) {
throw new MissingRequiredPropertyException("GetConnectionsResult", "ids");
}
this.ids = ids;
return this;
}
public Builder ids(String... ids) {
return ids(List.of(ids));
}
@CustomType.Setter
public Builder tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
public GetConnectionsResult build() {
final var _resultValue = new GetConnectionsResult();
_resultValue.deviceId = deviceId;
_resultValue.globalNetworkId = globalNetworkId;
_resultValue.id = id;
_resultValue.ids = ids;
_resultValue.tags = tags;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy