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

com.amazonaws.services.networkmanager.model.ConnectPeerSummary Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Network Manager module holds the client classes that are used for communicating with AWS Network Manager Service

There is a newer version: 1.12.772
Show 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.networkmanager.model;

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

/**
 * 

* Summary description of a Connect peer. *

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

* The ID of a core network. *

*/ private String coreNetworkId; /** *

* The ID of a Connect peer attachment. *

*/ private String connectAttachmentId; /** *

* The ID of a Connect peer. *

*/ private String connectPeerId; /** *

* The Region where the edge is located. *

*/ private String edgeLocation; /** *

* The state of a Connect peer. *

*/ private String connectPeerState; /** *

* The timestamp when a Connect peer was created. *

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

* The list of key-value tags associated with the Connect peer summary. *

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

* The subnet ARN for the Connect peer summary. *

*/ private String subnetArn; /** *

* The ID of a core network. *

* * @param coreNetworkId * The ID of a core network. */ public void setCoreNetworkId(String coreNetworkId) { this.coreNetworkId = coreNetworkId; } /** *

* The ID of a core network. *

* * @return The ID of a core network. */ public String getCoreNetworkId() { return this.coreNetworkId; } /** *

* The ID of a core network. *

* * @param coreNetworkId * The ID of a core network. * @return Returns a reference to this object so that method calls can be chained together. */ public ConnectPeerSummary withCoreNetworkId(String coreNetworkId) { setCoreNetworkId(coreNetworkId); return this; } /** *

* The ID of a Connect peer attachment. *

* * @param connectAttachmentId * The ID of a Connect peer attachment. */ public void setConnectAttachmentId(String connectAttachmentId) { this.connectAttachmentId = connectAttachmentId; } /** *

* The ID of a Connect peer attachment. *

* * @return The ID of a Connect peer attachment. */ public String getConnectAttachmentId() { return this.connectAttachmentId; } /** *

* The ID of a Connect peer attachment. *

* * @param connectAttachmentId * The ID of a Connect peer attachment. * @return Returns a reference to this object so that method calls can be chained together. */ public ConnectPeerSummary withConnectAttachmentId(String connectAttachmentId) { setConnectAttachmentId(connectAttachmentId); return this; } /** *

* The ID of a Connect peer. *

* * @param connectPeerId * The ID of a Connect peer. */ public void setConnectPeerId(String connectPeerId) { this.connectPeerId = connectPeerId; } /** *

* The ID of a Connect peer. *

* * @return The ID of a Connect peer. */ public String getConnectPeerId() { return this.connectPeerId; } /** *

* The ID of a Connect peer. *

* * @param connectPeerId * The ID of a Connect peer. * @return Returns a reference to this object so that method calls can be chained together. */ public ConnectPeerSummary withConnectPeerId(String connectPeerId) { setConnectPeerId(connectPeerId); return this; } /** *

* The Region where the edge is located. *

* * @param edgeLocation * The Region where the edge is located. */ public void setEdgeLocation(String edgeLocation) { this.edgeLocation = edgeLocation; } /** *

* The Region where the edge is located. *

* * @return The Region where the edge is located. */ public String getEdgeLocation() { return this.edgeLocation; } /** *

* The Region where the edge is located. *

* * @param edgeLocation * The Region where the edge is located. * @return Returns a reference to this object so that method calls can be chained together. */ public ConnectPeerSummary withEdgeLocation(String edgeLocation) { setEdgeLocation(edgeLocation); return this; } /** *

* The state of a Connect peer. *

* * @param connectPeerState * The state of a Connect peer. * @see ConnectPeerState */ public void setConnectPeerState(String connectPeerState) { this.connectPeerState = connectPeerState; } /** *

* The state of a Connect peer. *

* * @return The state of a Connect peer. * @see ConnectPeerState */ public String getConnectPeerState() { return this.connectPeerState; } /** *

* The state of a Connect peer. *

* * @param connectPeerState * The state of a Connect peer. * @return Returns a reference to this object so that method calls can be chained together. * @see ConnectPeerState */ public ConnectPeerSummary withConnectPeerState(String connectPeerState) { setConnectPeerState(connectPeerState); return this; } /** *

* The state of a Connect peer. *

* * @param connectPeerState * The state of a Connect peer. * @return Returns a reference to this object so that method calls can be chained together. * @see ConnectPeerState */ public ConnectPeerSummary withConnectPeerState(ConnectPeerState connectPeerState) { this.connectPeerState = connectPeerState.toString(); return this; } /** *

* The timestamp when a Connect peer was created. *

* * @param createdAt * The timestamp when a Connect peer was created. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** *

* The timestamp when a Connect peer was created. *

* * @return The timestamp when a Connect peer was created. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** *

* The timestamp when a Connect peer was created. *

* * @param createdAt * The timestamp when a Connect peer was created. * @return Returns a reference to this object so that method calls can be chained together. */ public ConnectPeerSummary withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** *

