Class ConfigurationItem

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class ConfigurationItem
    extends Object
    implements Serializable, Cloneable

    A list that contains detailed configurations of a specified resource.

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

    See Also:
    Serialized Form
    • Constructor Detail

      • ConfigurationItem

        public ConfigurationItem()
    • Method Detail

      • setVersion

        public void setVersion​(String version)

        The version number of the resource configuration.

        Parameters:
        version - The version number of the resource configuration.
      • getVersion

        public String getVersion()

        The version number of the resource configuration.

        Returns:
        The version number of the resource configuration.
      • withVersion

        public ConfigurationItem withVersion​(String version)

        The version number of the resource configuration.

        Parameters:
        version - The version number of the resource configuration.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setAccountId

        public void setAccountId​(String accountId)

        The 12 digit AWS account ID associated with the resource.

        Parameters:
        accountId - The 12 digit AWS account ID associated with the resource.
      • getAccountId

        public String getAccountId()

        The 12 digit AWS account ID associated with the resource.

        Returns:
        The 12 digit AWS account ID associated with the resource.
      • withAccountId

        public ConfigurationItem withAccountId​(String accountId)

        The 12 digit AWS account ID associated with the resource.

        Parameters:
        accountId - The 12 digit AWS account ID associated with the resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setConfigurationItemCaptureTime

        public void setConfigurationItemCaptureTime​(Date configurationItemCaptureTime)

        The time when the configuration recording was initiated.

        Parameters:
        configurationItemCaptureTime - The time when the configuration recording was initiated.
      • getConfigurationItemCaptureTime

        public Date getConfigurationItemCaptureTime()

        The time when the configuration recording was initiated.

        Returns:
        The time when the configuration recording was initiated.
      • withConfigurationItemCaptureTime

        public ConfigurationItem withConfigurationItemCaptureTime​(Date configurationItemCaptureTime)

        The time when the configuration recording was initiated.

        Parameters:
        configurationItemCaptureTime - The time when the configuration recording was initiated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setConfigurationItemStatus

        public void setConfigurationItemStatus​(String configurationItemStatus)

        The configuration item status.

        Parameters:
        configurationItemStatus - The configuration item status.
        See Also:
        ConfigurationItemStatus
      • getConfigurationItemStatus

        public String getConfigurationItemStatus()

        The configuration item status.

        Returns:
        The configuration item status.
        See Also:
        ConfigurationItemStatus
      • withConfigurationItemStatus

        public ConfigurationItem withConfigurationItemStatus​(String configurationItemStatus)

        The configuration item status.

        Parameters:
        configurationItemStatus - The configuration item status.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ConfigurationItemStatus
      • setConfigurationItemStatus

        public void setConfigurationItemStatus​(ConfigurationItemStatus configurationItemStatus)

        The configuration item status.

        Parameters:
        configurationItemStatus - The configuration item status.
        See Also:
        ConfigurationItemStatus
      • withConfigurationItemStatus

        public ConfigurationItem withConfigurationItemStatus​(ConfigurationItemStatus configurationItemStatus)

        The configuration item status.

        Parameters:
        configurationItemStatus - The configuration item status.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ConfigurationItemStatus
      • setConfigurationStateId

        public void setConfigurationStateId​(String configurationStateId)

        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.
      • getConfigurationStateId

        public String getConfigurationStateId()

        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.
      • withConfigurationStateId

        public ConfigurationItem withConfigurationStateId​(String configurationStateId)

        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setConfigurationItemMD5Hash

        public void setConfigurationItemMD5Hash​(String 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.

        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.

      • getConfigurationItemMD5Hash

        public String getConfigurationItemMD5Hash()

        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.

      • withConfigurationItemMD5Hash

        public ConfigurationItem withConfigurationItemMD5Hash​(String 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.

        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:
        Returns a reference to this object so that method calls can be chained together.
      • setArn

        public void setArn​(String arn)

        The Amazon Resource Name (ARN) of the resource.

        Parameters:
        arn - The Amazon Resource Name (ARN) of the resource.
      • getArn

        public String getArn()

        The Amazon Resource Name (ARN) of the resource.

        Returns:
        The Amazon Resource Name (ARN) of the resource.
      • withArn

        public ConfigurationItem withArn​(String arn)

        The Amazon Resource Name (ARN) of the resource.

        Parameters:
        arn - The Amazon Resource Name (ARN) of the resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setResourceType

        public void setResourceType​(String resourceType)

        The type of AWS resource.

        Parameters:
        resourceType - The type of AWS resource.
        See Also:
        ResourceType
      • getResourceType

        public String getResourceType()

        The type of AWS resource.

        Returns:
        The type of AWS resource.
        See Also:
        ResourceType
      • withResourceType

        public ConfigurationItem withResourceType​(String resourceType)

        The type of AWS resource.

        Parameters:
        resourceType - The type of AWS resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ResourceType
      • setResourceType

        public void setResourceType​(ResourceType resourceType)

        The type of AWS resource.

        Parameters:
        resourceType - The type of AWS resource.
        See Also:
        ResourceType
      • withResourceType

        public ConfigurationItem withResourceType​(ResourceType resourceType)

        The type of AWS resource.

        Parameters:
        resourceType - The type of AWS resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ResourceType
      • setResourceId

        public void setResourceId​(String resourceId)

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

        Parameters:
        resourceId - The ID of the resource (for example., sg-xxxxxx).
      • getResourceId

        public String getResourceId()

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

        Returns:
        The ID of the resource (for example., sg-xxxxxx).
      • withResourceId

        public ConfigurationItem withResourceId​(String resourceId)

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

        Parameters:
        resourceId - The ID of the resource (for example., sg-xxxxxx).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setResourceName

        public void setResourceName​(String resourceName)

        The custom name of the resource, if available.

        Parameters:
        resourceName - The custom name of the resource, if available.
      • getResourceName

        public String getResourceName()

        The custom name of the resource, if available.

        Returns:
        The custom name of the resource, if available.
      • withResourceName

        public ConfigurationItem withResourceName​(String resourceName)

        The custom name of the resource, if available.

        Parameters:
        resourceName - The custom name of the resource, if available.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setAwsRegion

        public void setAwsRegion​(String awsRegion)

        The region where the resource resides.

        Parameters:
        awsRegion - The region where the resource resides.
      • getAwsRegion

        public String getAwsRegion()

        The region where the resource resides.

        Returns:
        The region where the resource resides.
      • withAwsRegion

        public ConfigurationItem withAwsRegion​(String awsRegion)

        The region where the resource resides.

        Parameters:
        awsRegion - The region where the resource resides.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setAvailabilityZone

        public void setAvailabilityZone​(String availabilityZone)

        The Availability Zone associated with the resource.

        Parameters:
        availabilityZone - The Availability Zone associated with the resource.
      • getAvailabilityZone

        public String getAvailabilityZone()

        The Availability Zone associated with the resource.

        Returns:
        The Availability Zone associated with the resource.
      • withAvailabilityZone

        public ConfigurationItem withAvailabilityZone​(String availabilityZone)

        The Availability Zone associated with the resource.

        Parameters:
        availabilityZone - The Availability Zone associated with the resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setResourceCreationTime

        public void setResourceCreationTime​(Date resourceCreationTime)

        The time stamp when the resource was created.

        Parameters:
        resourceCreationTime - The time stamp when the resource was created.
      • getResourceCreationTime

        public Date getResourceCreationTime()

        The time stamp when the resource was created.

        Returns:
        The time stamp when the resource was created.
      • withResourceCreationTime

        public ConfigurationItem withResourceCreationTime​(Date resourceCreationTime)

        The time stamp when the resource was created.

        Parameters:
        resourceCreationTime - The time stamp when the resource was created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getTags

        public Map<String,​String> getTags()

        A mapping of key value tags associated with the resource.

        Returns:
        A mapping of key value tags associated with the resource.
      • setTags

        public void setTags​(Map<String,​String> tags)

        A mapping of key value tags associated with the resource.

        Parameters:
        tags - A mapping of key value tags associated with the resource.
      • withTags

        public ConfigurationItem withTags​(Map<String,​String> tags)

        A mapping of key value tags associated with the resource.

        Parameters:
        tags - A mapping of key value tags associated with the resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • clearTagsEntries

        public ConfigurationItem clearTagsEntries()
        Removes all the entries added into Tags. <p> Returns a reference to this object so that method calls can be chained together.
      • getRelatedEvents

        public List<String> getRelatedEvents()

        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.

      • setRelatedEvents

        public void setRelatedEvents​(Collection<String> 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.

        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.

      • withRelatedEvents

        public ConfigurationItem withRelatedEvents​(String... 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.

        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.

        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:
        Returns a reference to this object so that method calls can be chained together.
      • withRelatedEvents

        public ConfigurationItem withRelatedEvents​(Collection<String> 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.

        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:
        Returns a reference to this object so that method calls can be chained together.
      • getRelationships

        public List<Relationship> getRelationships()

        A list of related AWS resources.

        Returns:
        A list of related AWS resources.
      • setRelationships

        public void setRelationships​(Collection<Relationship> relationships)

        A list of related AWS resources.

        Parameters:
        relationships - A list of related AWS resources.
      • withRelationships

        public ConfigurationItem withRelationships​(Collection<Relationship> relationships)

        A list of related AWS resources.

        Parameters:
        relationships - A list of related AWS resources.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setConfiguration

        public void setConfiguration​(String configuration)

        The description of the resource configuration.

        Parameters:
        configuration - The description of the resource configuration.
      • getConfiguration

        public String getConfiguration()

        The description of the resource configuration.

        Returns:
        The description of the resource configuration.
      • withConfiguration

        public ConfigurationItem withConfiguration​(String configuration)

        The description of the resource configuration.

        Parameters:
        configuration - The description of the resource configuration.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object