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