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 ConfigurationItem
addTagsEntry(String key, String value)
ConfigurationItem
clearTagsEntries()
Removes all the entries added into Tags.ConfigurationItem
clone()
boolean
equals(Object obj)
String
getAccountId()
The 12 digit AWS account ID associated with the resource.String
getArn()
The Amazon Resource Name (ARN) of the resource.String
getAvailabilityZone()
The Availability Zone associated with the resource.String
getAwsRegion()
The region where the resource resides.String
getConfiguration()
The description of the resource configuration.Date
getConfigurationItemCaptureTime()
The time when the configuration recording was initiated.String
getConfigurationItemMD5Hash()
Unique MD5 hash that represents the configuration item's state.String
getConfigurationItemStatus()
The configuration item status.String
getConfigurationStateId()
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.Date
getResourceCreationTime()
The time stamp when the resource was created.String
getResourceId()
The ID of the resource (for example.,sg-xxxxxx
).String
getResourceName()
The custom name of the resource, if available.String
getResourceType()
The type of AWS resource.Map<String,String>
getTags()
A mapping of key value tags associated with the resource.String
getVersion()
The version number of the resource configuration.int
hashCode()
void
setAccountId(String accountId)
The 12 digit AWS account ID associated with the resource.void
setArn(String arn)
The Amazon Resource Name (ARN) of the resource.void
setAvailabilityZone(String availabilityZone)
The Availability Zone associated with the resource.void
setAwsRegion(String awsRegion)
The region where the resource resides.void
setConfiguration(String configuration)
The description of the resource configuration.void
setConfigurationItemCaptureTime(Date configurationItemCaptureTime)
The time when the configuration recording was initiated.void
setConfigurationItemMD5Hash(String configurationItemMD5Hash)
Unique MD5 hash that represents the configuration item's state.void
setConfigurationItemStatus(ConfigurationItemStatus configurationItemStatus)
The configuration item status.void
setConfigurationItemStatus(String configurationItemStatus)
The configuration item status.void
setConfigurationStateId(String configurationStateId)
An identifier that indicates the ordering of the configuration items of a resource.void
setRelatedEvents(Collection<String> relatedEvents)
A list of CloudTrail event IDs.void
setRelationships(Collection<Relationship> relationships)
A list of related AWS resources.void
setResourceCreationTime(Date resourceCreationTime)
The time stamp when the resource was created.void
setResourceId(String resourceId)
The ID of the resource (for example.,sg-xxxxxx
).void
setResourceName(String resourceName)
The custom name of the resource, if available.void
setResourceType(ResourceType resourceType)
The type of AWS resource.void
setResourceType(String resourceType)
The type of AWS resource.void
setTags(Map<String,String> tags)
A mapping of key value tags associated with the resource.void
setVersion(String version)
The version number of the resource configuration.String
toString()
Returns a string representation of this object; useful for testing and debugging.ConfigurationItem
withAccountId(String accountId)
The 12 digit AWS account ID associated with the resource.ConfigurationItem
withArn(String arn)
The Amazon Resource Name (ARN) of the resource.ConfigurationItem
withAvailabilityZone(String availabilityZone)
The Availability Zone associated with the resource.ConfigurationItem
withAwsRegion(String awsRegion)
The region where the resource resides.ConfigurationItem
withConfiguration(String configuration)
The description of the resource configuration.ConfigurationItem
withConfigurationItemCaptureTime(Date configurationItemCaptureTime)
The time when the configuration recording was initiated.ConfigurationItem
withConfigurationItemMD5Hash(String configurationItemMD5Hash)
Unique MD5 hash that represents the configuration item's state.ConfigurationItem
withConfigurationItemStatus(ConfigurationItemStatus configurationItemStatus)
The configuration item status.ConfigurationItem
withConfigurationItemStatus(String configurationItemStatus)
The configuration item status.ConfigurationItem
withConfigurationStateId(String configurationStateId)
An identifier that indicates the ordering of the configuration items of a resource.ConfigurationItem
withRelatedEvents(String... relatedEvents)
A list of CloudTrail event IDs.ConfigurationItem
withRelatedEvents(Collection<String> relatedEvents)
A list of CloudTrail event IDs.ConfigurationItem
withRelationships(Relationship... relationships)
A list of related AWS resources.ConfigurationItem
withRelationships(Collection<Relationship> relationships)
A list of related AWS resources.ConfigurationItem
withResourceCreationTime(Date resourceCreationTime)
The time stamp when the resource was created.ConfigurationItem
withResourceId(String resourceId)
The ID of the resource (for example.,sg-xxxxxx
).ConfigurationItem
withResourceName(String resourceName)
The custom name of the resource, if available.ConfigurationItem
withResourceType(ResourceType resourceType)
The type of AWS resource.ConfigurationItem
withResourceType(String resourceType)
The type of AWS resource.ConfigurationItem
withTags(Map<String,String> tags)
A mapping of key value tags associated with the resource.ConfigurationItem
withVersion(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ConfigurationItem clone()
-
-