All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.opensearchserverless.model.UpdateVpcEndpointRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for OpenSearch Service Serverless module holds the client classes that are used for communicating with OpenSearch Service Serverless Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 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 addSecurityGroupIds; /** *

* The ID of one or more subnets to add to the endpoint. *

*/ private java.util.List addSubnetIds; /** *

* 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 removeSecurityGroupIds; /** *

* The unique identifiers of the subnets to remove from the endpoint. *

*/ private java.util.List removeSubnetIds; /** *

* 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 getAddSecurityGroupIds() { return 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. *

* * @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 addSecurityGroupIds) { if (addSecurityGroupIds == null) { this.addSecurityGroupIds = null; return; } this.addSecurityGroupIds = new java.util.ArrayList(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. *

*

* 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(addSecurityGroupIds.length)); } for (String ele : addSecurityGroupIds) { this.addSecurityGroupIds.add(ele); } return this; } /** *

* 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 addSecurityGroupIds) { setAddSecurityGroupIds(addSecurityGroupIds); return this; } /** *

* 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 getAddSubnetIds() { return addSubnetIds; } /** *

* 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 addSubnetIds) { if (addSubnetIds == null) { this.addSubnetIds = null; return; } this.addSubnetIds = new java.util.ArrayList(addSubnetIds); } /** *

* 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(addSubnetIds.length)); } for (String ele : addSubnetIds) { this.addSubnetIds.add(ele); } return this; } /** *

* 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 addSubnetIds) { setAddSubnetIds(addSubnetIds); return this; } /** *

* 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 getRemoveSecurityGroupIds() { return removeSecurityGroupIds; } /** *

* 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 removeSecurityGroupIds) { if (removeSecurityGroupIds == null) { this.removeSecurityGroupIds = null; return; } this.removeSecurityGroupIds = new java.util.ArrayList(removeSecurityGroupIds); } /** *

* 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(removeSecurityGroupIds.length)); } for (String ele : removeSecurityGroupIds) { this.removeSecurityGroupIds.add(ele); } return this; } /** *

* 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 removeSecurityGroupIds) { setRemoveSecurityGroupIds(removeSecurityGroupIds); return this; } /** *

* 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 getRemoveSubnetIds() { return removeSubnetIds; } /** *

* 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 removeSubnetIds) { if (removeSubnetIds == null) { this.removeSubnetIds = null; return; } this.removeSubnetIds = new java.util.ArrayList(removeSubnetIds); } /** *

* 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(removeSubnetIds.length)); } for (String ele : removeSubnetIds) { this.removeSubnetIds.add(ele); } return this; } /** *

* 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 removeSubnetIds) { setRemoveSubnetIds(removeSubnetIds); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAddSecurityGroupIds() != null) sb.append("AddSecurityGroupIds: ").append(getAddSecurityGroupIds()).append(","); if (getAddSubnetIds() != null) sb.append("AddSubnetIds: ").append(getAddSubnetIds()).append(","); if (getClientToken() != null) sb.append("ClientToken: ").append(getClientToken()).append(","); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getRemoveSecurityGroupIds() != null) sb.append("RemoveSecurityGroupIds: ").append(getRemoveSecurityGroupIds()).append(","); if (getRemoveSubnetIds() != null) sb.append("RemoveSubnetIds: ").append(getRemoveSubnetIds()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateVpcEndpointRequest == false) return false; UpdateVpcEndpointRequest other = (UpdateVpcEndpointRequest) obj; if (other.getAddSecurityGroupIds() == null ^ this.getAddSecurityGroupIds() == null) return false; if (other.getAddSecurityGroupIds() != null && other.getAddSecurityGroupIds().equals(this.getAddSecurityGroupIds()) == false) return false; if (other.getAddSubnetIds() == null ^ this.getAddSubnetIds() == null) return false; if (other.getAddSubnetIds() != null && other.getAddSubnetIds().equals(this.getAddSubnetIds()) == false) return false; if (other.getClientToken() == null ^ this.getClientToken() == null) return false; if (other.getClientToken() != null && other.getClientToken().equals(this.getClientToken()) == false) return false; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getRemoveSecurityGroupIds() == null ^ this.getRemoveSecurityGroupIds() == null) return false; if (other.getRemoveSecurityGroupIds() != null && other.getRemoveSecurityGroupIds().equals(this.getRemoveSecurityGroupIds()) == false) return false; if (other.getRemoveSubnetIds() == null ^ this.getRemoveSubnetIds() == null) return false; if (other.getRemoveSubnetIds() != null && other.getRemoveSubnetIds().equals(this.getRemoveSubnetIds()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAddSecurityGroupIds() == null) ? 0 : getAddSecurityGroupIds().hashCode()); hashCode = prime * hashCode + ((getAddSubnetIds() == null) ? 0 : getAddSubnetIds().hashCode()); hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getRemoveSecurityGroupIds() == null) ? 0 : getRemoveSecurityGroupIds().hashCode()); hashCode = prime * hashCode + ((getRemoveSubnetIds() == null) ? 0 : getRemoveSubnetIds().hashCode()); return hashCode; } @Override public UpdateVpcEndpointRequest clone() { return (UpdateVpcEndpointRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy