/* * Copyright 2012-2017 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; /** * <p> * Describes a filter for a specific list of instances. * </p> * * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/InstanceInformation" target="_top">AWS API * Documentation</a> */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class InstanceInformation implements Serializable, Cloneable, StructuredPojo { /** * <p> * The instance ID. * </p> */ private String instanceId; /** * <p> * Connection status of the SSM Agent. * </p> */ private String pingStatus; /** * <p> * The date and time when agent last pinged Systems Manager service. * </p> */ private java.util.Date lastPingDateTime; /** * <p> * The version of the SSM Agent running on your Linux instance. * </p> */ private String agentVersion; /** * <p> * Indicates whether latest version of the SSM Agent is running on your instance. * </p> */ private Boolean isLatestVersion; /** * <p> * The operating system platform type. * </p> */ private String platformType; /** * <p> * The name of the operating system platform running on your instance. * </p> */ private String platformName; /** * <p> * The version of the OS platform running on your instance. * </p> */ private String platformVersion; /** * <p> * The activation ID created by Systems Manager when the server or VM was registered. * </p> */ private String activationId; /** * <p> * The Amazon Identity and Access Management (IAM) role assigned to EC2 instances or managed instances. * </p> */ private String iamRole; /** * <p> * The date the server or VM was registered with AWS as a managed instance. * </p> */ private java.util.Date registrationDate; /** * <p> * The type of instance. Instances are either EC2 instances or managed instances. * </p> */ private String resourceType; /** * <p> * The name of the managed instance. * </p> */ private String name; /** * <p> * The IP address of the managed instance. * </p> */ private String iPAddress; /** * <p> * The fully qualified host name of the managed instance. * </p> */ private String computerName; /** * <p> * The status of the association. * </p> */ private String associationStatus; /** * <p> * The date the association was last executed. * </p> */ private java.util.Date lastAssociationExecutionDate; /** * <p> * The last date the association was successfully run. * </p> */ private java.util.Date lastSuccessfulAssociationExecutionDate; /** * <p> * Information about the association. * </p> */ private InstanceAggregatedAssociationOverview associationOverview; /** * <p> * The instance ID. * </p> * * @param instanceId * The instance ID. */ public void setInstanceId(String instanceId) { this.instanceId = instanceId; } /** * <p> * The instance ID. * </p> * * @return The instance ID. */ public String getInstanceId() { return this.instanceId; } /** * <p> * The instance ID. * </p> * * @param instanceId * The instance ID. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceInformation withInstanceId(String instanceId) { setInstanceId(instanceId); return this; } /** * <p> * Connection status of the SSM Agent. * </p> * * @param pingStatus * Connection status of the SSM Agent. * @see PingStatus */ public void setPingStatus(String pingStatus) { this.pingStatus = pingStatus; } /** * <p> * Connection status of the SSM Agent. * </p> * * @return Connection status of the SSM Agent. * @see PingStatus */ public String getPingStatus() { return this.pingStatus; } /** * <p> * Connection status of the SSM Agent. * </p> * * @param pingStatus * Connection status of the SSM Agent. * @return Returns a reference to this object so that method calls can be chained together. * @see PingStatus */ public InstanceInformation withPingStatus(String pingStatus) { setPingStatus(pingStatus); return this; } /** * <p> * Connection status of the SSM Agent. * </p> * * @param pingStatus * Connection status of the SSM Agent. * @see PingStatus */ public void setPingStatus(PingStatus pingStatus) { this.pingStatus = pingStatus.toString(); } /** * <p> * Connection status of the SSM Agent. * </p> * * @param pingStatus * Connection status of the SSM Agent. * @return Returns a reference to this object so that method calls can be chained together. * @see PingStatus */ public InstanceInformation withPingStatus(PingStatus pingStatus) { setPingStatus(pingStatus); return this; } /** * <p> * The date and time when agent last pinged Systems Manager service. * </p> * * @param lastPingDateTime * The date and time when agent last pinged Systems Manager service. */ public void setLastPingDateTime(java.util.Date lastPingDateTime) { this.lastPingDateTime = lastPingDateTime; } /** * <p> * The date and time when agent last pinged Systems Manager service. * </p> * * @return The date and time when agent last pinged Systems Manager service. */ public java.util.Date getLastPingDateTime() { return this.lastPingDateTime; } /** * <p> * The date and time when agent last pinged Systems Manager service. * </p> * * @param lastPingDateTime * The date and time when agent last pinged Systems Manager service. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceInformation withLastPingDateTime(java.util.Date lastPingDateTime) { setLastPingDateTime(lastPingDateTime); return this; } /** * <p> * The version of the SSM Agent running on your Linux instance. * </p> * * @param agentVersion * The version of the SSM Agent running on your Linux instance. */ public void setAgentVersion(String agentVersion) { this.agentVersion = agentVersion; } /** * <p> * The version of the SSM Agent running on your Linux instance. * </p> * * @return The version of the SSM Agent running on your Linux instance. */ public String getAgentVersion() { return this.agentVersion; } /** * <p> * The version of the SSM Agent running on your Linux instance. * </p> * * @param agentVersion * The version of the SSM Agent running on your Linux instance. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceInformation withAgentVersion(String agentVersion) { setAgentVersion(agentVersion); return this; } /** * <p> * Indicates whether latest version of the SSM Agent is running on your instance. * </p> * * @param isLatestVersion * Indicates whether latest version of the SSM Agent is running on your instance. */ public void setIsLatestVersion(Boolean isLatestVersion) { this.isLatestVersion = isLatestVersion; } /** * <p> * Indicates whether latest version of the SSM Agent is running on your instance. * </p> * * @return Indicates whether latest version of the SSM Agent is running on your instance. */ public Boolean getIsLatestVersion() { return this.isLatestVersion; } /** * <p> * Indicates whether latest version of the SSM Agent is running on your instance. * </p> * * @param isLatestVersion * Indicates whether latest version of the SSM Agent is running on your instance. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceInformation withIsLatestVersion(Boolean isLatestVersion) { setIsLatestVersion(isLatestVersion); return this; } /** * <p> * Indicates whether latest version of the SSM Agent is running on your instance. * </p> * * @return Indicates whether latest version of the SSM Agent is running on your instance. */ public Boolean isLatestVersion() { return this.isLatestVersion; } /** * <p> * The operating system platform type. * </p> * * @param platformType * The operating system platform type. * @see PlatformType */ public void setPlatformType(String platformType) { this.platformType = platformType; } /** * <p> * The operating system platform type. * </p> * * @return The operating system platform type. * @see PlatformType */ public String getPlatformType() { return this.platformType; } /** * <p> * The operating system platform type. * </p> * * @param platformType * The operating system platform type. * @return Returns a reference to this object so that method calls can be chained together. * @see PlatformType */ public InstanceInformation withPlatformType(String platformType) { setPlatformType(platformType); return this; } /** * <p> * The operating system platform type. * </p> * * @param platformType * The operating system platform type. * @see PlatformType */ public void setPlatformType(PlatformType platformType) { this.platformType = platformType.toString(); } /** * <p> * The operating system platform type. * </p> * * @param platformType * The operating system platform type. * @return Returns a reference to this object so that method calls can be chained together. * @see PlatformType */ public InstanceInformation withPlatformType(PlatformType platformType) { setPlatformType(platformType); return this; } /** * <p> * The name of the operating system platform running on your instance. * </p> * * @param platformName * The name of the operating system platform running on your instance. */ public void setPlatformName(String platformName) { this.platformName = platformName; } /** * <p> * The name of the operating system platform running on your instance. * </p> * * @return The name of the operating system platform running on your instance. */ public String getPlatformName() { return this.platformName; } /** * <p> * The name of the operating system platform running on your instance. * </p> * * @param platformName * The name of the operating system platform running on your instance. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceInformation withPlatformName(String platformName) { setPlatformName(platformName); return this; } /** * <p> * The version of the OS platform running on your instance. * </p> * * @param platformVersion * The version of the OS platform running on your instance. */ public void setPlatformVersion(String platformVersion) { this.platformVersion = platformVersion; } /** * <p> * The version of the OS platform running on your instance. * </p> * * @return The version of the OS platform running on your instance. */ public String getPlatformVersion() { return this.platformVersion; } /** * <p> * The version of the OS platform running on your instance. * </p> * * @param platformVersion * The version of the OS platform running on your instance. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceInformation withPlatformVersion(String platformVersion) { setPlatformVersion(platformVersion); return this; } /** * <p> * The activation ID created by Systems Manager when the server or VM was registered. * </p> * * @param activationId * The activation ID created by Systems Manager when the server or VM was registered. */ public void setActivationId(String activationId) { this.activationId = activationId; } /** * <p> * The activation ID created by Systems Manager when the server or VM was registered. * </p> * * @return The activation ID created by Systems Manager when the server or VM was registered. */ public String getActivationId() { return this.activationId; } /** * <p> * The activation ID created by Systems Manager when the server or VM was registered. * </p> * * @param activationId * The activation ID created by Systems Manager when the server or VM was registered. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceInformation withActivationId(String activationId) { setActivationId(activationId); return this; } /** * <p> * The Amazon Identity and Access Management (IAM) role assigned to EC2 instances or managed instances. * </p> * * @param iamRole * The Amazon Identity and Access Management (IAM) role assigned to EC2 instances or managed instances. */ public void setIamRole(String iamRole) { this.iamRole = iamRole; } /** * <p> * The Amazon Identity and Access Management (IAM) role assigned to EC2 instances or managed instances. * </p> * * @return The Amazon Identity and Access Management (IAM) role assigned to EC2 instances or managed instances. */ public String getIamRole() { return this.iamRole; } /** * <p> * The Amazon Identity and Access Management (IAM) role assigned to EC2 instances or managed instances. * </p> * * @param iamRole * The Amazon Identity and Access Management (IAM) role assigned to EC2 instances or managed instances. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceInformation withIamRole(String iamRole) { setIamRole(iamRole); return this; } /** * <p> * The date the server or VM was registered with AWS as a managed instance. * </p> * * @param registrationDate * The date the server or VM was registered with AWS as a managed instance. */ public void setRegistrationDate(java.util.Date registrationDate) { this.registrationDate = registrationDate; } /** * <p> * The date the server or VM was registered with AWS as a managed instance. * </p> * * @return The date the server or VM was registered with AWS as a managed instance. */ public java.util.Date getRegistrationDate() { return this.registrationDate; } /** * <p> * The date the server or VM was registered with AWS as a managed instance. * </p> * * @param registrationDate * The date the server or VM was registered with AWS as a managed instance. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceInformation withRegistrationDate(java.util.Date registrationDate) { setRegistrationDate(registrationDate); return this; } /** * <p> * The type of instance. Instances are either EC2 instances or managed instances. * </p> * * @param resourceType * The type of instance. Instances are either EC2 instances or managed instances. * @see ResourceType */ public void setResourceType(String resourceType) { this.resourceType = resourceType; } /** * <p> * The type of instance. Instances are either EC2 instances or managed instances. * </p> * * @return The type of instance. Instances are either EC2 instances or managed instances. * @see ResourceType */ public String getResourceType() { return this.resourceType; } /** * <p> * The type of instance. Instances are either EC2 instances or managed instances. * </p> * * @param resourceType * The type of instance. Instances are either EC2 instances or managed instances. * @return Returns a reference to this object so that method calls can be chained together. * @see ResourceType */ public InstanceInformation withResourceType(String resourceType) { setResourceType(resourceType); return this; } /** * <p> * The type of instance. Instances are either EC2 instances or managed instances. * </p> * * @param resourceType * The type of instance. Instances are either EC2 instances or managed instances. * @see ResourceType */ public void setResourceType(ResourceType resourceType) { this.resourceType = resourceType.toString(); } /** * <p> * The type of instance. Instances are either EC2 instances or managed instances. * </p> * * @param resourceType * The type of instance. Instances are either EC2 instances or managed instances. * @return Returns a reference to this object so that method calls can be chained together. * @see ResourceType */ public InstanceInformation withResourceType(ResourceType resourceType) { setResourceType(resourceType); return this; } /** * <p> * The name of the managed instance. * </p> * * @param name * The name of the managed instance. */ public void setName(String name) { this.name = name; } /** * <p> * The name of the managed instance. * </p> * * @return The name of the managed instance. */ public String getName() { return this.name; } /** * <p> * The name of the managed instance. * </p> * * @param name * The name of the managed instance. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceInformation withName(String name) { setName(name); return this; } /** * <p> * The IP address of the managed instance. * </p> * * @param iPAddress * The IP address of the managed instance. */ public void setIPAddress(String iPAddress) { this.iPAddress = iPAddress; } /** * <p> * The IP address of the managed instance. * </p> * * @return The IP address of the managed instance. */ public String getIPAddress() { return this.iPAddress; } /** * <p> * The IP address of the managed instance. * </p> * * @param iPAddress * The IP address of the managed instance. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceInformation withIPAddress(String iPAddress) { setIPAddress(iPAddress); return this; } /** * <p> * The fully qualified host name of the managed instance. * </p> * * @param computerName * The fully qualified host name of the managed instance. */ public void setComputerName(String computerName) { this.computerName = computerName; } /** * <p> * The fully qualified host name of the managed instance. * </p> * * @return The fully qualified host name of the managed instance. */ public String getComputerName() { return this.computerName; } /** * <p> * The fully qualified host name of the managed instance. * </p> * * @param computerName * The fully qualified host name of the managed instance. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceInformation withComputerName(String computerName) { setComputerName(computerName); return this; } /** * <p> * The status of the association. * </p> * * @param associationStatus * The status of the association. */ public void setAssociationStatus(String associationStatus) { this.associationStatus = associationStatus; } /** * <p> * The status of the association. * </p> * * @return The status of the association. */ public String getAssociationStatus() { return this.associationStatus; } /** * <p> * The status of the association. * </p> * * @param associationStatus * The status of the association. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceInformation withAssociationStatus(String associationStatus) { setAssociationStatus(associationStatus); return this; } /** * <p> * The date the association was last executed. * </p> * * @param lastAssociationExecutionDate * The date the association was last executed. */ public void setLastAssociationExecutionDate(java.util.Date lastAssociationExecutionDate) { this.lastAssociationExecutionDate = lastAssociationExecutionDate; } /** * <p> * The date the association was last executed. * </p> * * @return The date the association was last executed. */ public java.util.Date getLastAssociationExecutionDate() { return this.lastAssociationExecutionDate; } /** * <p> * The date the association was last executed. * </p> * * @param lastAssociationExecutionDate * The date the association was last executed. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceInformation withLastAssociationExecutionDate(java.util.Date lastAssociationExecutionDate) { setLastAssociationExecutionDate(lastAssociationExecutionDate); return this; } /** * <p> * The last date the association was successfully run. * </p> * * @param lastSuccessfulAssociationExecutionDate * The last date the association was successfully run. */ public void setLastSuccessfulAssociationExecutionDate(java.util.Date lastSuccessfulAssociationExecutionDate) { this.lastSuccessfulAssociationExecutionDate = lastSuccessfulAssociationExecutionDate; } /** * <p> * The last date the association was successfully run. * </p> * * @return The last date the association was successfully run. */ public java.util.Date getLastSuccessfulAssociationExecutionDate() { return this.lastSuccessfulAssociationExecutionDate; } /** * <p> * The last date the association was successfully run. * </p> * * @param lastSuccessfulAssociationExecutionDate * The last date the association was successfully run. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceInformation withLastSuccessfulAssociationExecutionDate(java.util.Date lastSuccessfulAssociationExecutionDate) { setLastSuccessfulAssociationExecutionDate(lastSuccessfulAssociationExecutionDate); return this; } /** * <p> * Information about the association. * </p> * * @param associationOverview * Information about the association. */ public void setAssociationOverview(InstanceAggregatedAssociationOverview associationOverview) { this.associationOverview = associationOverview; } /** * <p> * Information about the association. * </p> * * @return Information about the association. */ public InstanceAggregatedAssociationOverview getAssociationOverview() { return this.associationOverview; } /** * <p> * Information about the association. * </p> * * @param associationOverview * Information about the association. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceInformation withAssociationOverview(InstanceAggregatedAssociationOverview associationOverview) { setAssociationOverview(associationOverview); return this; } /** * Returns a string representation of this object; useful for testing and debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getInstanceId() != null) sb.append("InstanceId: ").append(getInstanceId()).append(","); if (getPingStatus() != null) sb.append("PingStatus: ").append(getPingStatus()).append(","); if (getLastPingDateTime() != null) sb.append("LastPingDateTime: ").append(getLastPingDateTime()).append(","); if (getAgentVersion() != null) sb.append("AgentVersion: ").append(getAgentVersion()).append(","); if (getIsLatestVersion() != null) sb.append("IsLatestVersion: ").append(getIsLatestVersion()).append(","); if (getPlatformType() != null) sb.append("PlatformType: ").append(getPlatformType()).append(","); if (getPlatformName() != null) sb.append("PlatformName: ").append(getPlatformName()).append(","); if (getPlatformVersion() != null) sb.append("PlatformVersion: ").append(getPlatformVersion()).append(","); if (getActivationId() != null) sb.append("ActivationId: ").append(getActivationId()).append(","); if (getIamRole() != null) sb.append("IamRole: ").append(getIamRole()).append(","); if (getRegistrationDate() != null) sb.append("RegistrationDate: ").append(getRegistrationDate()).append(","); if (getResourceType() != null) sb.append("ResourceType: ").append(getResourceType()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getIPAddress() != null) sb.append("IPAddress: ").append(getIPAddress()).append(","); if (getComputerName() != null) sb.append("ComputerName: ").append(getComputerName()).append(","); if (getAssociationStatus() != null) sb.append("AssociationStatus: ").append(getAssociationStatus()).append(","); if (getLastAssociationExecutionDate() != null) sb.append("LastAssociationExecutionDate: ").append(getLastAssociationExecutionDate()).append(","); if (getLastSuccessfulAssociationExecutionDate() != null) sb.append("LastSuccessfulAssociationExecutionDate: ").append(getLastSuccessfulAssociationExecutionDate()).append(","); if (getAssociationOverview() != null) sb.append("AssociationOverview: ").append(getAssociationOverview()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof InstanceInformation == false) return false; InstanceInformation other = (InstanceInformation) obj; if (other.getInstanceId() == null ^ this.getInstanceId() == null) return false; if (other.getInstanceId() != null && other.getInstanceId().equals(this.getInstanceId()) == false) return false; if (other.getPingStatus() == null ^ this.getPingStatus() == null) return false; if (other.getPingStatus() != null && other.getPingStatus().equals(this.getPingStatus()) == false) return false; if (other.getLastPingDateTime() == null ^ this.getLastPingDateTime() == null) return false; if (other.getLastPingDateTime() != null && other.getLastPingDateTime().equals(this.getLastPingDateTime()) == false) return false; if (other.getAgentVersion() == null ^ this.getAgentVersion() == null) return false; if (other.getAgentVersion() != null && other.getAgentVersion().equals(this.getAgentVersion()) == false) return false; if (other.getIsLatestVersion() == null ^ this.getIsLatestVersion() == null) return false; if (other.getIsLatestVersion() != null && other.getIsLatestVersion().equals(this.getIsLatestVersion()) == false) return false; if (other.getPlatformType() == null ^ this.getPlatformType() == null) return false; if (other.getPlatformType() != null && other.getPlatformType().equals(this.getPlatformType()) == false) return false; if (other.getPlatformName() == null ^ this.getPlatformName() == null) return false; if (other.getPlatformName() != null && other.getPlatformName().equals(this.getPlatformName()) == false) return false; if (other.getPlatformVersion() == null ^ this.getPlatformVersion() == null) return false; if (other.getPlatformVersion() != null && other.getPlatformVersion().equals(this.getPlatformVersion()) == false) return false; if (other.getActivationId() == null ^ this.getActivationId() == null) return false; if (other.getActivationId() != null && other.getActivationId().equals(this.getActivationId()) == false) return false; if (other.getIamRole() == null ^ this.getIamRole() == null) return false; if (other.getIamRole() != null && other.getIamRole().equals(this.getIamRole()) == false) return false; if (other.getRegistrationDate() == null ^ this.getRegistrationDate() == null) return false; if (other.getRegistrationDate() != null && other.getRegistrationDate().equals(this.getRegistrationDate()) == 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.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getIPAddress() == null ^ this.getIPAddress() == null) return false; if (other.getIPAddress() != null && other.getIPAddress().equals(this.getIPAddress()) == false) return false; if (other.getComputerName() == null ^ this.getComputerName() == null) return false; if (other.getComputerName() != null && other.getComputerName().equals(this.getComputerName()) == false) return false; if (other.getAssociationStatus() == null ^ this.getAssociationStatus() == null) return false; if (other.getAssociationStatus() != null && other.getAssociationStatus().equals(this.getAssociationStatus()) == false) return false; if (other.getLastAssociationExecutionDate() == null ^ this.getLastAssociationExecutionDate() == null) return false; if (other.getLastAssociationExecutionDate() != null && other.getLastAssociationExecutionDate().equals(this.getLastAssociationExecutionDate()) == false) return false; if (other.getLastSuccessfulAssociationExecutionDate() == null ^ this.getLastSuccessfulAssociationExecutionDate() == null) return false; if (other.getLastSuccessfulAssociationExecutionDate() != null && other.getLastSuccessfulAssociationExecutionDate().equals(this.getLastSuccessfulAssociationExecutionDate()) == false) return false; if (other.getAssociationOverview() == null ^ this.getAssociationOverview() == null) return false; if (other.getAssociationOverview() != null && other.getAssociationOverview().equals(this.getAssociationOverview()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); hashCode = prime * hashCode + ((getPingStatus() == null) ? 0 : getPingStatus().hashCode()); hashCode = prime * hashCode + ((getLastPingDateTime() == null) ? 0 : getLastPingDateTime().hashCode()); hashCode = prime * hashCode + ((getAgentVersion() == null) ? 0 : getAgentVersion().hashCode()); hashCode = prime * hashCode + ((getIsLatestVersion() == null) ? 0 : getIsLatestVersion().hashCode()); hashCode = prime * hashCode + ((getPlatformType() == null) ? 0 : getPlatformType().hashCode()); hashCode = prime * hashCode + ((getPlatformName() == null) ? 0 : getPlatformName().hashCode()); hashCode = prime * hashCode + ((getPlatformVersion() == null) ? 0 : getPlatformVersion().hashCode()); hashCode = prime * hashCode + ((getActivationId() == null) ? 0 : getActivationId().hashCode()); hashCode = prime * hashCode + ((getIamRole() == null) ? 0 : getIamRole().hashCode()); hashCode = prime * hashCode + ((getRegistrationDate() == null) ? 0 : getRegistrationDate().hashCode()); hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getIPAddress() == null) ? 0 : getIPAddress().hashCode()); hashCode = prime * hashCode + ((getComputerName() == null) ? 0 : getComputerName().hashCode()); hashCode = prime * hashCode + ((getAssociationStatus() == null) ? 0 : getAssociationStatus().hashCode()); hashCode = prime * hashCode + ((getLastAssociationExecutionDate() == null) ? 0 : getLastAssociationExecutionDate().hashCode()); hashCode = prime * hashCode + ((getLastSuccessfulAssociationExecutionDate() == null) ? 0 : getLastSuccessfulAssociationExecutionDate().hashCode()); hashCode = prime * hashCode + ((getAssociationOverview() == null) ? 0 : getAssociationOverview().hashCode()); return hashCode; } @Override public InstanceInformation clone() { try { return (InstanceInformation) 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.InstanceInformationMarshaller.getInstance().marshall(this, protocolMarshaller); } }