public class GetResourceConfigHistoryRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
GetResourceConfigHistory operation
.
Returns a list of configuration items for the specified resource. The
list contains details about each state of the resource during the
specified time interval. You can specify a limit
on the
number of results returned on the page. If a limit is specified, a
nextToken
is returned as part of the result that you can
use to continue this request.
NOTE: Each call to the API is limited to span a duration of seven days. It is likely that the number of records returned is smaller than the specified limit. In such cases, you can make another call, using the nextToken .
NOOP
Constructor and Description |
---|
GetResourceConfigHistoryRequest() |
Modifier and Type | Method and Description |
---|---|
GetResourceConfigHistoryRequest |
clone() |
boolean |
equals(Object obj) |
String |
getChronologicalOrder()
The chronological order for configuration items listed.
|
Date |
getEarlierTime()
The time stamp that indicates an earlier time.
|
Date |
getLaterTime()
The time stamp that indicates a later time.
|
Integer |
getLimit()
The maximum number of configuration items returned in each page.
|
String |
getNextToken()
An optional parameter used for pagination of the results.
|
String |
getResourceId()
The ID of the resource (for example.,
sg-xxxxxx ). |
String |
getResourceType()
The resource type.
|
int |
hashCode() |
void |
setChronologicalOrder(ChronologicalOrder chronologicalOrder)
The chronological order for configuration items listed.
|
void |
setChronologicalOrder(String chronologicalOrder)
The chronological order for configuration items listed.
|
void |
setEarlierTime(Date earlierTime)
The time stamp that indicates an earlier time.
|
void |
setLaterTime(Date laterTime)
The time stamp that indicates a later time.
|
void |
setLimit(Integer limit)
The maximum number of configuration items returned in each page.
|
void |
setNextToken(String nextToken)
An optional parameter used for pagination of the results.
|
void |
setResourceId(String resourceId)
The ID of the resource (for example.,
sg-xxxxxx ). |
void |
setResourceType(ResourceType resourceType)
The resource type.
|
void |
setResourceType(String resourceType)
The resource type.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetResourceConfigHistoryRequest |
withChronologicalOrder(ChronologicalOrder chronologicalOrder)
The chronological order for configuration items listed.
|
GetResourceConfigHistoryRequest |
withChronologicalOrder(String chronologicalOrder)
The chronological order for configuration items listed.
|
GetResourceConfigHistoryRequest |
withEarlierTime(Date earlierTime)
The time stamp that indicates an earlier time.
|
GetResourceConfigHistoryRequest |
withLaterTime(Date laterTime)
The time stamp that indicates a later time.
|
GetResourceConfigHistoryRequest |
withLimit(Integer limit)
The maximum number of configuration items returned in each page.
|
GetResourceConfigHistoryRequest |
withNextToken(String nextToken)
An optional parameter used for pagination of the results.
|
GetResourceConfigHistoryRequest |
withResourceId(String resourceId)
The ID of the resource (for example.,
sg-xxxxxx ). |
GetResourceConfigHistoryRequest |
withResourceType(ResourceType resourceType)
The resource type.
|
GetResourceConfigHistoryRequest |
withResourceType(String resourceType)
The resource type.
|
copyBaseTo, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
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 resource type.ResourceType
public GetResourceConfigHistoryRequest 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 resource type.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 resource type.ResourceType
public GetResourceConfigHistoryRequest 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 resource type.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 GetResourceConfigHistoryRequest 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 Date getLaterTime()
public void setLaterTime(Date laterTime)
laterTime
- The time stamp that indicates a later time. If not specified, current
time is taken.public GetResourceConfigHistoryRequest withLaterTime(Date laterTime)
Returns a reference to this object so that method calls can be chained together.
laterTime
- The time stamp that indicates a later time. If not specified, current
time is taken.public Date getEarlierTime()
public void setEarlierTime(Date earlierTime)
earlierTime
- The time stamp that indicates an earlier time. If not specified, the
action returns paginated results that contain configuration items that
start from when the first configuration item was recorded.public GetResourceConfigHistoryRequest withEarlierTime(Date earlierTime)
Returns a reference to this object so that method calls can be chained together.
earlierTime
- The time stamp that indicates an earlier time. If not specified, the
action returns paginated results that contain configuration items that
start from when the first configuration item was recorded.public String getChronologicalOrder()
Constraints:
Allowed Values: Reverse, Forward
ChronologicalOrder
public void setChronologicalOrder(String chronologicalOrder)
Constraints:
Allowed Values: Reverse, Forward
chronologicalOrder
- The chronological order for configuration items listed. By default the
results are listed in reverse chronological order.ChronologicalOrder
public GetResourceConfigHistoryRequest withChronologicalOrder(String chronologicalOrder)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Reverse, Forward
chronologicalOrder
- The chronological order for configuration items listed. By default the
results are listed in reverse chronological order.ChronologicalOrder
public void setChronologicalOrder(ChronologicalOrder chronologicalOrder)
Constraints:
Allowed Values: Reverse, Forward
chronologicalOrder
- The chronological order for configuration items listed. By default the
results are listed in reverse chronological order.ChronologicalOrder
public GetResourceConfigHistoryRequest withChronologicalOrder(ChronologicalOrder chronologicalOrder)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Reverse, Forward
chronologicalOrder
- The chronological order for configuration items listed. By default the
results are listed in reverse chronological order.ChronologicalOrder
public Integer getLimit()
Constraints:
Range: 0 - 100
public void setLimit(Integer limit)
Constraints:
Range: 0 - 100
limit
- The maximum number of configuration items returned in each page. The
default is 10. You cannot specify a limit greater than 100.public GetResourceConfigHistoryRequest withLimit(Integer limit)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 - 100
limit
- The maximum number of configuration items returned in each page. The
default is 10. You cannot specify a limit greater than 100.public String getNextToken()
public void setNextToken(String nextToken)
nextToken
- An optional parameter used for pagination of the results.public GetResourceConfigHistoryRequest withNextToken(String nextToken)
Returns a reference to this object so that method calls can be chained together.
nextToken
- An optional parameter used for pagination of the results.public String toString()
toString
in class Object
Object.toString()
public GetResourceConfigHistoryRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2015. All rights reserved.