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

com.amazonaws.services.simplesystemsmanagement.model.AssociationExecutionTarget 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.simplesystemsmanagement.model;

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

/**
 * 

* Includes information about the specified association execution. *

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

* The association ID. *

*/ private String associationId; /** *

* The association version. *

*/ private String associationVersion; /** *

* The execution ID. *

*/ private String executionId; /** *

* The resource ID, for example, the managed node ID where the association ran. *

*/ private String resourceId; /** *

* The resource type, for example, EC2. *

*/ private String resourceType; /** *

* The association execution status. *

*/ private String status; /** *

* Detailed information about the execution status. *

*/ private String detailedStatus; /** *

* The date of the last execution. *

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

* The location where the association details are saved. *

*/ private OutputSource outputSource; /** *

* 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 AssociationExecutionTarget withAssociationId(String associationId) { setAssociationId(associationId); return this; } /** *

* The association version. *

* * @param associationVersion * The association version. */ public void setAssociationVersion(String associationVersion) { this.associationVersion = associationVersion; } /** *

* The association version. *

* * @return The association version. */ public String getAssociationVersion() { return this.associationVersion; } /** *

* The association version. *

* * @param associationVersion * The association version. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociationExecutionTarget withAssociationVersion(String associationVersion) { setAssociationVersion(associationVersion); return this; } /** *

* The execution ID. *

* * @param executionId * The execution ID. */ public void setExecutionId(String executionId) { this.executionId = executionId; } /** *

* The execution ID. *

* * @return The execution ID. */ public String getExecutionId() { return this.executionId; } /** *

* The execution ID. *

* * @param executionId * The execution ID. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociationExecutionTarget withExecutionId(String executionId) { setExecutionId(executionId); return this; } /** *

* The resource ID, for example, the managed node ID where the association ran. *

* * @param resourceId * The resource ID, for example, the managed node ID where the association ran. */ public void setResourceId(String resourceId) { this.resourceId = resourceId; } /** *

* The resource ID, for example, the managed node ID where the association ran. *

* * @return The resource ID, for example, the managed node ID where the association ran. */ public String getResourceId() { return this.resourceId; } /** *

* The resource ID, for example, the managed node ID where the association ran. *

* * @param resourceId * The resource ID, for example, the managed node ID where the association ran. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociationExecutionTarget withResourceId(String resourceId) { setResourceId(resourceId); return this; } /** *

* The resource type, for example, EC2. *

* * @param resourceType * The resource type, for example, EC2. */ public void setResourceType(String resourceType) { this.resourceType = resourceType; } /** *

* The resource type, for example, EC2. *

* * @return The resource type, for example, EC2. */ public String getResourceType() { return this.resourceType; } /** *

* The resource type, for example, EC2. *

* * @param resourceType * The resource type, for example, EC2. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociationExecutionTarget withResourceType(String resourceType) { setResourceType(resourceType); return this; } /** *

* The association execution status. *

* * @param status * The association execution status. */ public void setStatus(String status) { this.status = status; } /** *

* The association execution status. *

* * @return The association execution status. */ public String getStatus() { return this.status; } /** *

* The association execution status. *

* * @param status * The association execution status. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociationExecutionTarget withStatus(String status) { setStatus(status); return this; } /** *

* Detailed information about the execution status. *

* * @param detailedStatus * Detailed information about the execution status. */ public void setDetailedStatus(String detailedStatus) { this.detailedStatus = detailedStatus; } /** *

* Detailed information about the execution status. *

* * @return Detailed information about the execution status. */ public String getDetailedStatus() { return this.detailedStatus; } /** *

* Detailed information about the execution status. *

* * @param detailedStatus * Detailed information about the execution status. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociationExecutionTarget withDetailedStatus(String detailedStatus) { setDetailedStatus(detailedStatus); return this; } /** *

* The date of the last execution. *

* * @param lastExecutionDate * The date of the last execution. */ public void setLastExecutionDate(java.util.Date lastExecutionDate) { this.lastExecutionDate = lastExecutionDate; } /** *

* The date of the last execution. *

* * @return The date of the last execution. */ public java.util.Date getLastExecutionDate() { return this.lastExecutionDate; } /** *

* The date of the last execution. *

* * @param lastExecutionDate * The date of the last execution. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociationExecutionTarget withLastExecutionDate(java.util.Date lastExecutionDate) { setLastExecutionDate(lastExecutionDate); return this; } /** *

* The location where the association details are saved. *

* * @param outputSource * The location where the association details are saved. */ public void setOutputSource(OutputSource outputSource) { this.outputSource = outputSource; } /** *

* The location where the association details are saved. *

* * @return The location where the association details are saved. */ public OutputSource getOutputSource() { return this.outputSource; } /** *

* The location where the association details are saved. *

* * @param outputSource * The location where the association details are saved. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociationExecutionTarget withOutputSource(OutputSource outputSource) { setOutputSource(outputSource); 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 (getAssociationVersion() != null) sb.append("AssociationVersion: ").append(getAssociationVersion()).append(","); if (getExecutionId() != null) sb.append("ExecutionId: ").append(getExecutionId()).append(","); if (getResourceId() != null) sb.append("ResourceId: ").append(getResourceId()).append(","); if (getResourceType() != null) sb.append("ResourceType: ").append(getResourceType()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getDetailedStatus() != null) sb.append("DetailedStatus: ").append(getDetailedStatus()).append(","); if (getLastExecutionDate() != null) sb.append("LastExecutionDate: ").append(getLastExecutionDate()).append(","); if (getOutputSource() != null) sb.append("OutputSource: ").append(getOutputSource()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AssociationExecutionTarget == false) return false; AssociationExecutionTarget other = (AssociationExecutionTarget) obj; if (other.getAssociationId() == null ^ this.getAssociationId() == null) return false; if (other.getAssociationId() != null && other.getAssociationId().equals(this.getAssociationId()) == false) return false; if (other.getAssociationVersion() == null ^ this.getAssociationVersion() == null) return false; if (other.getAssociationVersion() != null && other.getAssociationVersion().equals(this.getAssociationVersion()) == false) return false; if (other.getExecutionId() == null ^ this.getExecutionId() == null) return false; if (other.getExecutionId() != null && other.getExecutionId().equals(this.getExecutionId()) == false) return false; if (other.getResourceId() == null ^ this.getResourceId() == null) return false; if (other.getResourceId() != null && other.getResourceId().equals(this.getResourceId()) == false) return false; if (other.getResourceType() == null ^ this.getResourceType() == null) return false; if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getDetailedStatus() == null ^ this.getDetailedStatus() == null) return false; if (other.getDetailedStatus() != null && other.getDetailedStatus().equals(this.getDetailedStatus()) == false) return false; if (other.getLastExecutionDate() == null ^ this.getLastExecutionDate() == null) return false; if (other.getLastExecutionDate() != null && other.getLastExecutionDate().equals(this.getLastExecutionDate()) == false) return false; if (other.getOutputSource() == null ^ this.getOutputSource() == null) return false; if (other.getOutputSource() != null && other.getOutputSource().equals(this.getOutputSource()) == 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 + ((getAssociationVersion() == null) ? 0 : getAssociationVersion().hashCode()); hashCode = prime * hashCode + ((getExecutionId() == null) ? 0 : getExecutionId().hashCode()); hashCode = prime * hashCode + ((getResourceId() == null) ? 0 : getResourceId().hashCode()); hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getDetailedStatus() == null) ? 0 : getDetailedStatus().hashCode()); hashCode = prime * hashCode + ((getLastExecutionDate() == null) ? 0 : getLastExecutionDate().hashCode()); hashCode = prime * hashCode + ((getOutputSource() == null) ? 0 : getOutputSource().hashCode()); return hashCode; } @Override public AssociationExecutionTarget clone() { try { return (AssociationExecutionTarget) 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.AssociationExecutionTargetMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy