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