Class ConfigurationItem
- java.lang.Object
-
- com.amazonaws.services.config.model.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 Summary
Constructors Constructor Description ConfigurationItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurationItemaddTagsEntry(String key, String value)ConfigurationItemclearTagsEntries()Removes all the entries added into Tags.ConfigurationItemclone()booleanequals(Object obj)StringgetAccountId()The 12 digit AWS account ID associated with the resource.StringgetArn()The Amazon Resource Name (ARN) of the resource.StringgetAvailabilityZone()The Availability Zone associated with the resource.StringgetAwsRegion()The region where the resource resides.StringgetConfiguration()The description of the resource configuration.DategetConfigurationItemCaptureTime()The time when the configuration recording was initiated.StringgetConfigurationItemMD5Hash()Unique MD5 hash that represents the configuration item's state.StringgetConfigurationItemStatus()The configuration item status.StringgetConfigurationStateId()An identifier that indicates the ordering of the configuration items of a resource.List<String>getRelatedEvents()A list of CloudTrail event IDs.List<Relationship>getRelationships()A list of related AWS resources.DategetResourceCreationTime()The time stamp when the resource was created.StringgetResourceId()The ID of the resource (for example.,sg-xxxxxx).StringgetResourceName()The custom name of the resource, if available.StringgetResourceType()The type of AWS resource.Map<String,String>getTags()A mapping of key value tags associated with the resource.StringgetVersion()The version number of the resource configuration.inthashCode()voidsetAccountId(String accountId)The 12 digit AWS account ID associated with the resource.voidsetArn(String arn)The Amazon Resource Name (ARN) of the resource.voidsetAvailabilityZone(String availabilityZone)The Availability Zone associated with the resource.voidsetAwsRegion(String awsRegion)The region where the resource resides.voidsetConfiguration(String configuration)The description of the resource configuration.voidsetConfigurationItemCaptureTime(Date configurationItemCaptureTime)The time when the configuration recording was initiated.voidsetConfigurationItemMD5Hash(String configurationItemMD5Hash)Unique MD5 hash that represents the configuration item's state.voidsetConfigurationItemStatus(ConfigurationItemStatus configurationItemStatus)The configuration item status.voidsetConfigurationItemStatus(String configurationItemStatus)The configuration item status.voidsetConfigurationStateId(String configurationStateId)An identifier that indicates the ordering of the configuration items of a resource.voidsetRelatedEvents(Collection<String> relatedEvents)A list of CloudTrail event IDs.voidsetRelationships(Collection<Relationship> relationships)A list of related AWS resources.voidsetResourceCreationTime(Date resourceCreationTime)The time stamp when the resource was created.voidsetResourceId(String resourceId)The ID of the resource (for example.,sg-xxxxxx).voidsetResourceName(String resourceName)The custom name of the resource, if available.voidsetResourceType(ResourceType resourceType)The type of AWS resource.voidsetResourceType(String resourceType)The type of AWS resource.voidsetTags(Map<String,String> tags)A mapping of key value tags associated with the resource.voidsetVersion(String version)The version number of the resource configuration.StringtoString()Returns a string representation of this object; useful for testing and debugging.ConfigurationItemwithAccountId(String accountId)The 12 digit AWS account ID associated with the resource.ConfigurationItemwithArn(String arn)The Amazon Resource Name (ARN) of the resource.ConfigurationItemwithAvailabilityZone(String availabilityZone)The Availability Zone associated with the resource.ConfigurationItemwithAwsRegion(String awsRegion)The region where the resource resides.ConfigurationItemwithConfiguration(String configuration)The description of the resource configuration.ConfigurationItemwithConfigurationItemCaptureTime(Date configurationItemCaptureTime)The time when the configuration recording was initiated.ConfigurationItemwithConfigurationItemMD5Hash(String configurationItemMD5Hash)Unique MD5 hash that represents the configuration item's state.ConfigurationItemwithConfigurationItemStatus(ConfigurationItemStatus configurationItemStatus)The configuration item status.ConfigurationItemwithConfigurationItemStatus(String configurationItemStatus)The configuration item status.ConfigurationItemwithConfigurationStateId(String configurationStateId)An identifier that indicates the ordering of the configuration items of a resource.ConfigurationItemwithRelatedEvents(String... relatedEvents)A list of CloudTrail event IDs.ConfigurationItemwithRelatedEvents(Collection<String> relatedEvents)A list of CloudTrail event IDs.ConfigurationItemwithRelationships(Relationship... relationships)A list of related AWS resources.ConfigurationItemwithRelationships(Collection<Relationship> relationships)A list of related AWS resources.ConfigurationItemwithResourceCreationTime(Date resourceCreationTime)The time stamp when the resource was created.ConfigurationItemwithResourceId(String resourceId)The ID of the resource (for example.,sg-xxxxxx).ConfigurationItemwithResourceName(String resourceName)The custom name of the resource, if available.ConfigurationItemwithResourceType(ResourceType resourceType)The type of AWS resource.ConfigurationItemwithResourceType(String resourceType)The type of AWS resource.ConfigurationItemwithTags(Map<String,String> tags)A mapping of key value tags associated with the resource.ConfigurationItemwithVersion(String version)The version number of the resource configuration.
-
-
-
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.
-
addTagsEntry
public ConfigurationItem addTagsEntry(String key, String value)
-
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)orwithRelatedEvents(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(Relationship... relationships)
A list of related AWS resources.
NOTE: This method appends the values to the existing list (if any). Use
setRelationships(java.util.Collection)orwithRelationships(java.util.Collection)if you want to override the existing values.- Parameters:
relationships- A list of related AWS resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ConfigurationItem clone()
-
-