public class ConfigurationItem extends Object implements Serializable, Cloneable
A list that contains detailed configurations of a specified resource.
NOTE: Currently, the list does not contain information about non-AWS components (for example, applications on your Amazon EC2 instances).
Constructor and Description |
---|
ConfigurationItem() |
Modifier and Type | Method and Description |
---|---|
ConfigurationItem |
addTagsEntry(String key,
String value)
A mapping of key value tags associated with the resource.
|
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 |
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 |
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 |
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 |
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 |
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(Collection<String> relatedEvents)
A list of CloudTrail event IDs.
|
ConfigurationItem |
withRelatedEvents(String... relatedEvents)
A list of CloudTrail event IDs.
|
ConfigurationItem |
withRelationships(Collection<Relationship> relationships)
A list of related AWS resources.
|
ConfigurationItem |
withRelationships(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 |
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.
|
public String getVersion()
public void setVersion(String version)
version
- The version number of the resource configuration.public ConfigurationItem withVersion(String version)
Returns a reference to this object so that method calls can be chained together.
version
- The version number of the resource configuration.public String getAccountId()
public void setAccountId(String accountId)
accountId
- The 12 digit AWS account ID associated with the resource.public ConfigurationItem withAccountId(String accountId)
Returns a reference to this object so that method calls can be chained together.
accountId
- The 12 digit AWS account ID associated with the resource.public Date getConfigurationItemCaptureTime()
public void setConfigurationItemCaptureTime(Date configurationItemCaptureTime)
configurationItemCaptureTime
- The time when the configuration recording was initiated.public ConfigurationItem withConfigurationItemCaptureTime(Date configurationItemCaptureTime)
Returns a reference to this object so that method calls can be chained together.
configurationItemCaptureTime
- The time when the configuration recording was initiated.public String getConfigurationItemStatus()
Constraints:
Allowed Values: Ok, Failed, Discovered, Deleted
ConfigurationItemStatus
public void setConfigurationItemStatus(String configurationItemStatus)
Constraints:
Allowed Values: Ok, Failed, Discovered, Deleted
configurationItemStatus
- The configuration item status.ConfigurationItemStatus
public ConfigurationItem withConfigurationItemStatus(String configurationItemStatus)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Ok, Failed, Discovered, Deleted
configurationItemStatus
- The configuration item status.ConfigurationItemStatus
public void setConfigurationItemStatus(ConfigurationItemStatus configurationItemStatus)
Constraints:
Allowed Values: Ok, Failed, Discovered, Deleted
configurationItemStatus
- The configuration item status.ConfigurationItemStatus
public ConfigurationItem withConfigurationItemStatus(ConfigurationItemStatus configurationItemStatus)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Ok, Failed, Discovered, Deleted
configurationItemStatus
- The configuration item status.ConfigurationItemStatus
public String getConfigurationStateId()
public void setConfigurationStateId(String configurationStateId)
configurationStateId
- An identifier that indicates the ordering of the configuration items
of a resource.public ConfigurationItem withConfigurationStateId(String configurationStateId)
Returns a reference to this object so that method calls can be chained together.
configurationStateId
- An identifier that indicates the ordering of the configuration items
of a resource.public String getConfigurationItemMD5Hash()
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 void setConfigurationItemMD5Hash(String configurationItemMD5Hash)
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 ConfigurationItem withConfigurationItemMD5Hash(String configurationItemMD5Hash)
You can use MD5 hash to compare the states of two or more configuration items that are associated with the same resource.
Returns a reference to this object so that method calls can be chained together.
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 String getArn()
public void setArn(String arn)
arn
- The Amazon Resource Name (ARN) of the resource.public ConfigurationItem withArn(String arn)
Returns a reference to this object so that method calls can be chained together.
arn
- The Amazon Resource Name (ARN) of the resource.public String getResourceType()
Constraints:
Allowed Values: AWS::EC2::CustomerGateway, AWS::EC2::EIP, AWS::EC2::Instance, AWS::EC2::InternetGateway, AWS::EC2::NetworkAcl, AWS::EC2::NetworkInterface, AWS::EC2::RouteTable, AWS::EC2::SecurityGroup, AWS::EC2::Subnet, AWS::CloudTrail::Trail, AWS::EC2::Volume, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway
ResourceType
public void setResourceType(String resourceType)
Constraints:
Allowed Values: AWS::EC2::CustomerGateway, AWS::EC2::EIP, AWS::EC2::Instance, AWS::EC2::InternetGateway, AWS::EC2::NetworkAcl, AWS::EC2::NetworkInterface, AWS::EC2::RouteTable, AWS::EC2::SecurityGroup, AWS::EC2::Subnet, AWS::CloudTrail::Trail, AWS::EC2::Volume, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway
resourceType
- The type of AWS resource.ResourceType
public ConfigurationItem withResourceType(String resourceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: AWS::EC2::CustomerGateway, AWS::EC2::EIP, AWS::EC2::Instance, AWS::EC2::InternetGateway, AWS::EC2::NetworkAcl, AWS::EC2::NetworkInterface, AWS::EC2::RouteTable, AWS::EC2::SecurityGroup, AWS::EC2::Subnet, AWS::CloudTrail::Trail, AWS::EC2::Volume, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway
resourceType
- The type of AWS resource.ResourceType
public void setResourceType(ResourceType resourceType)
Constraints:
Allowed Values: AWS::EC2::CustomerGateway, AWS::EC2::EIP, AWS::EC2::Instance, AWS::EC2::InternetGateway, AWS::EC2::NetworkAcl, AWS::EC2::NetworkInterface, AWS::EC2::RouteTable, AWS::EC2::SecurityGroup, AWS::EC2::Subnet, AWS::CloudTrail::Trail, AWS::EC2::Volume, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway
resourceType
- The type of AWS resource.ResourceType
public ConfigurationItem withResourceType(ResourceType resourceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: AWS::EC2::CustomerGateway, AWS::EC2::EIP, AWS::EC2::Instance, AWS::EC2::InternetGateway, AWS::EC2::NetworkAcl, AWS::EC2::NetworkInterface, AWS::EC2::RouteTable, AWS::EC2::SecurityGroup, AWS::EC2::Subnet, AWS::CloudTrail::Trail, AWS::EC2::Volume, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway
resourceType
- The type of AWS resource.ResourceType
public String getResourceId()
sg-xxxxxx
).sg-xxxxxx
).public void setResourceId(String resourceId)
sg-xxxxxx
).resourceId
- The ID of the resource (for example., sg-xxxxxx
).public ConfigurationItem withResourceId(String resourceId)
sg-xxxxxx
).
Returns a reference to this object so that method calls can be chained together.
resourceId
- The ID of the resource (for example., sg-xxxxxx
).public String getAvailabilityZone()
public void setAvailabilityZone(String availabilityZone)
availabilityZone
- The Availability Zone associated with the resource.public ConfigurationItem withAvailabilityZone(String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone
- The Availability Zone associated with the resource.public Date getResourceCreationTime()
public void setResourceCreationTime(Date resourceCreationTime)
resourceCreationTime
- The time stamp when the resource was created.public ConfigurationItem withResourceCreationTime(Date resourceCreationTime)
Returns a reference to this object so that method calls can be chained together.
resourceCreationTime
- The time stamp when the resource was created.public Map<String,String> getTags()
public void setTags(Map<String,String> tags)
tags
- A mapping of key value tags associated with the resource.public ConfigurationItem withTags(Map<String,String> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- A mapping of key value tags associated with the resource.public ConfigurationItem addTagsEntry(String key, String value)
The method adds a new key-value pair into Tags parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into Tags.value
- The corresponding value of the entry to be added into Tags.public ConfigurationItem clearTagsEntries()
Returns a reference to this object so that method calls can be chained together.
public List<String> getRelatedEvents()
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(Collection<String> relatedEvents)
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(String... relatedEvents)
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.
Returns a reference to this object so that method calls can be chained together.
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(Collection<String> relatedEvents)
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 reference to this object so that method calls can be chained together.
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 List<Relationship> getRelationships()
public void setRelationships(Collection<Relationship> relationships)
relationships
- A list of related AWS resources.public ConfigurationItem withRelationships(Relationship... relationships)
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.
Returns a reference to this object so that method calls can be chained together.
relationships
- A list of related AWS resources.public ConfigurationItem withRelationships(Collection<Relationship> relationships)
Returns a reference to this object so that method calls can be chained together.
relationships
- A list of related AWS resources.public String getConfiguration()
public void setConfiguration(String configuration)
configuration
- The description of the resource configuration.public ConfigurationItem withConfiguration(String configuration)
Returns a reference to this object so that method calls can be chained together.
configuration
- The description of the resource configuration.public String toString()
toString
in class Object
Object.toString()
public ConfigurationItem clone()
Copyright © 2015. All rights reserved.