/* * 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.kinesisanalyticsv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Describes updates to the VPC configuration used by the application. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class VpcConfigurationUpdate implements Serializable, Cloneable, StructuredPojo { /** ** Describes an update to the ID of the VPC configuration. *
*/ private String vpcConfigurationId; /** ** Describes updates to the array of Subnet IDs used by the VPC * configuration. *
*/ private java.util.List* Describes updates to the array of SecurityGroup IDs used * by the VPC configuration. *
*/ private java.util.List* Describes an update to the ID of the VPC configuration. *
* * @param vpcConfigurationId * Describes an update to the ID of the VPC configuration. */ public void setVpcConfigurationId(String vpcConfigurationId) { this.vpcConfigurationId = vpcConfigurationId; } /** ** Describes an update to the ID of the VPC configuration. *
* * @return Describes an update to the ID of the VPC configuration. */ public String getVpcConfigurationId() { return this.vpcConfigurationId; } /** ** Describes an update to the ID of the VPC configuration. *
* * @param vpcConfigurationId * Describes an update to the ID of the VPC configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcConfigurationUpdate withVpcConfigurationId(String vpcConfigurationId) { setVpcConfigurationId(vpcConfigurationId); return this; } /** ** Describes updates to the array of Subnet IDs used by the VPC * configuration. *
* * @return Describes updates to the array of Subnet IDs used by the * VPC configuration. */ public java.util.List* Describes updates to the array of Subnet IDs used by the VPC * configuration. *
* * @param subnetIdUpdates * Describes updates to the array of Subnet IDs used by the * VPC configuration. */ public void setSubnetIdUpdates(java.util.Collection* Describes updates to the array of Subnet IDs used by the VPC * configuration. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSubnetIdUpdates(java.util.Collection)} or {@link #withSubnetIdUpdates(java.util.Collection)} if you * want to override the existing values. *
* * @param subnetIdUpdates * Describes updates to the array of Subnet IDs used by the * VPC configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcConfigurationUpdate withSubnetIdUpdates(String... subnetIdUpdates) { if (this.subnetIdUpdates == null) { setSubnetIdUpdates(new java.util.ArrayList* Describes updates to the array of Subnet IDs used by the VPC * configuration. *
* * @param subnetIdUpdates * Describes updates to the array of Subnet IDs used by the * VPC configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcConfigurationUpdate withSubnetIdUpdates(java.util.Collection* Describes updates to the array of SecurityGroup IDs used * by the VPC configuration. *
* * @return Describes updates to the array of SecurityGroup * IDs used by the VPC configuration. */ public java.util.List* Describes updates to the array of SecurityGroup IDs used * by the VPC configuration. *
* * @param securityGroupIdUpdates * Describes updates to the array of SecurityGroup IDs * used by the VPC configuration. */ public void setSecurityGroupIdUpdates(java.util.Collection* Describes updates to the array of SecurityGroup IDs used * by the VPC configuration. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSecurityGroupIdUpdates(java.util.Collection)} or * {@link #withSecurityGroupIdUpdates(java.util.Collection)} if you want to override the existing values. *
* * @param securityGroupIdUpdates * Describes updates to the array of SecurityGroup IDs * used by the VPC configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcConfigurationUpdate withSecurityGroupIdUpdates(String... securityGroupIdUpdates) { if (this.securityGroupIdUpdates == null) { setSecurityGroupIdUpdates(new java.util.ArrayList* Describes updates to the array of SecurityGroup IDs used * by the VPC configuration. *
* * @param securityGroupIdUpdates * Describes updates to the array of SecurityGroup IDs * used by the VPC configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcConfigurationUpdate withSecurityGroupIdUpdates(java.util.Collection