mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
feat(redshift-serverless): add endpoint access actions (#5742)
* feat(redshift-serverless): add endpoint access actions Add CreateEndpointAccess, GetEndpointAccess, ListEndpointAccess, UpdateEndpointAccess and DeleteEndpointAccess. Floci creates no VPC endpoint, so an endpoint is recorded and echoed with the workgroup's own address and port. It is tied to the workgroup by the workgroup's generated id, so a workgroup recreated under the same name does not inherit its predecessor's endpoints. Required members and the ownerAccount pattern come from the AWS model through RedshiftServerlessRequestShapes. The endpoint name rule is checked by hand because the model documents it but does not encode it. * fix(redshift-serverless): validate boundary inputs and scope endpoint pagination tokens Validate policy is not null or blank in requireJsonObject before Jackson parsing to avoid unchecked IllegalArgumentException. Validate required endpointName, workgroupName, and subnetIds at create boundary. Validate non-null vpcSecurityGroupIds on endpoint updates. Add namespaced paginate overload with limit validation, scope ListEndpointAccess tokens to endpoint-access, and report pagination errors as ValidationException. * fix(redshift-serverless): allow optional vpcSecurityGroupIds on update and reuse existing pagination overload Allow omitting or passing null vpcSecurityGroupIds in UpdateEndpointAccess to leave existing security groups unchanged. Validate maxResults in the service and call the existing namespaced Pagination.paginate overload instead of adding core overloads. Omit the snapshot policy null check which belongs to #5730.
This commit is contained in:
1 parent
6548c96220
commit
c67a5afbc3
11 files changed
+650
-12
No files matched your search
+78
-4
@@ -6,6 +6,7 @@ import com.fasterxml.jackson.databind.node.ArrayNode;
|
||||
import com.fasterxml.jackson.databind.node.ObjectNode;
|
||||
import io.github.hectorvent.floci.core.common.PaginatedResult;
|
||||
import io.github.hectorvent.floci.core.common.Pagination;
|
||||
import io.github.hectorvent.floci.services.redshiftserverless.model.EndpointAccess;
|
||||
import io.github.hectorvent.floci.services.redshiftserverless.model.ResourcePolicy;
|
||||
import jakarta.enterprise.context.ApplicationScoped;
|
||||
import jakarta.inject.Inject;
|
||||
@@ -26,13 +27,16 @@ public class RedshiftServerlessAdminJsonHandler {
|
||||
private static final List<String> TRACK_NAMES = RedshiftServerlessService.TRACK_NAMES;
|
||||
|
||||
private final ObjectMapper objectMapper;
|
||||
private final RedshiftServerlessEndpointAccessService endpointAccess;
|
||||
private final RedshiftServerlessResourcePolicyService resourcePolicies;
|
||||
|
||||
@Inject
|
||||
public RedshiftServerlessAdminJsonHandler(ObjectMapper objectMapper,
|
||||
RedshiftServerlessResourcePolicyService resourcePolicies) {
|
||||
RedshiftServerlessResourcePolicyService resourcePolicies,
|
||||
RedshiftServerlessEndpointAccessService endpointAccess) {
|
||||
this.objectMapper = objectMapper;
|
||||
this.resourcePolicies = resourcePolicies;
|
||||
this.endpointAccess = endpointAccess;
|
||||
}
|
||||
|
||||
Supplier<Response> operation(String action, JsonNode request, String region) {
|
||||
@@ -54,6 +58,19 @@ public class RedshiftServerlessAdminJsonHandler {
|
||||
case "GetReservation" -> () -> getReservation(request);
|
||||
case "GetReservationOffering" -> () -> getReservationOffering(request);
|
||||
case "CreateReservation" -> () -> createReservation(request);
|
||||
case "CreateEndpointAccess" -> () -> endpointResponse(endpointAccess.createEndpointAccess(
|
||||
ServerlessSupport.text(request, "endpointName"), ServerlessSupport.text(request, "workgroupName"),
|
||||
ServerlessSupport.stringList(request, "subnetIds"),
|
||||
ServerlessSupport.stringList(request, "vpcSecurityGroupIds"),
|
||||
ServerlessSupport.text(request, "ownerAccount"), region));
|
||||
case "GetEndpointAccess" -> () -> endpointResponse(endpointAccess.getEndpointAccess(
|
||||
ServerlessSupport.text(request, "endpointName"), region));
|
||||
case "ListEndpointAccess" -> () -> listEndpoints(request, region);
|
||||
case "UpdateEndpointAccess" -> () -> endpointResponse(endpointAccess.updateEndpointAccess(
|
||||
ServerlessSupport.text(request, "endpointName"),
|
||||
ServerlessSupport.stringList(request, "vpcSecurityGroupIds"), region));
|
||||
case "DeleteEndpointAccess" -> () -> endpointResponse(endpointAccess.deleteEndpointAccess(
|
||||
ServerlessSupport.text(request, "endpointName"), region));
|
||||
default -> null;
|
||||
};
|
||||
}
|
||||
@@ -86,6 +103,57 @@ public class RedshiftServerlessAdminJsonHandler {
|
||||
return Response.ok(response).build();
|
||||
}
|
||||
|
||||
// ── Endpoint access ────────────────────────────────────────────────────
|
||||
|
||||
private Response listEndpoints(JsonNode request, String region) {
|
||||
PaginatedResult<EndpointAccess> page = endpointAccess.listEndpointAccess(
|
||||
ServerlessSupport.text(request, "workgroupName"), ServerlessSupport.text(request, "vpcId"),
|
||||
ServerlessSupport.text(request, "ownerAccount"), region, ServerlessSupport.maxResults(request),
|
||||
ServerlessSupport.text(request, "nextToken"));
|
||||
ObjectNode response = objectMapper.createObjectNode();
|
||||
ArrayNode items = response.putArray("endpoints");
|
||||
page.items().forEach(endpoint -> items.add(endpointNode(endpoint)));
|
||||
putNextToken(response, page);
|
||||
return Response.ok(response).build();
|
||||
}
|
||||
|
||||
private Response endpointResponse(EndpointAccess endpoint) {
|
||||
ObjectNode response = objectMapper.createObjectNode();
|
||||
response.set("endpoint", endpointNode(endpoint));
|
||||
return Response.ok(response).build();
|
||||
}
|
||||
|
||||
/** No VPC is modelled, so {@code vpcEndpoint.vpcId} is left out rather than invented. */
|
||||
private ObjectNode endpointNode(EndpointAccess endpoint) {
|
||||
ObjectNode node = objectMapper.createObjectNode();
|
||||
if (endpoint.getAddress() != null) {
|
||||
node.put("address", endpoint.getAddress());
|
||||
}
|
||||
node.put("endpointArn", endpoint.getEndpointArn());
|
||||
node.put("endpointCreateTime", ServerlessSupport.ISO_8601.format(endpoint.getCreateTime()));
|
||||
node.put("endpointName", endpoint.getEndpointName());
|
||||
node.put("endpointStatus", endpoint.getStatus());
|
||||
node.put("port", endpoint.getPort());
|
||||
ArrayNode subnets = node.putArray("subnetIds");
|
||||
endpoint.getSubnetIds().forEach(subnets::add);
|
||||
ObjectNode vpcEndpoint = node.putObject("vpcEndpoint");
|
||||
vpcEndpoint.put("vpcEndpointId", endpoint.getVpcEndpointId());
|
||||
ArrayNode interfaces = vpcEndpoint.putArray("networkInterfaces");
|
||||
for (int i = 0; i < endpoint.getSubnetIds().size() && i < endpoint.getNetworkInterfaceIds().size(); i++) {
|
||||
ObjectNode networkInterface = interfaces.addObject();
|
||||
networkInterface.put("networkInterfaceId", endpoint.getNetworkInterfaceIds().get(i));
|
||||
networkInterface.put("subnetId", endpoint.getSubnetIds().get(i));
|
||||
}
|
||||
ArrayNode groups = node.putArray("vpcSecurityGroups");
|
||||
for (String groupId : endpoint.getVpcSecurityGroupIds()) {
|
||||
ObjectNode group = groups.addObject();
|
||||
group.put("vpcSecurityGroupId", groupId);
|
||||
group.put("status", "active");
|
||||
}
|
||||
node.put("workgroupName", endpoint.getWorkgroupName());
|
||||
return node;
|
||||
}
|
||||
|
||||
// ── Tracks, managed workgroups and reservations ────────────────────────
|
||||
|
||||
/**
|
||||
@@ -108,9 +176,7 @@ public class RedshiftServerlessAdminJsonHandler {
|
||||
ObjectNode response = objectMapper.createObjectNode();
|
||||
ArrayNode items = response.putArray("tracks");
|
||||
page.items().forEach(name -> items.add(trackNode(name)));
|
||||
if (page.nextToken() != null) {
|
||||
response.put("nextToken", page.nextToken());
|
||||
}
|
||||
putNextToken(response, page);
|
||||
return Response.ok(response).build();
|
||||
}
|
||||
|
||||
@@ -132,4 +198,12 @@ public class RedshiftServerlessAdminJsonHandler {
|
||||
response.putArray(listName);
|
||||
return Response.ok(response).build();
|
||||
}
|
||||
|
||||
// ── Shared ─────────────────────────────────────────────────────────────
|
||||
|
||||
private static void putNextToken(ObjectNode response, PaginatedResult<?> page) {
|
||||
if (page.nextToken() != null) {
|
||||
response.put("nextToken", page.nextToken());
|
||||
}
|
||||
}
|
||||
}
|
||||
+190
@@ -0,0 +1,190 @@
|
||||
package io.github.hectorvent.floci.services.redshiftserverless;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import io.github.hectorvent.floci.core.common.PaginatedResult;
|
||||
import io.github.hectorvent.floci.core.common.Pagination;
|
||||
import io.github.hectorvent.floci.core.common.RegionResolver;
|
||||
import io.github.hectorvent.floci.core.common.Resettable;
|
||||
import io.github.hectorvent.floci.core.storage.AccountAwareStorageBackend;
|
||||
import io.github.hectorvent.floci.core.storage.StorageFactory;
|
||||
import io.github.hectorvent.floci.services.redshiftserverless.model.EndpointAccess;
|
||||
import io.github.hectorvent.floci.services.redshiftserverless.model.Workgroup;
|
||||
import jakarta.enterprise.context.ApplicationScoped;
|
||||
import jakarta.inject.Inject;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.UUID;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/**
|
||||
* Redshift Serverless endpoint access (managed VPC endpoints). An endpoint is recorded and echoed:
|
||||
* Floci creates no VPC endpoint, so its {@code address} and {@code port} are the workgroup's own,
|
||||
* which is where a client can actually connect.
|
||||
*
|
||||
* <p>An endpoint belongs to a workgroup but lives in its own store, so deleting the workgroup needs
|
||||
* no hook here. Each read checks that the workgroup is still there and drops the endpoint otherwise.
|
||||
*/
|
||||
@ApplicationScoped
|
||||
public class RedshiftServerlessEndpointAccessService implements Resettable {
|
||||
|
||||
private static final Pattern ENDPOINT_NAME = Pattern.compile("^[A-Za-z][A-Za-z0-9-]{0,29}$");
|
||||
private static final int PAGE_SIZE = 100;
|
||||
|
||||
private final AccountAwareStorageBackend<EndpointAccess> endpoints;
|
||||
private final RegionResolver regionResolver;
|
||||
private final RedshiftServerlessService serverless;
|
||||
|
||||
@Inject
|
||||
public RedshiftServerlessEndpointAccessService(StorageFactory storageFactory, RegionResolver regionResolver,
|
||||
RedshiftServerlessService serverless) {
|
||||
this.endpoints = storageFactory.create("redshiftserverless", "redshiftserverless-endpointaccess.json",
|
||||
new TypeReference<Map<String, EndpointAccess>>() {});
|
||||
this.regionResolver = regionResolver;
|
||||
this.serverless = serverless;
|
||||
}
|
||||
|
||||
public synchronized EndpointAccess createEndpointAccess(String endpointName, String workgroupName,
|
||||
List<String> subnetIds,
|
||||
List<String> vpcSecurityGroupIds,
|
||||
String ownerAccount, String region) {
|
||||
if (endpointName == null || !ENDPOINT_NAME.matcher(endpointName).matches()
|
||||
|| endpointName.contains("--") || endpointName.endsWith("-")) {
|
||||
throw ServerlessSupport.validation("endpointName must be 1 to 30 letters, digits or hyphens, "
|
||||
+ "start with a letter, and contain no consecutive or trailing hyphens.");
|
||||
}
|
||||
if (workgroupName == null || workgroupName.isBlank()) {
|
||||
throw ServerlessSupport.validation("workgroupName must not be blank.");
|
||||
}
|
||||
if (subnetIds == null || subnetIds.isEmpty()) {
|
||||
throw ServerlessSupport.validation("subnetIds must not be empty.");
|
||||
}
|
||||
Workgroup workgroup = serverless.findWorkgroup(workgroupName, region)
|
||||
.filter(found -> ownerAccount == null || ownerAccount.equals(regionResolver.getAccountId()))
|
||||
.orElseThrow(() -> ServerlessSupport.notFound("The workgroup " + workgroupName + " was not found."));
|
||||
if (live(region).stream().anyMatch(existing -> existing.getEndpointName().equals(endpointName))) {
|
||||
throw ServerlessSupport.conflict("The endpoint " + endpointName + " already exists.");
|
||||
}
|
||||
|
||||
EndpointAccess endpoint = new EndpointAccess();
|
||||
endpoint.setEndpointName(endpointName);
|
||||
endpoint.setEndpointArn(regionResolver.buildArn("redshift-serverless", region,
|
||||
"managedvpcendpoint/" + UUID.randomUUID()));
|
||||
endpoint.setWorkgroupName(workgroupName);
|
||||
endpoint.setOwnerId(workgroup.getWorkgroupId());
|
||||
endpoint.setStatus("ACTIVE");
|
||||
endpoint.setCreateTime(Instant.now());
|
||||
refreshConnection(endpoint, workgroup);
|
||||
endpoint.setSubnetIds(subnetIds);
|
||||
endpoint.setNetworkInterfaceIds(networkInterfaceIdsFor(subnetIds));
|
||||
endpoint.setVpcSecurityGroupIds(vpcSecurityGroupIds);
|
||||
endpoint.setVpcEndpointId("vpce-" + hex(17));
|
||||
endpoints.put(storageKey(region, endpointName), endpoint);
|
||||
return new EndpointAccess(endpoint);
|
||||
}
|
||||
|
||||
public synchronized EndpointAccess getEndpointAccess(String endpointName, String region) {
|
||||
return withCurrentConnection(require(endpointName, region), region);
|
||||
}
|
||||
|
||||
public synchronized PaginatedResult<EndpointAccess> listEndpointAccess(String workgroupName, String vpcId,
|
||||
String ownerAccount, String region,
|
||||
Integer maxResults, String nextToken) {
|
||||
// No VPC is modelled, so an endpoint never belongs to a requested VPC.
|
||||
boolean wrongVpc = vpcId != null && !vpcId.isBlank();
|
||||
boolean wrongOwner = ownerAccount != null && !ownerAccount.equals(regionResolver.getAccountId());
|
||||
List<EndpointAccess> matching = live(region).stream()
|
||||
.filter(endpoint -> !wrongVpc && !wrongOwner)
|
||||
.filter(endpoint -> workgroupName == null || workgroupName.equals(endpoint.getWorkgroupName()))
|
||||
.sorted(Comparator.comparing(EndpointAccess::getEndpointName))
|
||||
.map(endpoint -> withCurrentConnection(endpoint, region))
|
||||
.toList();
|
||||
if (maxResults != null && (maxResults < 1 || maxResults > PAGE_SIZE)) {
|
||||
throw ServerlessSupport.validation("maxResults must be between 1 and " + PAGE_SIZE);
|
||||
}
|
||||
int limit = maxResults != null ? maxResults : PAGE_SIZE;
|
||||
return Pagination.paginate(matching, EndpointAccess::getEndpointName, limit, nextToken,
|
||||
"endpoint-access", token -> ServerlessSupport.validation("Invalid nextToken."));
|
||||
}
|
||||
|
||||
/** Replaces the endpoint's security groups, the only member AWS lets an update change. */
|
||||
public synchronized EndpointAccess updateEndpointAccess(String endpointName, List<String> vpcSecurityGroupIds,
|
||||
String region) {
|
||||
EndpointAccess updated = new EndpointAccess(require(endpointName, region));
|
||||
if (vpcSecurityGroupIds != null) {
|
||||
updated.setVpcSecurityGroupIds(vpcSecurityGroupIds);
|
||||
endpoints.put(storageKey(region, endpointName), updated);
|
||||
}
|
||||
return withCurrentConnection(updated, region);
|
||||
}
|
||||
|
||||
public synchronized EndpointAccess deleteEndpointAccess(String endpointName, String region) {
|
||||
EndpointAccess existing = withCurrentConnection(require(endpointName, region), region);
|
||||
endpoints.delete(storageKey(region, endpointName));
|
||||
existing.setStatus("DELETING");
|
||||
return existing;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clear() {
|
||||
endpoints.clear();
|
||||
}
|
||||
|
||||
private EndpointAccess require(String endpointName, String region) {
|
||||
EndpointAccess endpoint = endpoints.get(storageKey(region, endpointName)).orElse(null);
|
||||
if (endpoint != null && !isOnSameWorkgroup(endpoint, region)) {
|
||||
endpoints.delete(storageKey(region, endpointName));
|
||||
endpoint = null;
|
||||
}
|
||||
if (endpoint == null) {
|
||||
throw ServerlessSupport.notFound("The endpoint " + endpointName + " was not found.");
|
||||
}
|
||||
return endpoint;
|
||||
}
|
||||
|
||||
/** The region's endpoints whose workgroup is still there; any other is deleted as it is found. */
|
||||
private List<EndpointAccess> live(String region) {
|
||||
return ServerlessSupport.live(endpoints, region,
|
||||
endpoint -> isOnSameWorkgroup(endpoint, region),
|
||||
endpoint -> storageKey(region, endpoint.getEndpointName()));
|
||||
}
|
||||
|
||||
/** A workgroup recreated under the same name has a new id, so it never inherits its predecessor's endpoints. */
|
||||
private boolean isOnSameWorkgroup(EndpointAccess endpoint, String region) {
|
||||
return serverless.findWorkgroup(endpoint.getWorkgroupName(), region)
|
||||
.map(workgroup -> Objects.equals(workgroup.getWorkgroupId(), endpoint.getOwnerId()))
|
||||
.orElse(false);
|
||||
}
|
||||
|
||||
private EndpointAccess withCurrentConnection(EndpointAccess endpoint, String region) {
|
||||
EndpointAccess response = new EndpointAccess(endpoint);
|
||||
serverless.findWorkgroup(endpoint.getWorkgroupName(), region)
|
||||
.ifPresent(workgroup -> refreshConnection(response, workgroup));
|
||||
return response;
|
||||
}
|
||||
|
||||
private static void refreshConnection(EndpointAccess endpoint, Workgroup workgroup) {
|
||||
endpoint.setAddress(workgroup.getEndpoint() == null ? null : workgroup.getEndpoint().getAddress());
|
||||
endpoint.setPort(workgroup.getEndpoint() == null ? workgroup.getPort() : workgroup.getEndpoint().getPort());
|
||||
}
|
||||
|
||||
private static List<String> networkInterfaceIdsFor(List<String> subnetIds) {
|
||||
List<String> ids = new ArrayList<>();
|
||||
for (int i = 0; i < subnetIds.size(); i++) {
|
||||
ids.add("eni-" + hex(17));
|
||||
}
|
||||
return ids;
|
||||
}
|
||||
|
||||
private static String hex(int length) {
|
||||
return UUID.randomUUID().toString().replace("-", "").substring(0, length);
|
||||
}
|
||||
|
||||
private static String storageKey(String region, String endpointName) {
|
||||
return region + "::" + endpointName;
|
||||
}
|
||||
}
|
||||
+5
@@ -475,6 +475,11 @@ public class RedshiftServerlessService implements Resettable {
|
||||
return snapshotArn.substring(prefix.length());
|
||||
}
|
||||
|
||||
/** The workgroup called {@code workgroupName} in {@code region}, empty when there is none. */
|
||||
public Optional<Workgroup> findWorkgroup(String workgroupName, String region) {
|
||||
return workgroupName == null ? Optional.empty() : workgroups.get(storageKey(region, workgroupName));
|
||||
}
|
||||
|
||||
/** The snapshot called {@code snapshotName} in {@code region}, empty when there is none. */
|
||||
public Optional<RedshiftServerlessSnapshot> findSnapshot(String snapshotName, String region) {
|
||||
return snapshotName == null ? Optional.empty() : snapshots.get(storageKey(region, snapshotName));
|
||||
|
||||
+17
@@ -2,12 +2,15 @@ package io.github.hectorvent.floci.services.redshiftserverless;
|
||||
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import io.github.hectorvent.floci.core.common.AwsException;
|
||||
import io.github.hectorvent.floci.core.storage.AccountAwareStorageBackend;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.time.ZoneOffset;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.function.Function;
|
||||
import java.util.function.Predicate;
|
||||
|
||||
/**
|
||||
* Request parsing and error helpers shared by the Redshift Serverless administration handlers and
|
||||
@@ -118,4 +121,18 @@ final class ServerlessSupport {
|
||||
static Integer maxResults(JsonNode request) {
|
||||
return integer(request, "maxResults");
|
||||
}
|
||||
|
||||
/** Return the Region's surviving records and remove records whose original parent is gone. */
|
||||
static <T> List<T> live(AccountAwareStorageBackend<T> storage, String region,
|
||||
Predicate<T> hasParent, Function<T, String> storageKey) {
|
||||
List<T> alive = new ArrayList<>();
|
||||
for (T record : storage.scan(key -> key.startsWith(region + "::"))) {
|
||||
if (hasParent.test(record)) {
|
||||
alive.add(record);
|
||||
} else {
|
||||
storage.delete(storageKey.apply(record));
|
||||
}
|
||||
}
|
||||
return alive;
|
||||
}
|
||||
}
|
||||
+144
@@ -0,0 +1,144 @@
|
||||
package io.github.hectorvent.floci.services.redshiftserverless.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import io.quarkus.runtime.annotations.RegisterForReflection;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* A Redshift Serverless managed VPC endpoint. Floci records it and reports the workgroup's own
|
||||
* endpoint as its address; it creates no network interface in any VPC.
|
||||
*/
|
||||
@RegisterForReflection
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class EndpointAccess {
|
||||
|
||||
private String endpointName;
|
||||
private String endpointArn;
|
||||
private String workgroupName;
|
||||
private String status;
|
||||
private Instant createTime;
|
||||
private String address;
|
||||
private int port;
|
||||
private List<String> subnetIds = new ArrayList<>();
|
||||
private List<String> networkInterfaceIds = new ArrayList<>();
|
||||
private List<String> vpcSecurityGroupIds = new ArrayList<>();
|
||||
private String vpcEndpointId;
|
||||
private String ownerId;
|
||||
|
||||
public EndpointAccess() {
|
||||
}
|
||||
|
||||
public EndpointAccess(EndpointAccess other) {
|
||||
this.ownerId = other.ownerId;
|
||||
this.endpointName = other.endpointName;
|
||||
this.endpointArn = other.endpointArn;
|
||||
this.workgroupName = other.workgroupName;
|
||||
this.status = other.status;
|
||||
this.createTime = other.createTime;
|
||||
this.address = other.address;
|
||||
this.port = other.port;
|
||||
this.subnetIds = new ArrayList<>(other.subnetIds);
|
||||
this.networkInterfaceIds = new ArrayList<>(other.networkInterfaceIds);
|
||||
this.vpcSecurityGroupIds = new ArrayList<>(other.vpcSecurityGroupIds);
|
||||
this.vpcEndpointId = other.vpcEndpointId;
|
||||
}
|
||||
|
||||
public String getEndpointName() {
|
||||
return endpointName;
|
||||
}
|
||||
|
||||
public void setEndpointName(String endpointName) {
|
||||
this.endpointName = endpointName;
|
||||
}
|
||||
|
||||
public String getEndpointArn() {
|
||||
return endpointArn;
|
||||
}
|
||||
|
||||
public void setEndpointArn(String endpointArn) {
|
||||
this.endpointArn = endpointArn;
|
||||
}
|
||||
|
||||
public String getWorkgroupName() {
|
||||
return workgroupName;
|
||||
}
|
||||
|
||||
public void setWorkgroupName(String workgroupName) {
|
||||
this.workgroupName = workgroupName;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Instant getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Instant createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public int getPort() {
|
||||
return port;
|
||||
}
|
||||
|
||||
public void setPort(int port) {
|
||||
this.port = port;
|
||||
}
|
||||
|
||||
public List<String> getSubnetIds() {
|
||||
return subnetIds;
|
||||
}
|
||||
|
||||
public void setSubnetIds(List<String> subnetIds) {
|
||||
this.subnetIds = subnetIds == null ? new ArrayList<>() : new ArrayList<>(subnetIds);
|
||||
}
|
||||
|
||||
public List<String> getNetworkInterfaceIds() {
|
||||
return networkInterfaceIds;
|
||||
}
|
||||
|
||||
public void setNetworkInterfaceIds(List<String> networkInterfaceIds) {
|
||||
this.networkInterfaceIds = networkInterfaceIds == null ? new ArrayList<>() : new ArrayList<>(networkInterfaceIds);
|
||||
}
|
||||
|
||||
public List<String> getVpcSecurityGroupIds() {
|
||||
return vpcSecurityGroupIds;
|
||||
}
|
||||
|
||||
public void setVpcSecurityGroupIds(List<String> vpcSecurityGroupIds) {
|
||||
this.vpcSecurityGroupIds = vpcSecurityGroupIds == null ? new ArrayList<>() : new ArrayList<>(vpcSecurityGroupIds);
|
||||
}
|
||||
|
||||
public String getVpcEndpointId() {
|
||||
return vpcEndpointId;
|
||||
}
|
||||
|
||||
public void setVpcEndpointId(String vpcEndpointId) {
|
||||
this.vpcEndpointId = vpcEndpointId;
|
||||
}
|
||||
|
||||
public String getOwnerId() {
|
||||
return ownerId;
|
||||
}
|
||||
|
||||
public void setOwnerId(String ownerId) {
|
||||
this.ownerId = ownerId;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user