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.
The response is paginated, and by default, AWS Config returns a limit
of 10 configuration items per page. You can customize this number with
the limit
parameter. The response includes a
nextToken
string, and to get the next
page of results, run the request again and enter this string for the
nextToken
parameter.
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()
Creates a shallow clone of this request.
|
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 on each page.
|
String |
getNextToken()
The
nextToken string returned on a previous page that you
use to get the next page of results in a paginated response. |
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 on each page.
|
void |
setNextToken(String nextToken)
The
nextToken string returned on a previous page that you
use to get the next page of results in a paginated response. |
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 on each page.
|
GetResourceConfigHistoryRequest |
withNextToken(String nextToken)
The
nextToken string returned on a previous page that you
use to get the next page of results in a paginated response. |
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, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, 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 on each page. The
default is 10. You cannot specify a limit greater than 100. If you
specify 0, AWS Config uses the default.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 on each page. The
default is 10. You cannot specify a limit greater than 100. If you
specify 0, AWS Config uses the default.public String getNextToken()
nextToken
string returned on a previous page that you
use to get the next page of results in a paginated response.nextToken
string returned on a previous page that you
use to get the next page of results in a paginated response.public void setNextToken(String nextToken)
nextToken
string returned on a previous page that you
use to get the next page of results in a paginated response.nextToken
- The nextToken
string returned on a previous page that you
use to get the next page of results in a paginated response.public GetResourceConfigHistoryRequest withNextToken(String nextToken)
nextToken
string returned on a previous page that you
use to get the next page of results in a paginated response.
Returns a reference to this object so that method calls can be chained together.
nextToken
- The nextToken
string returned on a previous page that you
use to get the next page of results in a paginated response.public String toString()
toString
in class Object
Object.toString()
public GetResourceConfigHistoryRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.