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

com.amazonaws.services.directory.model.IpRouteInfo Maven / Gradle / Ivy

/*
 * 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.directory.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Information about one or more IP address blocks. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class IpRouteInfo implements Serializable, Cloneable, StructuredPojo { /** *

* Identifier (ID) of the directory associated with the IP addresses. *

*/ private String directoryId; /** *

* IP address block in the IpRoute. *

*/ private String cidrIp; /** *

* The status of the IP address block. *

*/ private String ipRouteStatusMsg; /** *

* The date and time the address block was added to the directory. *

*/ private java.util.Date addedDateTime; /** *

* The reason for the IpRouteStatusMsg. *

*/ private String ipRouteStatusReason; /** *

* Description of the IpRouteInfo. *

*/ private String description; /** *

* Identifier (ID) of the directory associated with the IP addresses. *

* * @param directoryId * Identifier (ID) of the directory associated with the IP addresses. */ public void setDirectoryId(String directoryId) { this.directoryId = directoryId; } /** *

* Identifier (ID) of the directory associated with the IP addresses. *

* * @return Identifier (ID) of the directory associated with the IP addresses. */ public String getDirectoryId() { return this.directoryId; } /** *

* Identifier (ID) of the directory associated with the IP addresses. *

* * @param directoryId * Identifier (ID) of the directory associated with the IP addresses. * @return Returns a reference to this object so that method calls can be chained together. */ public IpRouteInfo withDirectoryId(String directoryId) { setDirectoryId(directoryId); return this; } /** *

* IP address block in the IpRoute. *

* * @param cidrIp * IP address block in the IpRoute. */ public void setCidrIp(String cidrIp) { this.cidrIp = cidrIp; } /** *

* IP address block in the IpRoute. *

* * @return IP address block in the IpRoute. */ public String getCidrIp() { return this.cidrIp; } /** *

* IP address block in the IpRoute. *

* * @param cidrIp * IP address block in the IpRoute. * @return Returns a reference to this object so that method calls can be chained together. */ public IpRouteInfo withCidrIp(String cidrIp) { setCidrIp(cidrIp); return this; } /** *

* The status of the IP address block. *

* * @param ipRouteStatusMsg * The status of the IP address block. * @see IpRouteStatusMsg */ public void setIpRouteStatusMsg(String ipRouteStatusMsg) { this.ipRouteStatusMsg = ipRouteStatusMsg; } /** *

* The status of the IP address block. *

* * @return The status of the IP address block. * @see IpRouteStatusMsg */ public String getIpRouteStatusMsg() { return this.ipRouteStatusMsg; } /** *

* The status of the IP address block. *

* * @param ipRouteStatusMsg * The status of the IP address block. * @return Returns a reference to this object so that method calls can be chained together. * @see IpRouteStatusMsg */ public IpRouteInfo withIpRouteStatusMsg(String ipRouteStatusMsg) { setIpRouteStatusMsg(ipRouteStatusMsg); return this; } /** *

* The status of the IP address block. *

* * @param ipRouteStatusMsg * The status of the IP address block. * @see IpRouteStatusMsg */ public void setIpRouteStatusMsg(IpRouteStatusMsg ipRouteStatusMsg) { withIpRouteStatusMsg(ipRouteStatusMsg); } /** *

* The status of the IP address block. *

* * @param ipRouteStatusMsg * The status of the IP address block. * @return Returns a reference to this object so that method calls can be chained together. * @see IpRouteStatusMsg */ public IpRouteInfo withIpRouteStatusMsg(IpRouteStatusMsg ipRouteStatusMsg) { this.ipRouteStatusMsg = ipRouteStatusMsg.toString(); return this; } /** *

* The date and time the address block was added to the directory. *

* * @param addedDateTime * The date and time the address block was added to the directory. */ public void setAddedDateTime(java.util.Date addedDateTime) { this.addedDateTime = addedDateTime; } /** *

* The date and time the address block was added to the directory. *

* * @return The date and time the address block was added to the directory. */ public java.util.Date getAddedDateTime() { return this.addedDateTime; } /** *

* The date and time the address block was added to the directory. *

* * @param addedDateTime * The date and time the address block was added to the directory. * @return Returns a reference to this object so that method calls can be chained together. */ public IpRouteInfo withAddedDateTime(java.util.Date addedDateTime) { setAddedDateTime(addedDateTime); return this; } /** *

* The reason for the IpRouteStatusMsg. *

* * @param ipRouteStatusReason * The reason for the IpRouteStatusMsg. */ public void setIpRouteStatusReason(String ipRouteStatusReason) { this.ipRouteStatusReason = ipRouteStatusReason; } /** *

* The reason for the IpRouteStatusMsg. *

* * @return The reason for the IpRouteStatusMsg. */ public String getIpRouteStatusReason() { return this.ipRouteStatusReason; } /** *

* The reason for the IpRouteStatusMsg. *

* * @param ipRouteStatusReason * The reason for the IpRouteStatusMsg. * @return Returns a reference to this object so that method calls can be chained together. */ public IpRouteInfo withIpRouteStatusReason(String ipRouteStatusReason) { setIpRouteStatusReason(ipRouteStatusReason); return this; } /** *

* Description of the IpRouteInfo. *

* * @param description * Description of the IpRouteInfo. */ public void setDescription(String description) { this.description = description; } /** *

* Description of the IpRouteInfo. *

* * @return Description of the IpRouteInfo. */ public String getDescription() { return this.description; } /** *

* Description of the IpRouteInfo. *

* * @param description * Description of the IpRouteInfo. * @return Returns a reference to this object so that method calls can be chained together. */ public IpRouteInfo withDescription(String description) { setDescription(description); 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 (getDirectoryId() != null) sb.append("DirectoryId: ").append(getDirectoryId()).append(","); if (getCidrIp() != null) sb.append("CidrIp: ").append(getCidrIp()).append(","); if (getIpRouteStatusMsg() != null) sb.append("IpRouteStatusMsg: ").append(getIpRouteStatusMsg()).append(","); if (getAddedDateTime() != null) sb.append("AddedDateTime: ").append(getAddedDateTime()).append(","); if (getIpRouteStatusReason() != null) sb.append("IpRouteStatusReason: ").append(getIpRouteStatusReason()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof IpRouteInfo == false) return false; IpRouteInfo other = (IpRouteInfo) obj; if (other.getDirectoryId() == null ^ this.getDirectoryId() == null) return false; if (other.getDirectoryId() != null && other.getDirectoryId().equals(this.getDirectoryId()) == false) return false; if (other.getCidrIp() == null ^ this.getCidrIp() == null) return false; if (other.getCidrIp() != null && other.getCidrIp().equals(this.getCidrIp()) == false) return false; if (other.getIpRouteStatusMsg() == null ^ this.getIpRouteStatusMsg() == null) return false; if (other.getIpRouteStatusMsg() != null && other.getIpRouteStatusMsg().equals(this.getIpRouteStatusMsg()) == false) return false; if (other.getAddedDateTime() == null ^ this.getAddedDateTime() == null) return false; if (other.getAddedDateTime() != null && other.getAddedDateTime().equals(this.getAddedDateTime()) == false) return false; if (other.getIpRouteStatusReason() == null ^ this.getIpRouteStatusReason() == null) return false; if (other.getIpRouteStatusReason() != null && other.getIpRouteStatusReason().equals(this.getIpRouteStatusReason()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDirectoryId() == null) ? 0 : getDirectoryId().hashCode()); hashCode = prime * hashCode + ((getCidrIp() == null) ? 0 : getCidrIp().hashCode()); hashCode = prime * hashCode + ((getIpRouteStatusMsg() == null) ? 0 : getIpRouteStatusMsg().hashCode()); hashCode = prime * hashCode + ((getAddedDateTime() == null) ? 0 : getAddedDateTime().hashCode()); hashCode = prime * hashCode + ((getIpRouteStatusReason() == null) ? 0 : getIpRouteStatusReason().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); return hashCode; } @Override public IpRouteInfo clone() { try { return (IpRouteInfo) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.directory.model.transform.IpRouteInfoMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy