/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Update details for an OpenSearch Serverless-managed interface endpoint. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateVpcEndpointDetail implements Serializable, Cloneable, StructuredPojo { /** ** The unique identifier of the endpoint. *
*/ private String id; /** ** The timestamp of when the endpoint was last modified. *
*/ private Long lastModifiedDate; /** ** The name of the endpoint. *
*/ private String name; /** ** The unique identifiers of the security groups that define the ports, protocols, and sources for inbound traffic * that you are authorizing into your endpoint. *
*/ private java.util.List* The current status of the endpoint update process. *
*/ private String status; /** ** The ID of the subnets from which you access OpenSearch Serverless. *
*/ private java.util.List* The unique identifier of the endpoint. *
* * @param id * The unique identifier of the endpoint. */ public void setId(String id) { this.id = id; } /** ** The unique identifier of the endpoint. *
* * @return The unique identifier of the endpoint. */ public String getId() { return this.id; } /** ** The unique identifier of the endpoint. *
* * @param id * The unique identifier of the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateVpcEndpointDetail withId(String id) { setId(id); return this; } /** ** The timestamp of when the endpoint was last modified. *
* * @param lastModifiedDate * The timestamp of when the endpoint was last modified. */ public void setLastModifiedDate(Long lastModifiedDate) { this.lastModifiedDate = lastModifiedDate; } /** ** The timestamp of when the endpoint was last modified. *
* * @return The timestamp of when the endpoint was last modified. */ public Long getLastModifiedDate() { return this.lastModifiedDate; } /** ** The timestamp of when the endpoint was last modified. *
* * @param lastModifiedDate * The timestamp of when the endpoint was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateVpcEndpointDetail withLastModifiedDate(Long lastModifiedDate) { setLastModifiedDate(lastModifiedDate); return this; } /** ** The name of the endpoint. *
* * @param name * The name of the endpoint. */ public void setName(String name) { this.name = name; } /** ** The name of the endpoint. *
* * @return The name of the endpoint. */ public String getName() { return this.name; } /** ** The name of the endpoint. *
* * @param name * The name of the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateVpcEndpointDetail withName(String name) { setName(name); return this; } /** ** The unique identifiers of the security groups that define the ports, protocols, and sources for inbound traffic * that you are authorizing into your endpoint. *
* * @return The unique identifiers of the security groups that 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 that define the ports, protocols, and sources for inbound traffic * that you are authorizing into your endpoint. *
* * @param securityGroupIds * The unique identifiers of the security groups that define the ports, protocols, and sources for inbound * traffic that you are authorizing into your endpoint. */ public void setSecurityGroupIds(java.util.Collection* The unique identifiers of the security groups that 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 #setSecurityGroupIds(java.util.Collection)} or {@link #withSecurityGroupIds(java.util.Collection)} if you * want to override the existing values. *
* * @param securityGroupIds * The unique identifiers of the security groups that 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 UpdateVpcEndpointDetail withSecurityGroupIds(String... securityGroupIds) { if (this.securityGroupIds == null) { setSecurityGroupIds(new java.util.ArrayList* The unique identifiers of the security groups that define the ports, protocols, and sources for inbound traffic * that you are authorizing into your endpoint. *
* * @param securityGroupIds * The unique identifiers of the security groups that 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 UpdateVpcEndpointDetail withSecurityGroupIds(java.util.Collection* The current status of the endpoint update process. *
* * @param status * The current status of the endpoint update process. * @see VpcEndpointStatus */ public void setStatus(String status) { this.status = status; } /** ** The current status of the endpoint update process. *
* * @return The current status of the endpoint update process. * @see VpcEndpointStatus */ public String getStatus() { return this.status; } /** ** The current status of the endpoint update process. *
* * @param status * The current status of the endpoint update process. * @return Returns a reference to this object so that method calls can be chained together. * @see VpcEndpointStatus */ public UpdateVpcEndpointDetail withStatus(String status) { setStatus(status); return this; } /** ** The current status of the endpoint update process. *
* * @param status * The current status of the endpoint update process. * @return Returns a reference to this object so that method calls can be chained together. * @see VpcEndpointStatus */ public UpdateVpcEndpointDetail withStatus(VpcEndpointStatus status) { this.status = status.toString(); return this; } /** ** The ID of the subnets from which you access OpenSearch Serverless. *
* * @return The ID of the subnets from which you access OpenSearch Serverless. */ public java.util.List* The ID of the subnets from which you access OpenSearch Serverless. *
* * @param subnetIds * The ID of the subnets from which you access OpenSearch Serverless. */ public void setSubnetIds(java.util.Collection* The ID of the subnets from which you access OpenSearch Serverless. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSubnetIds(java.util.Collection)} or {@link #withSubnetIds(java.util.Collection)} if you want to * override the existing values. *
* * @param subnetIds * The ID of the subnets from which you access OpenSearch Serverless. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateVpcEndpointDetail withSubnetIds(String... subnetIds) { if (this.subnetIds == null) { setSubnetIds(new java.util.ArrayList* The ID of the subnets from which you access OpenSearch Serverless. *
* * @param subnetIds * The ID of the subnets from which you access OpenSearch Serverless. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateVpcEndpointDetail withSubnetIds(java.util.Collection