/* * 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.databasemigrationservice.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Describes a subnet group in response to a request by the DescribeReplicationSubnetGroups
operation.
*
* The identifier of the replication instance subnet group. *
*/ private String replicationSubnetGroupIdentifier; /** ** A description for the replication subnet group. *
*/ private String replicationSubnetGroupDescription; /** ** The ID of the VPC. *
*/ private String vpcId; /** ** The status of the subnet group. *
*/ private String subnetGroupStatus; /** ** The subnets that are in the subnet group. *
*/ private java.util.List* The IP addressing protocol supported by the subnet group. This is used by a replication instance with values such * as IPv4 only or Dual-stack that supports both IPv4 and IPv6 addressing. IPv6 only is not yet supported. *
*/ private java.util.List* The identifier of the replication instance subnet group. *
* * @param replicationSubnetGroupIdentifier * The identifier of the replication instance subnet group. */ public void setReplicationSubnetGroupIdentifier(String replicationSubnetGroupIdentifier) { this.replicationSubnetGroupIdentifier = replicationSubnetGroupIdentifier; } /** ** The identifier of the replication instance subnet group. *
* * @return The identifier of the replication instance subnet group. */ public String getReplicationSubnetGroupIdentifier() { return this.replicationSubnetGroupIdentifier; } /** ** The identifier of the replication instance subnet group. *
* * @param replicationSubnetGroupIdentifier * The identifier of the replication instance subnet group. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationSubnetGroup withReplicationSubnetGroupIdentifier(String replicationSubnetGroupIdentifier) { setReplicationSubnetGroupIdentifier(replicationSubnetGroupIdentifier); return this; } /** ** A description for the replication subnet group. *
* * @param replicationSubnetGroupDescription * A description for the replication subnet group. */ public void setReplicationSubnetGroupDescription(String replicationSubnetGroupDescription) { this.replicationSubnetGroupDescription = replicationSubnetGroupDescription; } /** ** A description for the replication subnet group. *
* * @return A description for the replication subnet group. */ public String getReplicationSubnetGroupDescription() { return this.replicationSubnetGroupDescription; } /** ** A description for the replication subnet group. *
* * @param replicationSubnetGroupDescription * A description for the replication subnet group. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationSubnetGroup withReplicationSubnetGroupDescription(String replicationSubnetGroupDescription) { setReplicationSubnetGroupDescription(replicationSubnetGroupDescription); return this; } /** ** The ID of the VPC. *
* * @param vpcId * The ID of the VPC. */ public void setVpcId(String vpcId) { this.vpcId = vpcId; } /** ** The ID of the VPC. *
* * @return The ID of the VPC. */ public String getVpcId() { return this.vpcId; } /** ** The ID of the VPC. *
* * @param vpcId * The ID of the VPC. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationSubnetGroup withVpcId(String vpcId) { setVpcId(vpcId); return this; } /** ** The status of the subnet group. *
* * @param subnetGroupStatus * The status of the subnet group. */ public void setSubnetGroupStatus(String subnetGroupStatus) { this.subnetGroupStatus = subnetGroupStatus; } /** ** The status of the subnet group. *
* * @return The status of the subnet group. */ public String getSubnetGroupStatus() { return this.subnetGroupStatus; } /** ** The status of the subnet group. *
* * @param subnetGroupStatus * The status of the subnet group. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationSubnetGroup withSubnetGroupStatus(String subnetGroupStatus) { setSubnetGroupStatus(subnetGroupStatus); return this; } /** ** The subnets that are in the subnet group. *
* * @return The subnets that are in the subnet group. */ public java.util.List* The subnets that are in the subnet group. *
* * @param subnets * The subnets that are in the subnet group. */ public void setSubnets(java.util.Collection* The subnets that are in the subnet group. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSubnets(java.util.Collection)} or {@link #withSubnets(java.util.Collection)} if you want to override * the existing values. *
* * @param subnets * The subnets that are in the subnet group. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationSubnetGroup withSubnets(Subnet... subnets) { if (this.subnets == null) { setSubnets(new java.util.ArrayList* The subnets that are in the subnet group. *
* * @param subnets * The subnets that are in the subnet group. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationSubnetGroup withSubnets(java.util.Collection* The IP addressing protocol supported by the subnet group. This is used by a replication instance with values such * as IPv4 only or Dual-stack that supports both IPv4 and IPv6 addressing. IPv6 only is not yet supported. *
* * @return The IP addressing protocol supported by the subnet group. This is used by a replication instance with * values such as IPv4 only or Dual-stack that supports both IPv4 and IPv6 addressing. IPv6 only is not yet * supported. */ public java.util.List* The IP addressing protocol supported by the subnet group. This is used by a replication instance with values such * as IPv4 only or Dual-stack that supports both IPv4 and IPv6 addressing. IPv6 only is not yet supported. *
* * @param supportedNetworkTypes * The IP addressing protocol supported by the subnet group. This is used by a replication instance with * values such as IPv4 only or Dual-stack that supports both IPv4 and IPv6 addressing. IPv6 only is not yet * supported. */ public void setSupportedNetworkTypes(java.util.Collection* The IP addressing protocol supported by the subnet group. This is used by a replication instance with values such * as IPv4 only or Dual-stack that supports both IPv4 and IPv6 addressing. IPv6 only is not yet supported. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSupportedNetworkTypes(java.util.Collection)} or * {@link #withSupportedNetworkTypes(java.util.Collection)} if you want to override the existing values. *
* * @param supportedNetworkTypes * The IP addressing protocol supported by the subnet group. This is used by a replication instance with * values such as IPv4 only or Dual-stack that supports both IPv4 and IPv6 addressing. IPv6 only is not yet * supported. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationSubnetGroup withSupportedNetworkTypes(String... supportedNetworkTypes) { if (this.supportedNetworkTypes == null) { setSupportedNetworkTypes(new java.util.ArrayList* The IP addressing protocol supported by the subnet group. This is used by a replication instance with values such * as IPv4 only or Dual-stack that supports both IPv4 and IPv6 addressing. IPv6 only is not yet supported. *
* * @param supportedNetworkTypes * The IP addressing protocol supported by the subnet group. This is used by a replication instance with * values such as IPv4 only or Dual-stack that supports both IPv4 and IPv6 addressing. IPv6 only is not yet * supported. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationSubnetGroup withSupportedNetworkTypes(java.util.Collection