com.amazonaws.services.opsworkscm.model.DescribeNodeAssociationStatusResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-opsworkscm Show documentation
/*
* Copyright 2017-2022 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.opsworkscm.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeNodeAssociationStatusResult extends com.amazonaws.AmazonWebServiceResult implements Serializable,
Cloneable {
/**
*
* The status of the association or disassociation request.
*
*
* Possible values:
*
*
* -
*
* SUCCESS
: The association or disassociation succeeded.
*
*
* -
*
* FAILED
: The association or disassociation failed.
*
*
* -
*
* IN_PROGRESS
: The association or disassociation is still in progress.
*
*
*
*/
private String nodeAssociationStatus;
/**
*
* Attributes specific to the node association. In Puppet, the attibute PUPPET_NODE_CERT contains the signed
* certificate (the result of the CSR).
*
*/
private java.util.List engineAttributes;
/**
*
* The status of the association or disassociation request.
*
*
* Possible values:
*
*
* -
*
* SUCCESS
: The association or disassociation succeeded.
*
*
* -
*
* FAILED
: The association or disassociation failed.
*
*
* -
*
* IN_PROGRESS
: The association or disassociation is still in progress.
*
*
*
*
* @param nodeAssociationStatus
* The status of the association or disassociation request.
*
* Possible values:
*
*
* -
*
* SUCCESS
: The association or disassociation succeeded.
*
*
* -
*
* FAILED
: The association or disassociation failed.
*
*
* -
*
* IN_PROGRESS
: The association or disassociation is still in progress.
*
*
* @see NodeAssociationStatus
*/
public void setNodeAssociationStatus(String nodeAssociationStatus) {
this.nodeAssociationStatus = nodeAssociationStatus;
}
/**
*
* The status of the association or disassociation request.
*
*
* Possible values:
*
*
* -
*
* SUCCESS
: The association or disassociation succeeded.
*
*
* -
*
* FAILED
: The association or disassociation failed.
*
*
* -
*
* IN_PROGRESS
: The association or disassociation is still in progress.
*
*
*
*
* @return The status of the association or disassociation request.
*
* Possible values:
*
*
* -
*
* SUCCESS
: The association or disassociation succeeded.
*
*
* -
*
* FAILED
: The association or disassociation failed.
*
*
* -
*
* IN_PROGRESS
: The association or disassociation is still in progress.
*
*
* @see NodeAssociationStatus
*/
public String getNodeAssociationStatus() {
return this.nodeAssociationStatus;
}
/**
*
* The status of the association or disassociation request.
*
*
* Possible values:
*
*
* -
*
* SUCCESS
: The association or disassociation succeeded.
*
*
* -
*
* FAILED
: The association or disassociation failed.
*
*
* -
*
* IN_PROGRESS
: The association or disassociation is still in progress.
*
*
*
*
* @param nodeAssociationStatus
* The status of the association or disassociation request.
*
* Possible values:
*
*
* -
*
* SUCCESS
: The association or disassociation succeeded.
*
*
* -
*
* FAILED
: The association or disassociation failed.
*
*
* -
*
* IN_PROGRESS
: The association or disassociation is still in progress.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see NodeAssociationStatus
*/
public DescribeNodeAssociationStatusResult withNodeAssociationStatus(String nodeAssociationStatus) {
setNodeAssociationStatus(nodeAssociationStatus);
return this;
}
/**
*
* The status of the association or disassociation request.
*
*
* Possible values:
*
*
* -
*
* SUCCESS
: The association or disassociation succeeded.
*
*
* -
*
* FAILED
: The association or disassociation failed.
*
*
* -
*
* IN_PROGRESS
: The association or disassociation is still in progress.
*
*
*
*
* @param nodeAssociationStatus
* The status of the association or disassociation request.
*
* Possible values:
*
*
* -
*
* SUCCESS
: The association or disassociation succeeded.
*
*
* -
*
* FAILED
: The association or disassociation failed.
*
*
* -
*
* IN_PROGRESS
: The association or disassociation is still in progress.
*
*
* @see NodeAssociationStatus
*/
public void setNodeAssociationStatus(NodeAssociationStatus nodeAssociationStatus) {
withNodeAssociationStatus(nodeAssociationStatus);
}
/**
*
* The status of the association or disassociation request.
*
*
* Possible values:
*
*
* -
*
* SUCCESS
: The association or disassociation succeeded.
*
*
* -
*
* FAILED
: The association or disassociation failed.
*
*
* -
*
* IN_PROGRESS
: The association or disassociation is still in progress.
*
*
*
*
* @param nodeAssociationStatus
* The status of the association or disassociation request.
*
* Possible values:
*
*
* -
*
* SUCCESS
: The association or disassociation succeeded.
*
*
* -
*
* FAILED
: The association or disassociation failed.
*
*
* -
*
* IN_PROGRESS
: The association or disassociation is still in progress.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see NodeAssociationStatus
*/
public DescribeNodeAssociationStatusResult withNodeAssociationStatus(NodeAssociationStatus nodeAssociationStatus) {
this.nodeAssociationStatus = nodeAssociationStatus.toString();
return this;
}
/**
*
* Attributes specific to the node association. In Puppet, the attibute PUPPET_NODE_CERT contains the signed
* certificate (the result of the CSR).
*
*
* @return Attributes specific to the node association. In Puppet, the attibute PUPPET_NODE_CERT contains the signed
* certificate (the result of the CSR).
*/
public java.util.List getEngineAttributes() {
return engineAttributes;
}
/**
*
* Attributes specific to the node association. In Puppet, the attibute PUPPET_NODE_CERT contains the signed
* certificate (the result of the CSR).
*
*
* @param engineAttributes
* Attributes specific to the node association. In Puppet, the attibute PUPPET_NODE_CERT contains the signed
* certificate (the result of the CSR).
*/
public void setEngineAttributes(java.util.Collection engineAttributes) {
if (engineAttributes == null) {
this.engineAttributes = null;
return;
}
this.engineAttributes = new java.util.ArrayList(engineAttributes);
}
/**
*
* Attributes specific to the node association. In Puppet, the attibute PUPPET_NODE_CERT contains the signed
* certificate (the result of the CSR).
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setEngineAttributes(java.util.Collection)} or {@link #withEngineAttributes(java.util.Collection)} if you
* want to override the existing values.
*
*
* @param engineAttributes
* Attributes specific to the node association. In Puppet, the attibute PUPPET_NODE_CERT contains the signed
* certificate (the result of the CSR).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeNodeAssociationStatusResult withEngineAttributes(EngineAttribute... engineAttributes) {
if (this.engineAttributes == null) {
setEngineAttributes(new java.util.ArrayList(engineAttributes.length));
}
for (EngineAttribute ele : engineAttributes) {
this.engineAttributes.add(ele);
}
return this;
}
/**
*
* Attributes specific to the node association. In Puppet, the attibute PUPPET_NODE_CERT contains the signed
* certificate (the result of the CSR).
*
*
* @param engineAttributes
* Attributes specific to the node association. In Puppet, the attibute PUPPET_NODE_CERT contains the signed
* certificate (the result of the CSR).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeNodeAssociationStatusResult withEngineAttributes(java.util.Collection engineAttributes) {
setEngineAttributes(engineAttributes);
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 (getNodeAssociationStatus() != null)
sb.append("NodeAssociationStatus: ").append(getNodeAssociationStatus()).append(",");
if (getEngineAttributes() != null)
sb.append("EngineAttributes: ").append(getEngineAttributes());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeNodeAssociationStatusResult == false)
return false;
DescribeNodeAssociationStatusResult other = (DescribeNodeAssociationStatusResult) obj;
if (other.getNodeAssociationStatus() == null ^ this.getNodeAssociationStatus() == null)
return false;
if (other.getNodeAssociationStatus() != null && other.getNodeAssociationStatus().equals(this.getNodeAssociationStatus()) == false)
return false;
if (other.getEngineAttributes() == null ^ this.getEngineAttributes() == null)
return false;
if (other.getEngineAttributes() != null && other.getEngineAttributes().equals(this.getEngineAttributes()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getNodeAssociationStatus() == null) ? 0 : getNodeAssociationStatus().hashCode());
hashCode = prime * hashCode + ((getEngineAttributes() == null) ? 0 : getEngineAttributes().hashCode());
return hashCode;
}
@Override
public DescribeNodeAssociationStatusResult clone() {
try {
return (DescribeNodeAssociationStatusResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}