
com.pulumi.azurenative.awsconnector.outputs.AwsEc2RouteTablePropertiesResponse 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.azurenative.awsconnector.outputs;
import com.pulumi.azurenative.awsconnector.outputs.TagResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class AwsEc2RouteTablePropertiesResponse {
/**
* @return Property routeTableId
*
*/
private @Nullable String routeTableId;
/**
* @return Any tags assigned to the route table.
*
*/
private @Nullable List tags;
/**
* @return The ID of the VPC.
*
*/
private @Nullable String vpcId;
private AwsEc2RouteTablePropertiesResponse() {}
/**
* @return Property routeTableId
*
*/
public Optional routeTableId() {
return Optional.ofNullable(this.routeTableId);
}
/**
* @return Any tags assigned to the route table.
*
*/
public List tags() {
return this.tags == null ? List.of() : this.tags;
}
/**
* @return The ID of the VPC.
*
*/
public Optional vpcId() {
return Optional.ofNullable(this.vpcId);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AwsEc2RouteTablePropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String routeTableId;
private @Nullable List tags;
private @Nullable String vpcId;
public Builder() {}
public Builder(AwsEc2RouteTablePropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.routeTableId = defaults.routeTableId;
this.tags = defaults.tags;
this.vpcId = defaults.vpcId;
}
@CustomType.Setter
public Builder routeTableId(@Nullable String routeTableId) {
this.routeTableId = routeTableId;
return this;
}
@CustomType.Setter
public Builder tags(@Nullable List tags) {
this.tags = tags;
return this;
}
public Builder tags(TagResponse... tags) {
return tags(List.of(tags));
}
@CustomType.Setter
public Builder vpcId(@Nullable String vpcId) {
this.vpcId = vpcId;
return this;
}
public AwsEc2RouteTablePropertiesResponse build() {
final var _resultValue = new AwsEc2RouteTablePropertiesResponse();
_resultValue.routeTableId = routeTableId;
_resultValue.tags = tags;
_resultValue.vpcId = vpcId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy