com.amazonaws.services.networkmanager.model.Attachment 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.networkmanager.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Describes a core network attachment.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class Attachment implements Serializable, Cloneable, StructuredPojo {
/**
*
* The ID of a core network.
*
*/
private String coreNetworkId;
/**
*
* The ARN of a core network.
*
*/
private String coreNetworkArn;
/**
*
* The ID of the attachment.
*
*/
private String attachmentId;
/**
*
* The ID of the attachment account owner.
*
*/
private String ownerAccountId;
/**
*
* The type of attachment.
*
*/
private String attachmentType;
/**
*
* The state of the attachment.
*
*/
private String state;
/**
*
* The Region where the edge is located.
*
*/
private String edgeLocation;
/**
*
* The attachment resource ARN.
*
*/
private String resourceArn;
/**
*
* The policy rule number associated with the attachment.
*
*/
private Integer attachmentPolicyRuleNumber;
/**
*
* The name of the segment attachment.
*
*/
private String segmentName;
/**
*
* The name of the network function group.
*
*/
private String networkFunctionGroupName;
/**
*
* The tags associated with the attachment.
*
*/
private java.util.List tags;
/**
*
* The attachment to move from one segment to another.
*
*/
private ProposedSegmentChange proposedSegmentChange;
/**
*
* Describes a proposed change to a network function group associated with the attachment.
*
*/
private ProposedNetworkFunctionGroupChange proposedNetworkFunctionGroupChange;
/**
*
* The timestamp when the attachment was created.
*
*/
private java.util.Date createdAt;
/**
*
* The timestamp when the attachment was last updated.
*
*/
private java.util.Date updatedAt;
/**
*
* Describes the error associated with the attachment request.
*
*/
private java.util.List lastModificationErrors;
/**
*
* 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 Attachment withCoreNetworkId(String coreNetworkId) {
setCoreNetworkId(coreNetworkId);
return this;
}
/**
*
* The ARN of a core network.
*
*
* @param coreNetworkArn
* The ARN of a core network.
*/
public void setCoreNetworkArn(String coreNetworkArn) {
this.coreNetworkArn = coreNetworkArn;
}
/**
*
* The ARN of a core network.
*
*
* @return The ARN of a core network.
*/
public String getCoreNetworkArn() {
return this.coreNetworkArn;
}
/**
*
* The ARN of a core network.
*
*
* @param coreNetworkArn
* The ARN of a core network.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Attachment withCoreNetworkArn(String coreNetworkArn) {
setCoreNetworkArn(coreNetworkArn);
return this;
}
/**
*
* The ID of the attachment.
*
*
* @param attachmentId
* The ID of the attachment.
*/
public void setAttachmentId(String attachmentId) {
this.attachmentId = attachmentId;
}
/**
*
* The ID of the attachment.
*
*
* @return The ID of the attachment.
*/
public String getAttachmentId() {
return this.attachmentId;
}
/**
*
* The ID of the attachment.
*
*
* @param attachmentId
* The ID of the attachment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Attachment withAttachmentId(String attachmentId) {
setAttachmentId(attachmentId);
return this;
}
/**
*
* The ID of the attachment account owner.
*
*
* @param ownerAccountId
* The ID of the attachment account owner.
*/
public void setOwnerAccountId(String ownerAccountId) {
this.ownerAccountId = ownerAccountId;
}
/**
*
* The ID of the attachment account owner.
*
*
* @return The ID of the attachment account owner.
*/
public String getOwnerAccountId() {
return this.ownerAccountId;
}
/**
*
* The ID of the attachment account owner.
*
*
* @param ownerAccountId
* The ID of the attachment account owner.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Attachment withOwnerAccountId(String ownerAccountId) {
setOwnerAccountId(ownerAccountId);
return this;
}
/**
*
* The type of attachment.
*
*
* @param attachmentType
* The type of attachment.
* @see AttachmentType
*/
public void setAttachmentType(String attachmentType) {
this.attachmentType = attachmentType;
}
/**
*
* The type of attachment.
*
*
* @return The type of attachment.
* @see AttachmentType
*/
public String getAttachmentType() {
return this.attachmentType;
}
/**
*
* The type of attachment.
*
*
* @param attachmentType
* The type of attachment.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AttachmentType
*/
public Attachment withAttachmentType(String attachmentType) {
setAttachmentType(attachmentType);
return this;
}
/**
*
* The type of attachment.
*
*
* @param attachmentType
* The type of attachment.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AttachmentType
*/
public Attachment withAttachmentType(AttachmentType attachmentType) {
this.attachmentType = attachmentType.toString();
return this;
}
/**
*
* The state of the attachment.
*
*
* @param state
* The state of the attachment.
* @see AttachmentState
*/
public void setState(String state) {
this.state = state;
}
/**
*
* The state of the attachment.
*
*
* @return The state of the attachment.
* @see AttachmentState
*/
public String getState() {
return this.state;
}
/**
*
* The state of the attachment.
*
*
* @param state
* The state of the attachment.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AttachmentState
*/
public Attachment withState(String state) {
setState(state);
return this;
}
/**
*
* The state of the attachment.
*
*
* @param state
* The state of the attachment.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AttachmentState
*/
public Attachment withState(AttachmentState state) {
this.state = state.toString();
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 Attachment withEdgeLocation(String edgeLocation) {
setEdgeLocation(edgeLocation);
return this;
}
/**
*
* The attachment resource ARN.
*
*
* @param resourceArn
* The attachment resource ARN.
*/
public void setResourceArn(String resourceArn) {
this.resourceArn = resourceArn;
}
/**
*
* The attachment resource ARN.
*
*
* @return The attachment resource ARN.
*/
public String getResourceArn() {
return this.resourceArn;
}
/**
*
* The attachment resource ARN.
*
*
* @param resourceArn
* The attachment resource ARN.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Attachment withResourceArn(String resourceArn) {
setResourceArn(resourceArn);
return this;
}
/**
*
* The policy rule number associated with the attachment.
*
*
* @param attachmentPolicyRuleNumber
* The policy rule number associated with the attachment.
*/
public void setAttachmentPolicyRuleNumber(Integer attachmentPolicyRuleNumber) {
this.attachmentPolicyRuleNumber = attachmentPolicyRuleNumber;
}
/**
*
* The policy rule number associated with the attachment.
*
*
* @return The policy rule number associated with the attachment.
*/
public Integer getAttachmentPolicyRuleNumber() {
return this.attachmentPolicyRuleNumber;
}
/**
*
* The policy rule number associated with the attachment.
*
*
* @param attachmentPolicyRuleNumber
* The policy rule number associated with the attachment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Attachment withAttachmentPolicyRuleNumber(Integer attachmentPolicyRuleNumber) {
setAttachmentPolicyRuleNumber(attachmentPolicyRuleNumber);
return this;
}
/**
*
* The name of the segment attachment.
*
*
* @param segmentName
* The name of the segment attachment.
*/
public void setSegmentName(String segmentName) {
this.segmentName = segmentName;
}
/**
*
* The name of the segment attachment.
*
*
* @return The name of the segment attachment.
*/
public String getSegmentName() {
return this.segmentName;
}
/**
*
* The name of the segment attachment.
*
*
* @param segmentName
* The name of the segment attachment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Attachment withSegmentName(String segmentName) {
setSegmentName(segmentName);
return this;
}
/**
*
* The name of the network function group.
*
*
* @param networkFunctionGroupName
* The name of the network function group.
*/
public void setNetworkFunctionGroupName(String networkFunctionGroupName) {
this.networkFunctionGroupName = networkFunctionGroupName;
}
/**
*
* The name of the network function group.
*
*
* @return The name of the network function group.
*/
public String getNetworkFunctionGroupName() {
return this.networkFunctionGroupName;
}
/**
*
* The name of the network function group.
*
*
* @param networkFunctionGroupName
* The name of the network function group.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Attachment withNetworkFunctionGroupName(String networkFunctionGroupName) {
setNetworkFunctionGroupName(networkFunctionGroupName);
return this;
}
/**
*
* The tags associated with the attachment.
*
*
* @return The tags associated with the attachment.
*/
public java.util.List getTags() {
return tags;
}
/**
*
* The tags associated with the attachment.
*
*
* @param tags
* The tags associated with the attachment.
*/
public void setTags(java.util.Collection tags) {
if (tags == null) {
this.tags = null;
return;
}
this.tags = new java.util.ArrayList(tags);
}
/**
*
* The tags associated with the attachment.
*
*
* 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 tags associated with the attachment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Attachment 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 tags associated with the attachment.
*
*
* @param tags
* The tags associated with the attachment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Attachment withTags(java.util.Collection tags) {
setTags(tags);
return this;
}
/**
*
* The attachment to move from one segment to another.
*
*
* @param proposedSegmentChange
* The attachment to move from one segment to another.
*/
public void setProposedSegmentChange(ProposedSegmentChange proposedSegmentChange) {
this.proposedSegmentChange = proposedSegmentChange;
}
/**
*
* The attachment to move from one segment to another.
*
*
* @return The attachment to move from one segment to another.
*/
public ProposedSegmentChange getProposedSegmentChange() {
return this.proposedSegmentChange;
}
/**
*
* The attachment to move from one segment to another.
*
*
* @param proposedSegmentChange
* The attachment to move from one segment to another.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Attachment withProposedSegmentChange(ProposedSegmentChange proposedSegmentChange) {
setProposedSegmentChange(proposedSegmentChange);
return this;
}
/**
*
* Describes a proposed change to a network function group associated with the attachment.
*
*
* @param proposedNetworkFunctionGroupChange
* Describes a proposed change to a network function group associated with the attachment.
*/
public void setProposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChange proposedNetworkFunctionGroupChange) {
this.proposedNetworkFunctionGroupChange = proposedNetworkFunctionGroupChange;
}
/**
*
* Describes a proposed change to a network function group associated with the attachment.
*
*
* @return Describes a proposed change to a network function group associated with the attachment.
*/
public ProposedNetworkFunctionGroupChange getProposedNetworkFunctionGroupChange() {
return this.proposedNetworkFunctionGroupChange;
}
/**
*
* Describes a proposed change to a network function group associated with the attachment.
*
*
* @param proposedNetworkFunctionGroupChange
* Describes a proposed change to a network function group associated with the attachment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Attachment withProposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChange proposedNetworkFunctionGroupChange) {
setProposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange);
return this;
}
/**
*
* The timestamp when the attachment was created.
*
*
* @param createdAt
* The timestamp when the attachment was created.
*/
public void setCreatedAt(java.util.Date createdAt) {
this.createdAt = createdAt;
}
/**
*
* The timestamp when the attachment was created.
*
*
* @return The timestamp when the attachment was created.
*/
public java.util.Date getCreatedAt() {
return this.createdAt;
}
/**
*
* The timestamp when the attachment was created.
*
*
* @param createdAt
* The timestamp when the attachment was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Attachment withCreatedAt(java.util.Date createdAt) {
setCreatedAt(createdAt);
return this;
}
/**
*
* The timestamp when the attachment was last updated.
*
*
* @param updatedAt
* The timestamp when the attachment was last updated.
*/
public void setUpdatedAt(java.util.Date updatedAt) {
this.updatedAt = updatedAt;
}
/**
*
* The timestamp when the attachment was last updated.
*
*
* @return The timestamp when the attachment was last updated.
*/
public java.util.Date getUpdatedAt() {
return this.updatedAt;
}
/**
*
* The timestamp when the attachment was last updated.
*
*
* @param updatedAt
* The timestamp when the attachment was last updated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Attachment withUpdatedAt(java.util.Date updatedAt) {
setUpdatedAt(updatedAt);
return this;
}
/**
*
* Describes the error associated with the attachment request.
*
*
* @return Describes the error associated with the attachment request.
*/
public java.util.List getLastModificationErrors() {
return lastModificationErrors;
}
/**
*
* Describes the error associated with the attachment request.
*
*
* @param lastModificationErrors
* Describes the error associated with the attachment request.
*/
public void setLastModificationErrors(java.util.Collection lastModificationErrors) {
if (lastModificationErrors == null) {
this.lastModificationErrors = null;
return;
}
this.lastModificationErrors = new java.util.ArrayList(lastModificationErrors);
}
/**
*
* Describes the error associated with the attachment request.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setLastModificationErrors(java.util.Collection)} or
* {@link #withLastModificationErrors(java.util.Collection)} if you want to override the existing values.
*
*
* @param lastModificationErrors
* Describes the error associated with the attachment request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Attachment withLastModificationErrors(AttachmentError... lastModificationErrors) {
if (this.lastModificationErrors == null) {
setLastModificationErrors(new java.util.ArrayList(lastModificationErrors.length));
}
for (AttachmentError ele : lastModificationErrors) {
this.lastModificationErrors.add(ele);
}
return this;
}
/**
*
* Describes the error associated with the attachment request.
*
*
* @param lastModificationErrors
* Describes the error associated with the attachment request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Attachment withLastModificationErrors(java.util.Collection lastModificationErrors) {
setLastModificationErrors(lastModificationErrors);
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 (getCoreNetworkArn() != null)
sb.append("CoreNetworkArn: ").append(getCoreNetworkArn()).append(",");
if (getAttachmentId() != null)
sb.append("AttachmentId: ").append(getAttachmentId()).append(",");
if (getOwnerAccountId() != null)
sb.append("OwnerAccountId: ").append(getOwnerAccountId()).append(",");
if (getAttachmentType() != null)
sb.append("AttachmentType: ").append(getAttachmentType()).append(",");
if (getState() != null)
sb.append("State: ").append(getState()).append(",");
if (getEdgeLocation() != null)
sb.append("EdgeLocation: ").append(getEdgeLocation()).append(",");
if (getResourceArn() != null)
sb.append("ResourceArn: ").append(getResourceArn()).append(",");
if (getAttachmentPolicyRuleNumber() != null)
sb.append("AttachmentPolicyRuleNumber: ").append(getAttachmentPolicyRuleNumber()).append(",");
if (getSegmentName() != null)
sb.append("SegmentName: ").append(getSegmentName()).append(",");
if (getNetworkFunctionGroupName() != null)
sb.append("NetworkFunctionGroupName: ").append(getNetworkFunctionGroupName()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags()).append(",");
if (getProposedSegmentChange() != null)
sb.append("ProposedSegmentChange: ").append(getProposedSegmentChange()).append(",");
if (getProposedNetworkFunctionGroupChange() != null)
sb.append("ProposedNetworkFunctionGroupChange: ").append(getProposedNetworkFunctionGroupChange()).append(",");
if (getCreatedAt() != null)
sb.append("CreatedAt: ").append(getCreatedAt()).append(",");
if (getUpdatedAt() != null)
sb.append("UpdatedAt: ").append(getUpdatedAt()).append(",");
if (getLastModificationErrors() != null)
sb.append("LastModificationErrors: ").append(getLastModificationErrors());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof Attachment == false)
return false;
Attachment other = (Attachment) obj;
if (other.getCoreNetworkId() == null ^ this.getCoreNetworkId() == null)
return false;
if (other.getCoreNetworkId() != null && other.getCoreNetworkId().equals(this.getCoreNetworkId()) == false)
return false;
if (other.getCoreNetworkArn() == null ^ this.getCoreNetworkArn() == null)
return false;
if (other.getCoreNetworkArn() != null && other.getCoreNetworkArn().equals(this.getCoreNetworkArn()) == false)
return false;
if (other.getAttachmentId() == null ^ this.getAttachmentId() == null)
return false;
if (other.getAttachmentId() != null && other.getAttachmentId().equals(this.getAttachmentId()) == false)
return false;
if (other.getOwnerAccountId() == null ^ this.getOwnerAccountId() == null)
return false;
if (other.getOwnerAccountId() != null && other.getOwnerAccountId().equals(this.getOwnerAccountId()) == false)
return false;
if (other.getAttachmentType() == null ^ this.getAttachmentType() == null)
return false;
if (other.getAttachmentType() != null && other.getAttachmentType().equals(this.getAttachmentType()) == false)
return false;
if (other.getState() == null ^ this.getState() == null)
return false;
if (other.getState() != null && other.getState().equals(this.getState()) == 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.getResourceArn() == null ^ this.getResourceArn() == null)
return false;
if (other.getResourceArn() != null && other.getResourceArn().equals(this.getResourceArn()) == false)
return false;
if (other.getAttachmentPolicyRuleNumber() == null ^ this.getAttachmentPolicyRuleNumber() == null)
return false;
if (other.getAttachmentPolicyRuleNumber() != null && other.getAttachmentPolicyRuleNumber().equals(this.getAttachmentPolicyRuleNumber()) == false)
return false;
if (other.getSegmentName() == null ^ this.getSegmentName() == null)
return false;
if (other.getSegmentName() != null && other.getSegmentName().equals(this.getSegmentName()) == false)
return false;
if (other.getNetworkFunctionGroupName() == null ^ this.getNetworkFunctionGroupName() == null)
return false;
if (other.getNetworkFunctionGroupName() != null && other.getNetworkFunctionGroupName().equals(this.getNetworkFunctionGroupName()) == 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.getProposedSegmentChange() == null ^ this.getProposedSegmentChange() == null)
return false;
if (other.getProposedSegmentChange() != null && other.getProposedSegmentChange().equals(this.getProposedSegmentChange()) == false)
return false;
if (other.getProposedNetworkFunctionGroupChange() == null ^ this.getProposedNetworkFunctionGroupChange() == null)
return false;
if (other.getProposedNetworkFunctionGroupChange() != null
&& other.getProposedNetworkFunctionGroupChange().equals(this.getProposedNetworkFunctionGroupChange()) == 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.getUpdatedAt() == null ^ this.getUpdatedAt() == null)
return false;
if (other.getUpdatedAt() != null && other.getUpdatedAt().equals(this.getUpdatedAt()) == false)
return false;
if (other.getLastModificationErrors() == null ^ this.getLastModificationErrors() == null)
return false;
if (other.getLastModificationErrors() != null && other.getLastModificationErrors().equals(this.getLastModificationErrors()) == 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 + ((getCoreNetworkArn() == null) ? 0 : getCoreNetworkArn().hashCode());
hashCode = prime * hashCode + ((getAttachmentId() == null) ? 0 : getAttachmentId().hashCode());
hashCode = prime * hashCode + ((getOwnerAccountId() == null) ? 0 : getOwnerAccountId().hashCode());
hashCode = prime * hashCode + ((getAttachmentType() == null) ? 0 : getAttachmentType().hashCode());
hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode());
hashCode = prime * hashCode + ((getEdgeLocation() == null) ? 0 : getEdgeLocation().hashCode());
hashCode = prime * hashCode + ((getResourceArn() == null) ? 0 : getResourceArn().hashCode());
hashCode = prime * hashCode + ((getAttachmentPolicyRuleNumber() == null) ? 0 : getAttachmentPolicyRuleNumber().hashCode());
hashCode = prime * hashCode + ((getSegmentName() == null) ? 0 : getSegmentName().hashCode());
hashCode = prime * hashCode + ((getNetworkFunctionGroupName() == null) ? 0 : getNetworkFunctionGroupName().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime * hashCode + ((getProposedSegmentChange() == null) ? 0 : getProposedSegmentChange().hashCode());
hashCode = prime * hashCode + ((getProposedNetworkFunctionGroupChange() == null) ? 0 : getProposedNetworkFunctionGroupChange().hashCode());
hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
hashCode = prime * hashCode + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
hashCode = prime * hashCode + ((getLastModificationErrors() == null) ? 0 : getLastModificationErrors().hashCode());
return hashCode;
}
@Override
public Attachment clone() {
try {
return (Attachment) 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.AttachmentMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}