com.pulumi.alicloud.cen.outputs.GetRouteMapsMap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud 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.alicloud.cen.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetRouteMapsMap {
/**
* @return A match statement. It indicates the mode in which the as-path attribute is matched.
*
*/
private String asPathMatchMode;
/**
* @return The ID of the CEN instance.
*
*/
private String cenId;
/**
* @return The ID of the region to which the CEN instance belongs.
*
*/
private String cenRegionId;
/**
* @return A match statement. It indicates the mode in which the prefix attribute is matched.
*
*/
private String cidrMatchMode;
/**
* @return A match statement. It indicates the mode in which the community attribute is matched.
*
*/
private String communityMatchMode;
/**
* @return An action statement. It indicates the mode in which the community attribute is operated.
*
*/
private String communityOperateMode;
/**
* @return The description of the route map.
*
*/
private String description;
/**
* @return A match statement that indicates the list of IDs of the destination instances.
*
*/
private List destinationChildInstanceTypes;
/**
* @return A match statement that indicates the prefix list.
*
*/
private List destinationCidrBlocks;
/**
* @return A match statement that indicates the list of IDs of the destination instances.
*
*/
private List destinationInstanceIds;
/**
* @return Indicates whether to enable the reverse match method of the DestinationInstanceIds match condition.
*
*/
private Boolean destinationInstanceIdsReverseMatch;
/**
* @return A match statement that indicates the list of IDs of the destination route tables.
*
*/
private List destinationRouteTableIds;
/**
* @return The ID of the route map. It formats as `<cen_id>:<route_map_id>`. Before 1.161.0, it is `route_map_id`.
*
*/
private String id;
/**
* @return The action that is performed to a route if the route meets all the match conditions.
*
*/
private String mapResult;
/**
* @return A match statement that indicates the As path list.
*
*/
private List matchAsns;
/**
* @return A match statement that indicates the community set.
*
*/
private List matchCommunitySets;
/**
* @return The priority of the next route map that is associated with the current route map.
*
*/
private Integer nextPriority;
/**
* @return An action statement that operates the community attribute.
*
*/
private List operateCommunitySets;
/**
* @return An action statement that modifies the preference of the route.
*
*/
private Integer preference;
/**
* @return Indicates AS Path prepending when a regional gateway receives or publishes a route.
*
*/
private List prependAsPaths;
/**
* @return The priority of the route map.
*
*/
private Integer priority;
/**
* @return The ID of the route map.
*
*/
private String routeMapId;
/**
* @return A match statement that indicates the list of route types.
*
*/
private List routeTypes;
/**
* @return A match statement that indicates the list of IDs of the source instances.
*
*/
private List sourceChildInstanceTypes;
/**
* @return A match statement that indicates the list of IDs of the source instances.
*
*/
private List sourceInstanceIds;
/**
* @return Indicates whether to enable the reverse match method of the SourceInstanceIds match condition.
*
*/
private Boolean sourceInstanceIdsReverseMatch;
/**
* @return A match statement that indicates the list of IDs of the source regions.
*
*/
private List sourceRegionIds;
/**
* @return A match statement that indicates the list of IDs of the source route tables.
*
*/
private List sourceRouteTableIds;
/**
* @return The status of the route map, including `Creating`, `Active` and `Deleting`.
*
*/
private String status;
/**
* @return The direction in which the route map is applied, including `RegionIn` and `RegionOut`.
*
*/
private String transmitDirection;
private GetRouteMapsMap() {}
/**
* @return A match statement. It indicates the mode in which the as-path attribute is matched.
*
*/
public String asPathMatchMode() {
return this.asPathMatchMode;
}
/**
* @return The ID of the CEN instance.
*
*/
public String cenId() {
return this.cenId;
}
/**
* @return The ID of the region to which the CEN instance belongs.
*
*/
public String cenRegionId() {
return this.cenRegionId;
}
/**
* @return A match statement. It indicates the mode in which the prefix attribute is matched.
*
*/
public String cidrMatchMode() {
return this.cidrMatchMode;
}
/**
* @return A match statement. It indicates the mode in which the community attribute is matched.
*
*/
public String communityMatchMode() {
return this.communityMatchMode;
}
/**
* @return An action statement. It indicates the mode in which the community attribute is operated.
*
*/
public String communityOperateMode() {
return this.communityOperateMode;
}
/**
* @return The description of the route map.
*
*/
public String description() {
return this.description;
}
/**
* @return A match statement that indicates the list of IDs of the destination instances.
*
*/
public List destinationChildInstanceTypes() {
return this.destinationChildInstanceTypes;
}
/**
* @return A match statement that indicates the prefix list.
*
*/
public List destinationCidrBlocks() {
return this.destinationCidrBlocks;
}
/**
* @return A match statement that indicates the list of IDs of the destination instances.
*
*/
public List destinationInstanceIds() {
return this.destinationInstanceIds;
}
/**
* @return Indicates whether to enable the reverse match method of the DestinationInstanceIds match condition.
*
*/
public Boolean destinationInstanceIdsReverseMatch() {
return this.destinationInstanceIdsReverseMatch;
}
/**
* @return A match statement that indicates the list of IDs of the destination route tables.
*
*/
public List destinationRouteTableIds() {
return this.destinationRouteTableIds;
}
/**
* @return The ID of the route map. It formats as `<cen_id>:<route_map_id>`. Before 1.161.0, it is `route_map_id`.
*
*/
public String id() {
return this.id;
}
/**
* @return The action that is performed to a route if the route meets all the match conditions.
*
*/
public String mapResult() {
return this.mapResult;
}
/**
* @return A match statement that indicates the As path list.
*
*/
public List matchAsns() {
return this.matchAsns;
}
/**
* @return A match statement that indicates the community set.
*
*/
public List matchCommunitySets() {
return this.matchCommunitySets;
}
/**
* @return The priority of the next route map that is associated with the current route map.
*
*/
public Integer nextPriority() {
return this.nextPriority;
}
/**
* @return An action statement that operates the community attribute.
*
*/
public List operateCommunitySets() {
return this.operateCommunitySets;
}
/**
* @return An action statement that modifies the preference of the route.
*
*/
public Integer preference() {
return this.preference;
}
/**
* @return Indicates AS Path prepending when a regional gateway receives or publishes a route.
*
*/
public List prependAsPaths() {
return this.prependAsPaths;
}
/**
* @return The priority of the route map.
*
*/
public Integer priority() {
return this.priority;
}
/**
* @return The ID of the route map.
*
*/
public String routeMapId() {
return this.routeMapId;
}
/**
* @return A match statement that indicates the list of route types.
*
*/
public List routeTypes() {
return this.routeTypes;
}
/**
* @return A match statement that indicates the list of IDs of the source instances.
*
*/
public List sourceChildInstanceTypes() {
return this.sourceChildInstanceTypes;
}
/**
* @return A match statement that indicates the list of IDs of the source instances.
*
*/
public List sourceInstanceIds() {
return this.sourceInstanceIds;
}
/**
* @return Indicates whether to enable the reverse match method of the SourceInstanceIds match condition.
*
*/
public Boolean sourceInstanceIdsReverseMatch() {
return this.sourceInstanceIdsReverseMatch;
}
/**
* @return A match statement that indicates the list of IDs of the source regions.
*
*/
public List sourceRegionIds() {
return this.sourceRegionIds;
}
/**
* @return A match statement that indicates the list of IDs of the source route tables.
*
*/
public List sourceRouteTableIds() {
return this.sourceRouteTableIds;
}
/**
* @return The status of the route map, including `Creating`, `Active` and `Deleting`.
*
*/
public String status() {
return this.status;
}
/**
* @return The direction in which the route map is applied, including `RegionIn` and `RegionOut`.
*
*/
public String transmitDirection() {
return this.transmitDirection;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetRouteMapsMap defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String asPathMatchMode;
private String cenId;
private String cenRegionId;
private String cidrMatchMode;
private String communityMatchMode;
private String communityOperateMode;
private String description;
private List destinationChildInstanceTypes;
private List destinationCidrBlocks;
private List destinationInstanceIds;
private Boolean destinationInstanceIdsReverseMatch;
private List destinationRouteTableIds;
private String id;
private String mapResult;
private List matchAsns;
private List matchCommunitySets;
private Integer nextPriority;
private List operateCommunitySets;
private Integer preference;
private List prependAsPaths;
private Integer priority;
private String routeMapId;
private List routeTypes;
private List sourceChildInstanceTypes;
private List sourceInstanceIds;
private Boolean sourceInstanceIdsReverseMatch;
private List sourceRegionIds;
private List sourceRouteTableIds;
private String status;
private String transmitDirection;
public Builder() {}
public Builder(GetRouteMapsMap defaults) {
Objects.requireNonNull(defaults);
this.asPathMatchMode = defaults.asPathMatchMode;
this.cenId = defaults.cenId;
this.cenRegionId = defaults.cenRegionId;
this.cidrMatchMode = defaults.cidrMatchMode;
this.communityMatchMode = defaults.communityMatchMode;
this.communityOperateMode = defaults.communityOperateMode;
this.description = defaults.description;
this.destinationChildInstanceTypes = defaults.destinationChildInstanceTypes;
this.destinationCidrBlocks = defaults.destinationCidrBlocks;
this.destinationInstanceIds = defaults.destinationInstanceIds;
this.destinationInstanceIdsReverseMatch = defaults.destinationInstanceIdsReverseMatch;
this.destinationRouteTableIds = defaults.destinationRouteTableIds;
this.id = defaults.id;
this.mapResult = defaults.mapResult;
this.matchAsns = defaults.matchAsns;
this.matchCommunitySets = defaults.matchCommunitySets;
this.nextPriority = defaults.nextPriority;
this.operateCommunitySets = defaults.operateCommunitySets;
this.preference = defaults.preference;
this.prependAsPaths = defaults.prependAsPaths;
this.priority = defaults.priority;
this.routeMapId = defaults.routeMapId;
this.routeTypes = defaults.routeTypes;
this.sourceChildInstanceTypes = defaults.sourceChildInstanceTypes;
this.sourceInstanceIds = defaults.sourceInstanceIds;
this.sourceInstanceIdsReverseMatch = defaults.sourceInstanceIdsReverseMatch;
this.sourceRegionIds = defaults.sourceRegionIds;
this.sourceRouteTableIds = defaults.sourceRouteTableIds;
this.status = defaults.status;
this.transmitDirection = defaults.transmitDirection;
}
@CustomType.Setter
public Builder asPathMatchMode(String asPathMatchMode) {
if (asPathMatchMode == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "asPathMatchMode");
}
this.asPathMatchMode = asPathMatchMode;
return this;
}
@CustomType.Setter
public Builder cenId(String cenId) {
if (cenId == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "cenId");
}
this.cenId = cenId;
return this;
}
@CustomType.Setter
public Builder cenRegionId(String cenRegionId) {
if (cenRegionId == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "cenRegionId");
}
this.cenRegionId = cenRegionId;
return this;
}
@CustomType.Setter
public Builder cidrMatchMode(String cidrMatchMode) {
if (cidrMatchMode == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "cidrMatchMode");
}
this.cidrMatchMode = cidrMatchMode;
return this;
}
@CustomType.Setter
public Builder communityMatchMode(String communityMatchMode) {
if (communityMatchMode == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "communityMatchMode");
}
this.communityMatchMode = communityMatchMode;
return this;
}
@CustomType.Setter
public Builder communityOperateMode(String communityOperateMode) {
if (communityOperateMode == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "communityOperateMode");
}
this.communityOperateMode = communityOperateMode;
return this;
}
@CustomType.Setter
public Builder description(String description) {
if (description == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "description");
}
this.description = description;
return this;
}
@CustomType.Setter
public Builder destinationChildInstanceTypes(List destinationChildInstanceTypes) {
if (destinationChildInstanceTypes == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "destinationChildInstanceTypes");
}
this.destinationChildInstanceTypes = destinationChildInstanceTypes;
return this;
}
public Builder destinationChildInstanceTypes(String... destinationChildInstanceTypes) {
return destinationChildInstanceTypes(List.of(destinationChildInstanceTypes));
}
@CustomType.Setter
public Builder destinationCidrBlocks(List destinationCidrBlocks) {
if (destinationCidrBlocks == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "destinationCidrBlocks");
}
this.destinationCidrBlocks = destinationCidrBlocks;
return this;
}
public Builder destinationCidrBlocks(String... destinationCidrBlocks) {
return destinationCidrBlocks(List.of(destinationCidrBlocks));
}
@CustomType.Setter
public Builder destinationInstanceIds(List destinationInstanceIds) {
if (destinationInstanceIds == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "destinationInstanceIds");
}
this.destinationInstanceIds = destinationInstanceIds;
return this;
}
public Builder destinationInstanceIds(String... destinationInstanceIds) {
return destinationInstanceIds(List.of(destinationInstanceIds));
}
@CustomType.Setter
public Builder destinationInstanceIdsReverseMatch(Boolean destinationInstanceIdsReverseMatch) {
if (destinationInstanceIdsReverseMatch == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "destinationInstanceIdsReverseMatch");
}
this.destinationInstanceIdsReverseMatch = destinationInstanceIdsReverseMatch;
return this;
}
@CustomType.Setter
public Builder destinationRouteTableIds(List destinationRouteTableIds) {
if (destinationRouteTableIds == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "destinationRouteTableIds");
}
this.destinationRouteTableIds = destinationRouteTableIds;
return this;
}
public Builder destinationRouteTableIds(String... destinationRouteTableIds) {
return destinationRouteTableIds(List.of(destinationRouteTableIds));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder mapResult(String mapResult) {
if (mapResult == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "mapResult");
}
this.mapResult = mapResult;
return this;
}
@CustomType.Setter
public Builder matchAsns(List matchAsns) {
if (matchAsns == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "matchAsns");
}
this.matchAsns = matchAsns;
return this;
}
public Builder matchAsns(String... matchAsns) {
return matchAsns(List.of(matchAsns));
}
@CustomType.Setter
public Builder matchCommunitySets(List matchCommunitySets) {
if (matchCommunitySets == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "matchCommunitySets");
}
this.matchCommunitySets = matchCommunitySets;
return this;
}
public Builder matchCommunitySets(String... matchCommunitySets) {
return matchCommunitySets(List.of(matchCommunitySets));
}
@CustomType.Setter
public Builder nextPriority(Integer nextPriority) {
if (nextPriority == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "nextPriority");
}
this.nextPriority = nextPriority;
return this;
}
@CustomType.Setter
public Builder operateCommunitySets(List operateCommunitySets) {
if (operateCommunitySets == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "operateCommunitySets");
}
this.operateCommunitySets = operateCommunitySets;
return this;
}
public Builder operateCommunitySets(String... operateCommunitySets) {
return operateCommunitySets(List.of(operateCommunitySets));
}
@CustomType.Setter
public Builder preference(Integer preference) {
if (preference == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "preference");
}
this.preference = preference;
return this;
}
@CustomType.Setter
public Builder prependAsPaths(List prependAsPaths) {
if (prependAsPaths == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "prependAsPaths");
}
this.prependAsPaths = prependAsPaths;
return this;
}
public Builder prependAsPaths(String... prependAsPaths) {
return prependAsPaths(List.of(prependAsPaths));
}
@CustomType.Setter
public Builder priority(Integer priority) {
if (priority == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "priority");
}
this.priority = priority;
return this;
}
@CustomType.Setter
public Builder routeMapId(String routeMapId) {
if (routeMapId == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "routeMapId");
}
this.routeMapId = routeMapId;
return this;
}
@CustomType.Setter
public Builder routeTypes(List routeTypes) {
if (routeTypes == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "routeTypes");
}
this.routeTypes = routeTypes;
return this;
}
public Builder routeTypes(String... routeTypes) {
return routeTypes(List.of(routeTypes));
}
@CustomType.Setter
public Builder sourceChildInstanceTypes(List sourceChildInstanceTypes) {
if (sourceChildInstanceTypes == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "sourceChildInstanceTypes");
}
this.sourceChildInstanceTypes = sourceChildInstanceTypes;
return this;
}
public Builder sourceChildInstanceTypes(String... sourceChildInstanceTypes) {
return sourceChildInstanceTypes(List.of(sourceChildInstanceTypes));
}
@CustomType.Setter
public Builder sourceInstanceIds(List sourceInstanceIds) {
if (sourceInstanceIds == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "sourceInstanceIds");
}
this.sourceInstanceIds = sourceInstanceIds;
return this;
}
public Builder sourceInstanceIds(String... sourceInstanceIds) {
return sourceInstanceIds(List.of(sourceInstanceIds));
}
@CustomType.Setter
public Builder sourceInstanceIdsReverseMatch(Boolean sourceInstanceIdsReverseMatch) {
if (sourceInstanceIdsReverseMatch == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "sourceInstanceIdsReverseMatch");
}
this.sourceInstanceIdsReverseMatch = sourceInstanceIdsReverseMatch;
return this;
}
@CustomType.Setter
public Builder sourceRegionIds(List sourceRegionIds) {
if (sourceRegionIds == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "sourceRegionIds");
}
this.sourceRegionIds = sourceRegionIds;
return this;
}
public Builder sourceRegionIds(String... sourceRegionIds) {
return sourceRegionIds(List.of(sourceRegionIds));
}
@CustomType.Setter
public Builder sourceRouteTableIds(List sourceRouteTableIds) {
if (sourceRouteTableIds == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "sourceRouteTableIds");
}
this.sourceRouteTableIds = sourceRouteTableIds;
return this;
}
public Builder sourceRouteTableIds(String... sourceRouteTableIds) {
return sourceRouteTableIds(List.of(sourceRouteTableIds));
}
@CustomType.Setter
public Builder status(String status) {
if (status == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "status");
}
this.status = status;
return this;
}
@CustomType.Setter
public Builder transmitDirection(String transmitDirection) {
if (transmitDirection == null) {
throw new MissingRequiredPropertyException("GetRouteMapsMap", "transmitDirection");
}
this.transmitDirection = transmitDirection;
return this;
}
public GetRouteMapsMap build() {
final var _resultValue = new GetRouteMapsMap();
_resultValue.asPathMatchMode = asPathMatchMode;
_resultValue.cenId = cenId;
_resultValue.cenRegionId = cenRegionId;
_resultValue.cidrMatchMode = cidrMatchMode;
_resultValue.communityMatchMode = communityMatchMode;
_resultValue.communityOperateMode = communityOperateMode;
_resultValue.description = description;
_resultValue.destinationChildInstanceTypes = destinationChildInstanceTypes;
_resultValue.destinationCidrBlocks = destinationCidrBlocks;
_resultValue.destinationInstanceIds = destinationInstanceIds;
_resultValue.destinationInstanceIdsReverseMatch = destinationInstanceIdsReverseMatch;
_resultValue.destinationRouteTableIds = destinationRouteTableIds;
_resultValue.id = id;
_resultValue.mapResult = mapResult;
_resultValue.matchAsns = matchAsns;
_resultValue.matchCommunitySets = matchCommunitySets;
_resultValue.nextPriority = nextPriority;
_resultValue.operateCommunitySets = operateCommunitySets;
_resultValue.preference = preference;
_resultValue.prependAsPaths = prependAsPaths;
_resultValue.priority = priority;
_resultValue.routeMapId = routeMapId;
_resultValue.routeTypes = routeTypes;
_resultValue.sourceChildInstanceTypes = sourceChildInstanceTypes;
_resultValue.sourceInstanceIds = sourceInstanceIds;
_resultValue.sourceInstanceIdsReverseMatch = sourceInstanceIdsReverseMatch;
_resultValue.sourceRegionIds = sourceRegionIds;
_resultValue.sourceRouteTableIds = sourceRouteTableIds;
_resultValue.status = status;
_resultValue.transmitDirection = transmitDirection;
return _resultValue;
}
}
}