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

com.ksc.network.vpc.model.subnet.DescribeSubnetAvailableAddressesResult Maven / Gradle / Ivy

There is a newer version: 2.1.8
Show newest version
package com.ksc.network.vpc.model.subnet;

import lombok.ToString;

import java.io.Serializable;

/**
 * 

* Contains the output of DescribeSubnetAvailableAddresses. *

*/ @ToString public class DescribeSubnetAvailableAddressesResult implements Serializable, Cloneable { /** * */ private static final long serialVersionUID = -4342231836921805816L; private String RequestId; /** *

* 子网内可用IP信息 *

*/ private com.ksc.internal.SdkInternalList AvailableIpAddress; public String getRequestId() { return RequestId; } public void setRequestId(String requestId) { this.RequestId = requestId; } /** *

* Information about one or more VPCs. *

* * @return Information about one or more VPCs. */ public java.util.List getAvailableIpAddress() { if (AvailableIpAddress == null) { AvailableIpAddress = new com.ksc.internal.SdkInternalList(); } return AvailableIpAddress; } public void setVpcSet(java.util.Collection availableAddresses) { if (availableAddresses == null) { this.AvailableIpAddress = null; return; } this.AvailableIpAddress = new com.ksc.internal.SdkInternalList(availableAddresses); } public DescribeSubnetAvailableAddressesResult withAvailableIpAddress(String... availableAddresses) { if (this.AvailableIpAddress == null) { setVpcSet(new com.ksc.internal.SdkInternalList(availableAddresses.length)); } for (String ele : availableAddresses) { this.AvailableIpAddress.add(ele); } return this; } public DescribeSubnetAvailableAddressesResult withAvailableIpAddress(java.util.Collection availableAddresses) { setVpcSet(availableAddresses); return this; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeSubnetAvailableAddressesResult == false) return false; DescribeSubnetAvailableAddressesResult other = (DescribeSubnetAvailableAddressesResult) obj; if (other.getAvailableIpAddress() == null ^ this.getAvailableIpAddress() == null) return false; if (other.getAvailableIpAddress() != null && other.getAvailableIpAddress().equals(this.getAvailableIpAddress()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAvailableIpAddress() == null) ? 0 : getAvailableIpAddress().hashCode()); return hashCode; } @Override public DescribeSubnetAvailableAddressesResult clone() { try { return (DescribeSubnetAvailableAddressesResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException( "Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy