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

com.amazonaws.services.simplesystemsmanagement.model.InstanceAssociation Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Simple Systems Management Service holds the client classes that are used for communicating with the AWS Simple Systems Management Service

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.simplesystemsmanagement.model;

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

/**
 * 

* One or more association documents on the managed node. *

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

* The association ID. *

*/ private String associationId; /** *

* The managed node ID. *

*/ private String instanceId; /** *

* The content of the association document for the managed nodes. *

*/ private String content; /** *

* Version information for the association on the managed node. *

*/ private String associationVersion; /** *

* The association ID. *

* * @param associationId * The association ID. */ public void setAssociationId(String associationId) { this.associationId = associationId; } /** *

* The association ID. *

* * @return The association ID. */ public String getAssociationId() { return this.associationId; } /** *

* The association ID. *

* * @param associationId * The association ID. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceAssociation withAssociationId(String associationId) { setAssociationId(associationId); return this; } /** *

* The managed node ID. *

* * @param instanceId * The managed node ID. */ public void setInstanceId(String instanceId) { this.instanceId = instanceId; } /** *

* The managed node ID. *

* * @return The managed node ID. */ public String getInstanceId() { return this.instanceId; } /** *

* The managed node ID. *

* * @param instanceId * The managed node ID. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceAssociation withInstanceId(String instanceId) { setInstanceId(instanceId); return this; } /** *

* The content of the association document for the managed nodes. *

* * @param content * The content of the association document for the managed nodes. */ public void setContent(String content) { this.content = content; } /** *

* The content of the association document for the managed nodes. *

* * @return The content of the association document for the managed nodes. */ public String getContent() { return this.content; } /** *

* The content of the association document for the managed nodes. *

* * @param content * The content of the association document for the managed nodes. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceAssociation withContent(String content) { setContent(content); return this; } /** *

* Version information for the association on the managed node. *

* * @param associationVersion * Version information for the association on the managed node. */ public void setAssociationVersion(String associationVersion) { this.associationVersion = associationVersion; } /** *

* Version information for the association on the managed node. *

* * @return Version information for the association on the managed node. */ public String getAssociationVersion() { return this.associationVersion; } /** *

* Version information for the association on the managed node. *

* * @param associationVersion * Version information for the association on the managed node. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceAssociation withAssociationVersion(String associationVersion) { setAssociationVersion(associationVersion); 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 (getAssociationId() != null) sb.append("AssociationId: ").append(getAssociationId()).append(","); if (getInstanceId() != null) sb.append("InstanceId: ").append(getInstanceId()).append(","); if (getContent() != null) sb.append("Content: ").append(getContent()).append(","); if (getAssociationVersion() != null) sb.append("AssociationVersion: ").append(getAssociationVersion()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof InstanceAssociation == false) return false; InstanceAssociation other = (InstanceAssociation) obj; if (other.getAssociationId() == null ^ this.getAssociationId() == null) return false; if (other.getAssociationId() != null && other.getAssociationId().equals(this.getAssociationId()) == false) return false; if (other.getInstanceId() == null ^ this.getInstanceId() == null) return false; if (other.getInstanceId() != null && other.getInstanceId().equals(this.getInstanceId()) == false) return false; if (other.getContent() == null ^ this.getContent() == null) return false; if (other.getContent() != null && other.getContent().equals(this.getContent()) == false) return false; if (other.getAssociationVersion() == null ^ this.getAssociationVersion() == null) return false; if (other.getAssociationVersion() != null && other.getAssociationVersion().equals(this.getAssociationVersion()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAssociationId() == null) ? 0 : getAssociationId().hashCode()); hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); hashCode = prime * hashCode + ((getContent() == null) ? 0 : getContent().hashCode()); hashCode = prime * hashCode + ((getAssociationVersion() == null) ? 0 : getAssociationVersion().hashCode()); return hashCode; } @Override public InstanceAssociation clone() { try { return (InstanceAssociation) 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.simplesystemsmanagement.model.transform.InstanceAssociationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy