Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 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.config.model;
 

A list that contains detailed configurations of a specified resource.

NOTE: Currently, the list does not contain information about non-AWS components (for example, applications on your Amazon EC2 instances).

 
 public class ConfigurationItem implements SerializableCloneable {

    
The version number of the resource configuration.
 
     private String version;

    
The 12 digit AWS account ID associated with the resource.
 
     private String accountId;

    
The time when the configuration recording was initiated.
 
     private java.util.Date configurationItemCaptureTime;

    
The configuration item status.

Constraints:
Allowed Values: Ok, Failed, Discovered, Deleted

 
     private String configurationItemStatus;

    
An identifier that indicates the ordering of the configuration items of a resource.
 
     private String configurationStateId;

    
Unique MD5 hash that represents the configuration item's state.

You can use MD5 hash to compare the states of two or more configuration items that are associated with the same resource.

 
     private String configurationItemMD5Hash;

    
The Amazon Resource Name (ARN) of the resource.
 
     private String arn;

    
The type of AWS resource.

Constraints:
Allowed Values: AWS::EC2::CustomerGateway, AWS::EC2::EIP, AWS::EC2::Instance, AWS::EC2::InternetGateway, AWS::EC2::NetworkAcl, AWS::EC2::NetworkInterface, AWS::EC2::RouteTable, AWS::EC2::SecurityGroup, AWS::EC2::Subnet, AWS::CloudTrail::Trail, AWS::EC2::Volume, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway

 
     private String resourceType;

    
The ID of the resource (for example., sg-xxxxxx).
 
     private String resourceId;

    
The Availability Zone associated with the resource.
 
     private String availabilityZone;

    
The time stamp when the resource was created.
 
     private java.util.Date resourceCreationTime;

    
A mapping of key value tags associated with the resource.
 
     private java.util.Map<String,Stringtags;

    
A list of CloudTrail event IDs.

A populated field indicates that the current configuration was initiated by the events recorded in the CloudTrail log. For more information about CloudTrail, see What is AWS CloudTrail?.

An empty field indicates that the current configuration was not initiated by any event.

A list of related AWS resources.
The description of the resource configuration.
    private String configuration;

    
The version number of the resource configuration.

Returns:
The version number of the resource configuration.
    public String getVersion() {
        return ;
    }
    
    
The version number of the resource configuration.

Parameters:
version The version number of the resource configuration.
    public void setVersion(String version) {
        this. = version;
    }
    
    
The version number of the resource configuration.

Returns a reference to this object so that method calls can be chained together.

Parameters:
version The version number of the resource configuration.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ConfigurationItem withVersion(String version) {
        this. = version;
        return this;
    }

    
The 12 digit AWS account ID associated with the resource.

Returns:
The 12 digit AWS account ID associated with the resource.
    public String getAccountId() {
        return ;
    }
    
    
The 12 digit AWS account ID associated with the resource.

Parameters:
accountId The 12 digit AWS account ID associated with the resource.
    public void setAccountId(String accountId) {
        this. = accountId;
    }
    
    
The 12 digit AWS account ID associated with the resource.

Returns a reference to this object so that method calls can be chained together.

Parameters:
accountId The 12 digit AWS account ID associated with the resource.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ConfigurationItem withAccountId(String accountId) {
        this. = accountId;
        return this;
    }

    
The time when the configuration recording was initiated.

Returns:
The time when the configuration recording was initiated.
        return ;
    }
    
    
The time when the configuration recording was initiated.

Parameters:
configurationItemCaptureTime The time when the configuration recording was initiated.
    public void setConfigurationItemCaptureTime(java.util.Date configurationItemCaptureTime) {
        this. = configurationItemCaptureTime;
    }
    
    
The time when the configuration recording was initiated.

Returns a reference to this object so that method calls can be chained together.

Parameters:
configurationItemCaptureTime The time when the configuration recording was initiated.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ConfigurationItem withConfigurationItemCaptureTime(java.util.Date configurationItemCaptureTime) {
        this. = configurationItemCaptureTime;
        return this;
    }

    
The configuration item status.

Constraints:
Allowed Values: Ok, Failed, Discovered, Deleted

Returns:
The configuration item status.
See also:
ConfigurationItemStatus
        return ;
    }
    
    
The configuration item status.

Constraints:
Allowed Values: Ok, Failed, Discovered, Deleted

Parameters:
configurationItemStatus The configuration item status.
See also:
ConfigurationItemStatus
    public void setConfigurationItemStatus(String configurationItemStatus) {
        this. = configurationItemStatus;
    }
    
    
The configuration item status.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Ok, Failed, Discovered, Deleted

Parameters:
configurationItemStatus The configuration item status.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
ConfigurationItemStatus
    public ConfigurationItem withConfigurationItemStatus(String configurationItemStatus) {
        this. = configurationItemStatus;
        return this;
    }

    
The configuration item status.

Constraints:
Allowed Values: Ok, Failed, Discovered, Deleted

Parameters:
configurationItemStatus The configuration item status.
See also:
ConfigurationItemStatus
    public void setConfigurationItemStatus(ConfigurationItemStatus configurationItemStatus) {
        this. = configurationItemStatus.toString();
    }
    
    
The configuration item status.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Ok, Failed, Discovered, Deleted

Parameters:
configurationItemStatus The configuration item status.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
ConfigurationItemStatus
    public ConfigurationItem withConfigurationItemStatus(ConfigurationItemStatus configurationItemStatus) {
        this. = configurationItemStatus.toString();
        return this;
    }

    
An identifier that indicates the ordering of the configuration items of a resource.

Returns:
An identifier that indicates the ordering of the configuration items of a resource.
    public String getConfigurationStateId() {
        return ;
    }
    
    
An identifier that indicates the ordering of the configuration items of a resource.

Parameters:
configurationStateId An identifier that indicates the ordering of the configuration items of a resource.
    public void setConfigurationStateId(String configurationStateId) {
        this. = configurationStateId;
    }
    
    
An identifier that indicates the ordering of the configuration items of a resource.

Returns a reference to this object so that method calls can be chained together.

Parameters:
configurationStateId An identifier that indicates the ordering of the configuration items of a resource.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ConfigurationItem withConfigurationStateId(String configurationStateId) {
        this. = configurationStateId;
        return this;
    }

    
Unique MD5 hash that represents the configuration item's state.

You can use MD5 hash to compare the states of two or more configuration items that are associated with the same resource.

Returns:
Unique MD5 hash that represents the configuration item's state.

You can use MD5 hash to compare the states of two or more configuration items that are associated with the same resource.

        return ;
    }
    
    
Unique MD5 hash that represents the configuration item's state.

You can use MD5 hash to compare the states of two or more configuration items that are associated with the same resource.

Parameters:
configurationItemMD5Hash Unique MD5 hash that represents the configuration item's state.

You can use MD5 hash to compare the states of two or more configuration items that are associated with the same resource.

    public void setConfigurationItemMD5Hash(String configurationItemMD5Hash) {
        this. = configurationItemMD5Hash;
    }
    
    
Unique MD5 hash that represents the configuration item's state.

You can use MD5 hash to compare the states of two or more configuration items that are associated with the same resource.

Returns a reference to this object so that method calls can be chained together.

Parameters:
configurationItemMD5Hash Unique MD5 hash that represents the configuration item's state.

You can use MD5 hash to compare the states of two or more configuration items that are associated with the same resource.

Returns:
A reference to this updated object so that method calls can be chained together.
    public ConfigurationItem withConfigurationItemMD5Hash(String configurationItemMD5Hash) {
        this. = configurationItemMD5Hash;
        return this;
    }

    
The Amazon Resource Name (ARN) of the resource.

Returns:
The Amazon Resource Name (ARN) of the resource.
    public String getArn() {
        return ;
    }
    
    
The Amazon Resource Name (ARN) of the resource.

Parameters:
arn The Amazon Resource Name (ARN) of the resource.
    public void setArn(String arn) {
        this. = arn;
    }
    
    
The Amazon Resource Name (ARN) of the resource.

Returns a reference to this object so that method calls can be chained together.

Parameters:
arn The Amazon Resource Name (ARN) of the resource.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ConfigurationItem withArn(String arn) {
        this. = arn;
        return this;
    }

    
The type of AWS resource.

Constraints:
Allowed Values: AWS::EC2::CustomerGateway, AWS::EC2::EIP, AWS::EC2::Instance, AWS::EC2::InternetGateway, AWS::EC2::NetworkAcl, AWS::EC2::NetworkInterface, AWS::EC2::RouteTable, AWS::EC2::SecurityGroup, AWS::EC2::Subnet, AWS::CloudTrail::Trail, AWS::EC2::Volume, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway

Returns:
The type of AWS resource.
See also:
ResourceType
    public String getResourceType() {
        return ;
    }
    
    
The type of AWS resource.

Constraints:
Allowed Values: AWS::EC2::CustomerGateway, AWS::EC2::EIP, AWS::EC2::Instance, AWS::EC2::InternetGateway, AWS::EC2::NetworkAcl, AWS::EC2::NetworkInterface, AWS::EC2::RouteTable, AWS::EC2::SecurityGroup, AWS::EC2::Subnet, AWS::CloudTrail::Trail, AWS::EC2::Volume, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway

Parameters:
resourceType The type of AWS resource.
See also:
ResourceType
    public void setResourceType(String resourceType) {
        this. = resourceType;
    }
    
    
The type of AWS resource.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: AWS::EC2::CustomerGateway, AWS::EC2::EIP, AWS::EC2::Instance, AWS::EC2::InternetGateway, AWS::EC2::NetworkAcl, AWS::EC2::NetworkInterface, AWS::EC2::RouteTable, AWS::EC2::SecurityGroup, AWS::EC2::Subnet, AWS::CloudTrail::Trail, AWS::EC2::Volume, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway

Parameters:
resourceType The type of AWS resource.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
ResourceType
    public ConfigurationItem withResourceType(String resourceType) {
        this. = resourceType;
        return this;
    }

    
The type of AWS resource.

Constraints:
Allowed Values: AWS::EC2::CustomerGateway, AWS::EC2::EIP, AWS::EC2::Instance, AWS::EC2::InternetGateway, AWS::EC2::NetworkAcl, AWS::EC2::NetworkInterface, AWS::EC2::RouteTable, AWS::EC2::SecurityGroup, AWS::EC2::Subnet, AWS::CloudTrail::Trail, AWS::EC2::Volume, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway

Parameters:
resourceType The type of AWS resource.
See also:
ResourceType
    public void setResourceType(ResourceType resourceType) {
        this. = resourceType.toString();
    }
    
    
The type of AWS resource.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: AWS::EC2::CustomerGateway, AWS::EC2::EIP, AWS::EC2::Instance, AWS::EC2::InternetGateway, AWS::EC2::NetworkAcl, AWS::EC2::NetworkInterface, AWS::EC2::RouteTable, AWS::EC2::SecurityGroup, AWS::EC2::Subnet, AWS::CloudTrail::Trail, AWS::EC2::Volume, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway

Parameters:
resourceType The type of AWS resource.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
ResourceType
    public ConfigurationItem withResourceType(ResourceType resourceType) {
        this. = resourceType.toString();
        return this;
    }

    
The ID of the resource (for example., sg-xxxxxx).

Returns:
The ID of the resource (for example., sg-xxxxxx).
    public String getResourceId() {
        return ;
    }
    
    
The ID of the resource (for example., sg-xxxxxx).

Parameters:
resourceId The ID of the resource (for example., sg-xxxxxx).
    public void setResourceId(String resourceId) {
        this. = resourceId;
    }
    
    
The ID of the resource (for example., sg-xxxxxx).

Returns a reference to this object so that method calls can be chained together.

Parameters:
resourceId The ID of the resource (for example., sg-xxxxxx).
Returns:
A reference to this updated object so that method calls can be chained together.
    public ConfigurationItem withResourceId(String resourceId) {
        this. = resourceId;
        return this;
    }

    
The Availability Zone associated with the resource.

Returns:
The Availability Zone associated with the resource.
    public String getAvailabilityZone() {
        return ;
    }
    
    
The Availability Zone associated with the resource.

Parameters:
availabilityZone The Availability Zone associated with the resource.
    public void setAvailabilityZone(String availabilityZone) {
        this. = availabilityZone;
    }
    
    
The Availability Zone associated with the resource.

Returns a reference to this object so that method calls can be chained together.

Parameters:
availabilityZone The Availability Zone associated with the resource.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ConfigurationItem withAvailabilityZone(String availabilityZone) {
        this. = availabilityZone;
        return this;
    }

    
The time stamp when the resource was created.

Returns:
The time stamp when the resource was created.
        return ;
    }
    
    
The time stamp when the resource was created.

Parameters:
resourceCreationTime The time stamp when the resource was created.
    public void setResourceCreationTime(java.util.Date resourceCreationTime) {
        this. = resourceCreationTime;
    }
    
    
The time stamp when the resource was created.

Returns a reference to this object so that method calls can be chained together.

Parameters:
resourceCreationTime The time stamp when the resource was created.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ConfigurationItem withResourceCreationTime(java.util.Date resourceCreationTime) {
        this. = resourceCreationTime;
        return this;
    }

    
A mapping of key value tags associated with the resource.

Returns:
A mapping of key value tags associated with the resource.
    public java.util.Map<String,StringgetTags() {
        
        if ( == null) {
             = new java.util.HashMap<String,String>();
        }
        return ;
    }
    
    
A mapping of key value tags associated with the resource.

Parameters:
tags A mapping of key value tags associated with the resource.
    public void setTags(java.util.Map<String,Stringtags) {
        this. = tags;
    }
    
    
A mapping of key value tags associated with the resource.

Returns a reference to this object so that method calls can be chained together.

Parameters:
tags A mapping of key value tags associated with the resource.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ConfigurationItem withTags(java.util.Map<String,Stringtags) {
        setTags(tags);
        return this;
    }

    
A mapping of key value tags associated with the resource.

The method adds a new key-value pair into Tags parameter, and returns a reference to this object so that method calls can be chained together.

Parameters:
key The key of the entry to be added into Tags.
value The corresponding value of the entry to be added into Tags.
  public ConfigurationItem addTagsEntry(String keyString value) {
    if (null == this.) {
      this. = new java.util.HashMap<String,String>();
    }
    if (this..containsKey(key))
      throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
    this..put(keyvalue);
    return this;
  }

  
Removes all the entries added into Tags.

Returns a reference to this object so that method calls can be chained together.

    this. = null;
    return this;
  }
  
    
A list of CloudTrail event IDs.

A populated field indicates that the current configuration was initiated by the events recorded in the CloudTrail log. For more information about CloudTrail, see What is AWS CloudTrail?.

An empty field indicates that the current configuration was not initiated by any event.

Returns:
A list of CloudTrail event IDs.

A populated field indicates that the current configuration was initiated by the events recorded in the CloudTrail log. For more information about CloudTrail, see What is AWS CloudTrail?.

An empty field indicates that the current configuration was not initiated by any event.

    public java.util.List<StringgetRelatedEvents() {
        if ( == null) {
               = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
A list of CloudTrail event IDs.

A populated field indicates that the current configuration was initiated by the events recorded in the CloudTrail log. For more information about CloudTrail, see What is AWS CloudTrail?.

An empty field indicates that the current configuration was not initiated by any event.

Parameters:
relatedEvents A list of CloudTrail event IDs.

A populated field indicates that the current configuration was initiated by the events recorded in the CloudTrail log. For more information about CloudTrail, see What is AWS CloudTrail?.

An empty field indicates that the current configuration was not initiated by any event.

    public void setRelatedEvents(java.util.Collection<StringrelatedEvents) {
        if (relatedEvents == null) {
            this. = null;
            return;
        }
        com.amazonaws.internal.ListWithAutoConstructFlag<StringrelatedEventsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(relatedEvents.size());
        relatedEventsCopy.addAll(relatedEvents);
        this. = relatedEventsCopy;
    }
    
    
A list of CloudTrail event IDs.

A populated field indicates that the current configuration was initiated by the events recorded in the CloudTrail log. For more information about CloudTrail, see What is AWS CloudTrail?.

An empty field indicates that the current configuration was not initiated by any event.

NOTE: This method appends the values to the existing list (if any). Use setRelatedEvents(java.util.Collection) or withRelatedEvents(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
relatedEvents A list of CloudTrail event IDs.

A populated field indicates that the current configuration was initiated by the events recorded in the CloudTrail log. For more information about CloudTrail, see What is AWS CloudTrail?.

An empty field indicates that the current configuration was not initiated by any event.

Returns:
A reference to this updated object so that method calls can be chained together.
    public ConfigurationItem withRelatedEvents(String... relatedEvents) {
        if (getRelatedEvents() == nullsetRelatedEvents(new java.util.ArrayList<String>(relatedEvents.length));
        for (String value : relatedEvents) {
            getRelatedEvents().add(value);
        }
        return this;
    }
    
    
A list of CloudTrail event IDs.

A populated field indicates that the current configuration was initiated by the events recorded in the CloudTrail log. For more information about CloudTrail, see What is AWS CloudTrail?.

An empty field indicates that the current configuration was not initiated by any event.

Returns a reference to this object so that method calls can be chained together.

Parameters:
relatedEvents A list of CloudTrail event IDs.

A populated field indicates that the current configuration was initiated by the events recorded in the CloudTrail log. For more information about CloudTrail, see What is AWS CloudTrail?.

An empty field indicates that the current configuration was not initiated by any event.

Returns:
A reference to this updated object so that method calls can be chained together.
    public ConfigurationItem withRelatedEvents(java.util.Collection<StringrelatedEvents) {
        if (relatedEvents == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<StringrelatedEventsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(relatedEvents.size());
            relatedEventsCopy.addAll(relatedEvents);
            this. = relatedEventsCopy;
        }
        return this;
    }

    
A list of related AWS resources.

Returns:
A list of related AWS resources.
        if ( == null) {
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
A list of related AWS resources.

Parameters:
relationships A list of related AWS resources.
    public void setRelationships(java.util.Collection<Relationshiprelationships) {
        if (relationships == null) {
            this. = null;
            return;
        }
        relationshipsCopy.addAll(relationships);
        this. = relationshipsCopy;
    }
    
    
A list of related AWS resources.

NOTE: This method appends the values to the existing list (if any). Use setRelationships(java.util.Collection) or withRelationships(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
relationships A list of related AWS resources.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ConfigurationItem withRelationships(Relationship... relationships) {
        if (getRelationships() == nullsetRelationships(new java.util.ArrayList<Relationship>(relationships.length));
        for (Relationship value : relationships) {
            getRelationships().add(value);
        }
        return this;
    }
    
    
A list of related AWS resources.

Returns a reference to this object so that method calls can be chained together.

Parameters:
relationships A list of related AWS resources.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (relationships == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<RelationshiprelationshipsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<Relationship>(relationships.size());
            relationshipsCopy.addAll(relationships);
            this. = relationshipsCopy;
        }
        return this;
    }

    
The description of the resource configuration.

Returns:
The description of the resource configuration.
    public String getConfiguration() {
        return ;
    }
    
    
The description of the resource configuration.

Parameters:
configuration The description of the resource configuration.
    public void setConfiguration(String configuration) {
        this. = configuration;
    }
    
    
The description of the resource configuration.

Returns a reference to this object so that method calls can be chained together.

Parameters:
configuration The description of the resource configuration.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ConfigurationItem withConfiguration(String configuration) {
        this. = configuration;
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getVersion() != nullsb.append("Version: " + getVersion() + ",");
        if (getAccountId() != nullsb.append("AccountId: " + getAccountId() + ",");
        if (getConfigurationItemCaptureTime() != nullsb.append("ConfigurationItemCaptureTime: " + getConfigurationItemCaptureTime() + ",");
        if (getConfigurationItemStatus() != nullsb.append("ConfigurationItemStatus: " + getConfigurationItemStatus() + ",");
        if (getConfigurationStateId() != nullsb.append("ConfigurationStateId: " + getConfigurationStateId() + ",");
        if (getConfigurationItemMD5Hash() != nullsb.append("ConfigurationItemMD5Hash: " + getConfigurationItemMD5Hash() + ",");
        if (getArn() != nullsb.append("Arn: " + getArn() + ",");
        if (getResourceType() != nullsb.append("ResourceType: " + getResourceType() + ",");
        if (getResourceId() != nullsb.append("ResourceId: " + getResourceId() + ",");
        if (getAvailabilityZone() != nullsb.append("AvailabilityZone: " + getAvailabilityZone() + ",");
        if (getResourceCreationTime() != nullsb.append("ResourceCreationTime: " + getResourceCreationTime() + ",");
        if (getTags() != nullsb.append("Tags: " + getTags() + ",");
        if (getRelatedEvents() != nullsb.append("RelatedEvents: " + getRelatedEvents() + ",");
        if (getRelationships() != nullsb.append("Relationships: " + getRelationships() + ",");
        if (getConfiguration() != nullsb.append("Configuration: " + getConfiguration() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getVersion() == null) ? 0 : getVersion().hashCode()); 
        hashCode = prime * hashCode + ((getAccountId() == null) ? 0 : getAccountId().hashCode()); 
        hashCode = prime * hashCode + ((getConfigurationItemCaptureTime() == null) ? 0 : getConfigurationItemCaptureTime().hashCode()); 
        hashCode = prime * hashCode + ((getConfigurationItemStatus() == null) ? 0 : getConfigurationItemStatus().hashCode()); 
        hashCode = prime * hashCode + ((getConfigurationStateId() == null) ? 0 : getConfigurationStateId().hashCode()); 
        hashCode = prime * hashCode + ((getConfigurationItemMD5Hash() == null) ? 0 : getConfigurationItemMD5Hash().hashCode()); 
        hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); 
        hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode()); 
        hashCode = prime * hashCode + ((getResourceId() == null) ? 0 : getResourceId().hashCode()); 
        hashCode = prime * hashCode + ((getAvailabilityZone() == null) ? 0 : getAvailabilityZone().hashCode()); 
        hashCode = prime * hashCode + ((getResourceCreationTime() == null) ? 0 : getResourceCreationTime().hashCode()); 
        hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); 
        hashCode = prime * hashCode + ((getRelatedEvents() == null) ? 0 : getRelatedEvents().hashCode()); 
        hashCode = prime * hashCode + ((getRelationships() == null) ? 0 : getRelationships().hashCode()); 
        hashCode = prime * hashCode + ((getConfiguration() == null) ? 0 : getConfiguration().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof ConfigurationItem == falsereturn false;
        ConfigurationItem other = (ConfigurationItem)obj;
        
        if (other.getVersion() == null ^ this.getVersion() == nullreturn false;
        if (other.getVersion() != null && other.getVersion().equals(this.getVersion()) == falsereturn false
        if (other.getAccountId() == null ^ this.getAccountId() == nullreturn false;
        if (other.getAccountId() != null && other.getAccountId().equals(this.getAccountId()) == falsereturn false
        if (other.getConfigurationItemCaptureTime() == null ^ this.getConfigurationItemCaptureTime() == nullreturn false;
        if (other.getConfigurationItemCaptureTime() != null && other.getConfigurationItemCaptureTime().equals(this.getConfigurationItemCaptureTime()) == falsereturn false
        if (other.getConfigurationItemStatus() == null ^ this.getConfigurationItemStatus() == nullreturn false;
        if (other.getConfigurationItemStatus() != null && other.getConfigurationItemStatus().equals(this.getConfigurationItemStatus()) == falsereturn false
        if (other.getConfigurationStateId() == null ^ this.getConfigurationStateId() == nullreturn false;
        if (other.getConfigurationStateId() != null && other.getConfigurationStateId().equals(this.getConfigurationStateId()) == falsereturn false
        if (other.getConfigurationItemMD5Hash() == null ^ this.getConfigurationItemMD5Hash() == nullreturn false;
        if (other.getConfigurationItemMD5Hash() != null && other.getConfigurationItemMD5Hash().equals(this.getConfigurationItemMD5Hash()) == falsereturn false
        if (other.getArn() == null ^ this.getArn() == nullreturn false;
        if (other.getArn() != null && other.getArn().equals(this.getArn()) == falsereturn false
        if (other.getResourceType() == null ^ this.getResourceType() == nullreturn false;
        if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == falsereturn false
        if (other.getResourceId() == null ^ this.getResourceId() == nullreturn false;
        if (other.getResourceId() != null && other.getResourceId().equals(this.getResourceId()) == falsereturn false
        if (other.getAvailabilityZone() == null ^ this.getAvailabilityZone() == nullreturn false;
        if (other.getAvailabilityZone() != null && other.getAvailabilityZone().equals(this.getAvailabilityZone()) == falsereturn false
        if (other.getResourceCreationTime() == null ^ this.getResourceCreationTime() == nullreturn false;
        if (other.getResourceCreationTime() != null && other.getResourceCreationTime().equals(this.getResourceCreationTime()) == falsereturn false
        if (other.getTags() == null ^ this.getTags() == nullreturn false;
        if (other.getTags() != null && other.getTags().equals(this.getTags()) == falsereturn false
        if (other.getRelatedEvents() == null ^ this.getRelatedEvents() == nullreturn false;
        if (other.getRelatedEvents() != null && other.getRelatedEvents().equals(this.getRelatedEvents()) == falsereturn false
        if (other.getRelationships() == null ^ this.getRelationships() == nullreturn false;
        if (other.getRelationships() != null && other.getRelationships().equals(this.getRelationships()) == falsereturn false
        if (other.getConfiguration() == null ^ this.getConfiguration() == nullreturn false;
        if (other.getConfiguration() != null && other.getConfiguration().equals(this.getConfiguration()) == falsereturn false
        return true;
    }
    
    @Override
    public ConfigurationItem clone() {
        try {
            return (ConfigurationItemsuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X