* The list of key-value tags associated with the Connect peer summary. *

* * @return The list of key-value tags associated with the Connect peer summary. */ public java.util.List getTags() { return tags; } /** *

* The list of key-value tags associated with the Connect peer summary. *

* * @param tags * The list of key-value tags associated with the Connect peer summary. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

* The list of key-value tags associated with the Connect peer summary. *

*

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

* * @param tags * The list of key-value tags associated with the Connect peer summary. * @return Returns a reference to this object so that method calls can be chained together. */ public ConnectPeerSummary withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

* The list of key-value tags associated with the Connect peer summary. *

* * @param tags * The list of key-value tags associated with the Connect peer summary. * @return Returns a reference to this object so that method calls can be chained together. */ public ConnectPeerSummary withTags(java.util.Collection tags) { setTags(tags); return this; } /** *

* The subnet ARN for the Connect peer summary. *

* * @param subnetArn * The subnet ARN for the Connect peer summary. */ public void setSubnetArn(String subnetArn) { this.subnetArn = subnetArn; } /** *

* The subnet ARN for the Connect peer summary. *

* * @return The subnet ARN for the Connect peer summary. */ public String getSubnetArn() { return this.subnetArn; } /** *

* The subnet ARN for the Connect peer summary. *

* * @param subnetArn * The subnet ARN for the Connect peer summary. * @return Returns a reference to this object so that method calls can be chained together. */ public ConnectPeerSummary withSubnetArn(String subnetArn) { setSubnetArn(subnetArn); 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 (getCoreNetworkId() != null) sb.append("CoreNetworkId: ").append(getCoreNetworkId()).append(","); if (getConnectAttachmentId() != null) sb.append("ConnectAttachmentId: ").append(getConnectAttachmentId()).append(","); if (getConnectPeerId() != null) sb.append("ConnectPeerId: ").append(getConnectPeerId()).append(","); if (getEdgeLocation() != null) sb.append("EdgeLocation: ").append(getEdgeLocation()).append(","); if (getConnectPeerState() != null) sb.append("ConnectPeerState: ").append(getConnectPeerState()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getSubnetArn() != null) sb.append("SubnetArn: ").append(getSubnetArn()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ConnectPeerSummary == false) return false; ConnectPeerSummary other = (ConnectPeerSummary) obj; if (other.getCoreNetworkId() == null ^ this.getCoreNetworkId() == null) return false; if (other.getCoreNetworkId() != null && other.getCoreNetworkId().equals(this.getCoreNetworkId()) == false) return false; if (other.getConnectAttachmentId() == null ^ this.getConnectAttachmentId() == null) return false; if (other.getConnectAttachmentId() != null && other.getConnectAttachmentId().equals(this.getConnectAttachmentId()) == false) return false; if (other.getConnectPeerId() == null ^ this.getConnectPeerId() == null) return false; if (other.getConnectPeerId() != null && other.getConnectPeerId().equals(this.getConnectPeerId()) == false) return false; if (other.getEdgeLocation() == null ^ this.getEdgeLocation() == null) return false; if (other.getEdgeLocation() != null && other.getEdgeLocation().equals(this.getEdgeLocation()) == false) return false; if (other.getConnectPeerState() == null ^ this.getConnectPeerState() == null) return false; if (other.getConnectPeerState() != null && other.getConnectPeerState().equals(this.getConnectPeerState()) == false) return false; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getSubnetArn() == null ^ this.getSubnetArn() == null) return false; if (other.getSubnetArn() != null && other.getSubnetArn().equals(this.getSubnetArn()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCoreNetworkId() == null) ? 0 : getCoreNetworkId().hashCode()); hashCode = prime * hashCode + ((getConnectAttachmentId() == null) ? 0 : getConnectAttachmentId().hashCode()); hashCode = prime * hashCode + ((getConnectPeerId() == null) ? 0 : getConnectPeerId().hashCode()); hashCode = prime * hashCode + ((getEdgeLocation() == null) ? 0 : getEdgeLocation().hashCode()); hashCode = prime * hashCode + ((getConnectPeerState() == null) ? 0 : getConnectPeerState().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getSubnetArn() == null) ? 0 : getSubnetArn().hashCode()); return hashCode; } @Override public ConnectPeerSummary clone() { try { return (ConnectPeerSummary) 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.networkmanager.model.transform.ConnectPeerSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy