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

com.amazonaws.services.elasticloadbalancingv2.model.SetSubnetsRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Elastic Load Balancing module holds the client classes that are used for communicating with Elastic Load Balancing Service (API Version 2015-12-01)

The 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.elasticloadbalancingv2.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 SetSubnetsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The Amazon Resource Name (ARN) of the load balancer. *

*/ private String loadBalancerArn; /** *

* The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either * subnets or subnet mappings. *

*

* [Application Load Balancers] You must specify subnets from at least two Availability Zones. *

*

* [Application Load Balancers on Outposts] You must specify one Outpost subnet. *

*

* [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones. *

*

* [Network Load Balancers] You can specify subnets from one or more Availability Zones. *

*

* [Gateway Load Balancers] You can specify subnets from one or more Availability Zones. *

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

* The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either * subnets or subnet mappings. *

*

* [Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify * Elastic IP addresses for your subnets. *

*

* [Application Load Balancers on Outposts] You must specify one Outpost subnet. *

*

* [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones. *

*

* [Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic * IP address per subnet if you need static IP addresses for your internet-facing load balancer. For internal load * balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet. For * internet-facing load balancer, you can specify one IPv6 address per subnet. *

*

* [Gateway Load Balancers] You can specify subnets from one or more Availability Zones. *

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

* [Application Load Balancers] The IP address type. The possible values are ipv4 (for only IPv4 * addresses), dualstack (for IPv4 and IPv6 addresses), and dualstack-without-public-ipv4 * (for IPv6 only public addresses, with private IPv4 and IPv6 addresses). *

*

* [Network Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible values * are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 addresses). You can’t * specify dualstack for a load balancer with a UDP or TCP_UDP listener. *

*

* [Gateway Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible values * are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 addresses). *

*/ private String ipAddressType; /** *

* The Amazon Resource Name (ARN) of the load balancer. *

* * @param loadBalancerArn * The Amazon Resource Name (ARN) of the load balancer. */ public void setLoadBalancerArn(String loadBalancerArn) { this.loadBalancerArn = loadBalancerArn; } /** *

* The Amazon Resource Name (ARN) of the load balancer. *

* * @return The Amazon Resource Name (ARN) of the load balancer. */ public String getLoadBalancerArn() { return this.loadBalancerArn; } /** *

* The Amazon Resource Name (ARN) of the load balancer. *

* * @param loadBalancerArn * The Amazon Resource Name (ARN) of the load balancer. * @return Returns a reference to this object so that method calls can be chained together. */ public SetSubnetsRequest withLoadBalancerArn(String loadBalancerArn) { setLoadBalancerArn(loadBalancerArn); return this; } /** *

* The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either * subnets or subnet mappings. *

*

* [Application Load Balancers] You must specify subnets from at least two Availability Zones. *

*

* [Application Load Balancers on Outposts] You must specify one Outpost subnet. *

*

* [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones. *

*

* [Network Load Balancers] You can specify subnets from one or more Availability Zones. *

*

* [Gateway Load Balancers] You can specify subnets from one or more Availability Zones. *

* * @return The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify * either subnets or subnet mappings.

*

* [Application Load Balancers] You must specify subnets from at least two Availability Zones. *

*

* [Application Load Balancers on Outposts] You must specify one Outpost subnet. *

*

* [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones. *

*

* [Network Load Balancers] You can specify subnets from one or more Availability Zones. *

*

* [Gateway Load Balancers] You can specify subnets from one or more Availability Zones. */ public java.util.List getSubnets() { return subnets; } /** *

* The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either * subnets or subnet mappings. *

*

* [Application Load Balancers] You must specify subnets from at least two Availability Zones. *

*

* [Application Load Balancers on Outposts] You must specify one Outpost subnet. *

*

* [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones. *

*

* [Network Load Balancers] You can specify subnets from one or more Availability Zones. *

*

* [Gateway Load Balancers] You can specify subnets from one or more Availability Zones. *

* * @param subnets * The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify * either subnets or subnet mappings.

*

* [Application Load Balancers] You must specify subnets from at least two Availability Zones. *

*

* [Application Load Balancers on Outposts] You must specify one Outpost subnet. *

*

* [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones. *

*

* [Network Load Balancers] You can specify subnets from one or more Availability Zones. *

*

* [Gateway Load Balancers] You can specify subnets from one or more Availability Zones. */ public void setSubnets(java.util.Collection subnets) { if (subnets == null) { this.subnets = null; return; } this.subnets = new java.util.ArrayList(subnets); } /** *

* The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either * subnets or subnet mappings. *

*

* [Application Load Balancers] You must specify subnets from at least two Availability Zones. *

*

* [Application Load Balancers on Outposts] You must specify one Outpost subnet. *

*

* [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones. *

*

* [Network Load Balancers] You can specify subnets from one or more Availability Zones. *

*

* [Gateway Load Balancers] You can specify subnets from one or more Availability Zones. *

*

* 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 IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify * either subnets or subnet mappings.

*

* [Application Load Balancers] You must specify subnets from at least two Availability Zones. *

*

* [Application Load Balancers on Outposts] You must specify one Outpost subnet. *

*

* [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones. *

*

* [Network Load Balancers] You can specify subnets from one or more Availability Zones. *

*

* [Gateway Load Balancers] You can specify subnets from one or more Availability Zones. * @return Returns a reference to this object so that method calls can be chained together. */ public SetSubnetsRequest withSubnets(String... subnets) { if (this.subnets == null) { setSubnets(new java.util.ArrayList(subnets.length)); } for (String ele : subnets) { this.subnets.add(ele); } return this; } /** *

* The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either * subnets or subnet mappings. *

*

* [Application Load Balancers] You must specify subnets from at least two Availability Zones. *

*

* [Application Load Balancers on Outposts] You must specify one Outpost subnet. *

*

* [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones. *

*

* [Network Load Balancers] You can specify subnets from one or more Availability Zones. *

*

* [Gateway Load Balancers] You can specify subnets from one or more Availability Zones. *

* * @param subnets * The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify * either subnets or subnet mappings.

*

* [Application Load Balancers] You must specify subnets from at least two Availability Zones. *

*

* [Application Load Balancers on Outposts] You must specify one Outpost subnet. *

*

* [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones. *

*

* [Network Load Balancers] You can specify subnets from one or more Availability Zones. *

*

* [Gateway Load Balancers] You can specify subnets from one or more Availability Zones. * @return Returns a reference to this object so that method calls can be chained together. */ public SetSubnetsRequest withSubnets(java.util.Collection subnets) { setSubnets(subnets); return this; } /** *

* The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either * subnets or subnet mappings. *

*

* [Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify * Elastic IP addresses for your subnets. *

*

* [Application Load Balancers on Outposts] You must specify one Outpost subnet. *

*

* [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones. *

*

* [Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic * IP address per subnet if you need static IP addresses for your internet-facing load balancer. For internal load * balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet. For * internet-facing load balancer, you can specify one IPv6 address per subnet. *

*

* [Gateway Load Balancers] You can specify subnets from one or more Availability Zones. *

* * @return The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify * either subnets or subnet mappings.

*

* [Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot * specify Elastic IP addresses for your subnets. *

*

* [Application Load Balancers on Outposts] You must specify one Outpost subnet. *

*

* [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones. *

*

* [Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one * Elastic IP address per subnet if you need static IP addresses for your internet-facing load balancer. For * internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the * subnet. For internet-facing load balancer, you can specify one IPv6 address per subnet. *

*

* [Gateway Load Balancers] You can specify subnets from one or more Availability Zones. */ public java.util.List getSubnetMappings() { return subnetMappings; } /** *

* The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either * subnets or subnet mappings. *

*

* [Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify * Elastic IP addresses for your subnets. *

*

* [Application Load Balancers on Outposts] You must specify one Outpost subnet. *

*

* [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones. *

*

* [Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic * IP address per subnet if you need static IP addresses for your internet-facing load balancer. For internal load * balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet. For * internet-facing load balancer, you can specify one IPv6 address per subnet. *

*

* [Gateway Load Balancers] You can specify subnets from one or more Availability Zones. *

* * @param subnetMappings * The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify * either subnets or subnet mappings.

*

* [Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot * specify Elastic IP addresses for your subnets. *

*

* [Application Load Balancers on Outposts] You must specify one Outpost subnet. *

*

* [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones. *

*

* [Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one * Elastic IP address per subnet if you need static IP addresses for your internet-facing load balancer. For * internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the * subnet. For internet-facing load balancer, you can specify one IPv6 address per subnet. *

*

* [Gateway Load Balancers] You can specify subnets from one or more Availability Zones. */ public void setSubnetMappings(java.util.Collection subnetMappings) { if (subnetMappings == null) { this.subnetMappings = null; return; } this.subnetMappings = new java.util.ArrayList(subnetMappings); } /** *

* The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either * subnets or subnet mappings. *

*

* [Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify * Elastic IP addresses for your subnets. *

*

* [Application Load Balancers on Outposts] You must specify one Outpost subnet. *

*

* [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones. *

*

* [Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic * IP address per subnet if you need static IP addresses for your internet-facing load balancer. For internal load * balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet. For * internet-facing load balancer, you can specify one IPv6 address per subnet. *

*

* [Gateway Load Balancers] You can specify subnets from one or more Availability Zones. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setSubnetMappings(java.util.Collection)} or {@link #withSubnetMappings(java.util.Collection)} if you want * to override the existing values. *

* * @param subnetMappings * The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify * either subnets or subnet mappings.

*

* [Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot * specify Elastic IP addresses for your subnets. *

*

* [Application Load Balancers on Outposts] You must specify one Outpost subnet. *

*

* [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones. *

*

* [Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one * Elastic IP address per subnet if you need static IP addresses for your internet-facing load balancer. For * internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the * subnet. For internet-facing load balancer, you can specify one IPv6 address per subnet. *

*

* [Gateway Load Balancers] You can specify subnets from one or more Availability Zones. * @return Returns a reference to this object so that method calls can be chained together. */ public SetSubnetsRequest withSubnetMappings(SubnetMapping... subnetMappings) { if (this.subnetMappings == null) { setSubnetMappings(new java.util.ArrayList(subnetMappings.length)); } for (SubnetMapping ele : subnetMappings) { this.subnetMappings.add(ele); } return this; } /** *

* The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either * subnets or subnet mappings. *

*

* [Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify * Elastic IP addresses for your subnets. *

*

* [Application Load Balancers on Outposts] You must specify one Outpost subnet. *

*

* [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones. *

*

* [Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic * IP address per subnet if you need static IP addresses for your internet-facing load balancer. For internal load * balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet. For * internet-facing load balancer, you can specify one IPv6 address per subnet. *

*

* [Gateway Load Balancers] You can specify subnets from one or more Availability Zones. *

* * @param subnetMappings * The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify * either subnets or subnet mappings.

*

* [Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot * specify Elastic IP addresses for your subnets. *

*

* [Application Load Balancers on Outposts] You must specify one Outpost subnet. *

*

* [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones. *

*

* [Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one * Elastic IP address per subnet if you need static IP addresses for your internet-facing load balancer. For * internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the * subnet. For internet-facing load balancer, you can specify one IPv6 address per subnet. *

*

* [Gateway Load Balancers] You can specify subnets from one or more Availability Zones. * @return Returns a reference to this object so that method calls can be chained together. */ public SetSubnetsRequest withSubnetMappings(java.util.Collection subnetMappings) { setSubnetMappings(subnetMappings); return this; } /** *

* [Application Load Balancers] The IP address type. The possible values are ipv4 (for only IPv4 * addresses), dualstack (for IPv4 and IPv6 addresses), and dualstack-without-public-ipv4 * (for IPv6 only public addresses, with private IPv4 and IPv6 addresses). *

*

* [Network Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible values * are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 addresses). You can’t * specify dualstack for a load balancer with a UDP or TCP_UDP listener. *

*

* [Gateway Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible values * are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 addresses). *

* * @param ipAddressType * [Application Load Balancers] The IP address type. The possible values are ipv4 (for only IPv4 * addresses), dualstack (for IPv4 and IPv6 addresses), and * dualstack-without-public-ipv4 (for IPv6 only public addresses, with private IPv4 and IPv6 * addresses).

*

* [Network Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible * values are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 * addresses). You can’t specify dualstack for a load balancer with a UDP or TCP_UDP listener. *

*

* [Gateway Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible * values are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 * addresses). * @see IpAddressType */ public void setIpAddressType(String ipAddressType) { this.ipAddressType = ipAddressType; } /** *

* [Application Load Balancers] The IP address type. The possible values are ipv4 (for only IPv4 * addresses), dualstack (for IPv4 and IPv6 addresses), and dualstack-without-public-ipv4 * (for IPv6 only public addresses, with private IPv4 and IPv6 addresses). *

*

* [Network Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible values * are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 addresses). You can’t * specify dualstack for a load balancer with a UDP or TCP_UDP listener. *

*

* [Gateway Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible values * are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 addresses). *

* * @return [Application Load Balancers] The IP address type. The possible values are ipv4 (for only * IPv4 addresses), dualstack (for IPv4 and IPv6 addresses), and * dualstack-without-public-ipv4 (for IPv6 only public addresses, with private IPv4 and IPv6 * addresses).

*

* [Network Load Balancers] The type of IP addresses used by the subnets for your load balancer. The * possible values are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 * addresses). You can’t specify dualstack for a load balancer with a UDP or TCP_UDP listener. *

*

* [Gateway Load Balancers] The type of IP addresses used by the subnets for your load balancer. The * possible values are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 * addresses). * @see IpAddressType */ public String getIpAddressType() { return this.ipAddressType; } /** *

* [Application Load Balancers] The IP address type. The possible values are ipv4 (for only IPv4 * addresses), dualstack (for IPv4 and IPv6 addresses), and dualstack-without-public-ipv4 * (for IPv6 only public addresses, with private IPv4 and IPv6 addresses). *

*

* [Network Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible values * are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 addresses). You can’t * specify dualstack for a load balancer with a UDP or TCP_UDP listener. *

*

* [Gateway Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible values * are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 addresses). *

* * @param ipAddressType * [Application Load Balancers] The IP address type. The possible values are ipv4 (for only IPv4 * addresses), dualstack (for IPv4 and IPv6 addresses), and * dualstack-without-public-ipv4 (for IPv6 only public addresses, with private IPv4 and IPv6 * addresses).

*

* [Network Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible * values are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 * addresses). You can’t specify dualstack for a load balancer with a UDP or TCP_UDP listener. *

*

* [Gateway Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible * values are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 * addresses). * @return Returns a reference to this object so that method calls can be chained together. * @see IpAddressType */ public SetSubnetsRequest withIpAddressType(String ipAddressType) { setIpAddressType(ipAddressType); return this; } /** *

* [Application Load Balancers] The IP address type. The possible values are ipv4 (for only IPv4 * addresses), dualstack (for IPv4 and IPv6 addresses), and dualstack-without-public-ipv4 * (for IPv6 only public addresses, with private IPv4 and IPv6 addresses). *

*

* [Network Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible values * are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 addresses). You can’t * specify dualstack for a load balancer with a UDP or TCP_UDP listener. *

*

* [Gateway Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible values * are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 addresses). *

* * @param ipAddressType * [Application Load Balancers] The IP address type. The possible values are ipv4 (for only IPv4 * addresses), dualstack (for IPv4 and IPv6 addresses), and * dualstack-without-public-ipv4 (for IPv6 only public addresses, with private IPv4 and IPv6 * addresses).

*

* [Network Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible * values are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 * addresses). You can’t specify dualstack for a load balancer with a UDP or TCP_UDP listener. *

*

* [Gateway Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible * values are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 * addresses). * @return Returns a reference to this object so that method calls can be chained together. * @see IpAddressType */ public SetSubnetsRequest withIpAddressType(IpAddressType ipAddressType) { this.ipAddressType = ipAddressType.toString(); 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 (getLoadBalancerArn() != null) sb.append("LoadBalancerArn: ").append(getLoadBalancerArn()).append(","); if (getSubnets() != null) sb.append("Subnets: ").append(getSubnets()).append(","); if (getSubnetMappings() != null) sb.append("SubnetMappings: ").append(getSubnetMappings()).append(","); if (getIpAddressType() != null) sb.append("IpAddressType: ").append(getIpAddressType()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SetSubnetsRequest == false) return false; SetSubnetsRequest other = (SetSubnetsRequest) obj; if (other.getLoadBalancerArn() == null ^ this.getLoadBalancerArn() == null) return false; if (other.getLoadBalancerArn() != null && other.getLoadBalancerArn().equals(this.getLoadBalancerArn()) == false) return false; if (other.getSubnets() == null ^ this.getSubnets() == null) return false; if (other.getSubnets() != null && other.getSubnets().equals(this.getSubnets()) == false) return false; if (other.getSubnetMappings() == null ^ this.getSubnetMappings() == null) return false; if (other.getSubnetMappings() != null && other.getSubnetMappings().equals(this.getSubnetMappings()) == false) return false; if (other.getIpAddressType() == null ^ this.getIpAddressType() == null) return false; if (other.getIpAddressType() != null && other.getIpAddressType().equals(this.getIpAddressType()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoadBalancerArn() == null) ? 0 : getLoadBalancerArn().hashCode()); hashCode = prime * hashCode + ((getSubnets() == null) ? 0 : getSubnets().hashCode()); hashCode = prime * hashCode + ((getSubnetMappings() == null) ? 0 : getSubnetMappings().hashCode()); hashCode = prime * hashCode + ((getIpAddressType() == null) ? 0 : getIpAddressType().hashCode()); return hashCode; } @Override public SetSubnetsRequest clone() { return (SetSubnetsRequest) super.clone(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy