/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.opensearchserverless.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateVpcEndpointRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The unique identifiers of the security groups to add to the endpoint. Security groups define the ports, * protocols, and sources for inbound traffic that you are authorizing into your endpoint. *
*/ private java.util.List* The ID of one or more subnets to add to the endpoint. *
*/ private java.util.List* Unique, case-sensitive identifier to ensure idempotency of the request. *
*/ private String clientToken; /** ** The unique identifier of the interface endpoint to update. *
*/ private String id; /** ** The unique identifiers of the security groups to remove from the endpoint. *
*/ private java.util.List* The unique identifiers of the subnets to remove from the endpoint. *
*/ private java.util.List* The unique identifiers of the security groups to add to the endpoint. Security groups define the ports, * protocols, and sources for inbound traffic that you are authorizing into your endpoint. *
* * @return The unique identifiers of the security groups to add to the endpoint. Security groups define the ports, * protocols, and sources for inbound traffic that you are authorizing into your endpoint. */ public java.util.List* The unique identifiers of the security groups to add to the endpoint. Security groups define the ports, * protocols, and sources for inbound traffic that you are authorizing into your endpoint. *
* * @param addSecurityGroupIds * The unique identifiers of the security groups to add to the endpoint. Security groups define the ports, * protocols, and sources for inbound traffic that you are authorizing into your endpoint. */ public void setAddSecurityGroupIds(java.util.Collection* The unique identifiers of the security groups to add to the endpoint. Security groups define the ports, * protocols, and sources for inbound traffic that you are authorizing into your endpoint. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAddSecurityGroupIds(java.util.Collection)} or {@link #withAddSecurityGroupIds(java.util.Collection)} * if you want to override the existing values. *
* * @param addSecurityGroupIds * The unique identifiers of the security groups to add to the endpoint. Security groups define the ports, * protocols, and sources for inbound traffic that you are authorizing into your endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateVpcEndpointRequest withAddSecurityGroupIds(String... addSecurityGroupIds) { if (this.addSecurityGroupIds == null) { setAddSecurityGroupIds(new java.util.ArrayList* The unique identifiers of the security groups to add to the endpoint. Security groups define the ports, * protocols, and sources for inbound traffic that you are authorizing into your endpoint. *
* * @param addSecurityGroupIds * The unique identifiers of the security groups to add to the endpoint. Security groups define the ports, * protocols, and sources for inbound traffic that you are authorizing into your endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateVpcEndpointRequest withAddSecurityGroupIds(java.util.Collection* The ID of one or more subnets to add to the endpoint. *
* * @return The ID of one or more subnets to add to the endpoint. */ public java.util.List* The ID of one or more subnets to add to the endpoint. *
* * @param addSubnetIds * The ID of one or more subnets to add to the endpoint. */ public void setAddSubnetIds(java.util.Collection* The ID of one or more subnets to add to the endpoint. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAddSubnetIds(java.util.Collection)} or {@link #withAddSubnetIds(java.util.Collection)} if you want to * override the existing values. *
* * @param addSubnetIds * The ID of one or more subnets to add to the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateVpcEndpointRequest withAddSubnetIds(String... addSubnetIds) { if (this.addSubnetIds == null) { setAddSubnetIds(new java.util.ArrayList* The ID of one or more subnets to add to the endpoint. *
* * @param addSubnetIds * The ID of one or more subnets to add to the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateVpcEndpointRequest withAddSubnetIds(java.util.Collection* Unique, case-sensitive identifier to ensure idempotency of the request. *
* * @param clientToken * Unique, case-sensitive identifier to ensure idempotency of the request. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** ** Unique, case-sensitive identifier to ensure idempotency of the request. *
* * @return Unique, case-sensitive identifier to ensure idempotency of the request. */ public String getClientToken() { return this.clientToken; } /** ** Unique, case-sensitive identifier to ensure idempotency of the request. *
* * @param clientToken * Unique, case-sensitive identifier to ensure idempotency of the request. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateVpcEndpointRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** ** The unique identifier of the interface endpoint to update. *
* * @param id * The unique identifier of the interface endpoint to update. */ public void setId(String id) { this.id = id; } /** ** The unique identifier of the interface endpoint to update. *
* * @return The unique identifier of the interface endpoint to update. */ public String getId() { return this.id; } /** ** The unique identifier of the interface endpoint to update. *
* * @param id * The unique identifier of the interface endpoint to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateVpcEndpointRequest withId(String id) { setId(id); return this; } /** ** The unique identifiers of the security groups to remove from the endpoint. *
* * @return The unique identifiers of the security groups to remove from the endpoint. */ public java.util.List* The unique identifiers of the security groups to remove from the endpoint. *
* * @param removeSecurityGroupIds * The unique identifiers of the security groups to remove from the endpoint. */ public void setRemoveSecurityGroupIds(java.util.Collection* The unique identifiers of the security groups to remove from the endpoint. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRemoveSecurityGroupIds(java.util.Collection)} or * {@link #withRemoveSecurityGroupIds(java.util.Collection)} if you want to override the existing values. *
* * @param removeSecurityGroupIds * The unique identifiers of the security groups to remove from the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateVpcEndpointRequest withRemoveSecurityGroupIds(String... removeSecurityGroupIds) { if (this.removeSecurityGroupIds == null) { setRemoveSecurityGroupIds(new java.util.ArrayList* The unique identifiers of the security groups to remove from the endpoint. *
* * @param removeSecurityGroupIds * The unique identifiers of the security groups to remove from the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateVpcEndpointRequest withRemoveSecurityGroupIds(java.util.Collection* The unique identifiers of the subnets to remove from the endpoint. *
* * @return The unique identifiers of the subnets to remove from the endpoint. */ public java.util.List* The unique identifiers of the subnets to remove from the endpoint. *
* * @param removeSubnetIds * The unique identifiers of the subnets to remove from the endpoint. */ public void setRemoveSubnetIds(java.util.Collection* The unique identifiers of the subnets to remove from the endpoint. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRemoveSubnetIds(java.util.Collection)} or {@link #withRemoveSubnetIds(java.util.Collection)} if you * want to override the existing values. *
* * @param removeSubnetIds * The unique identifiers of the subnets to remove from the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateVpcEndpointRequest withRemoveSubnetIds(String... removeSubnetIds) { if (this.removeSubnetIds == null) { setRemoveSubnetIds(new java.util.ArrayList* The unique identifiers of the subnets to remove from the endpoint. *
* * @param removeSubnetIds * The unique identifiers of the subnets to remove from the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateVpcEndpointRequest withRemoveSubnetIds(java.util.Collection