Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License").
   * You may not use this file except in compliance with the License.
   * A copy of the License is located at
   * 
   *  http://aws.amazon.com/apache2.0
   * 
  * or in the "license" file accompanying this file. This file is distributed
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  * express or implied. See the License for the specific language governing
  * permissions and limitations under the License.
  */
 package com.amazonaws.services.config.model;
 
 
Container for the parameters to the 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 .

 
 public class GetResourceConfigHistoryRequest extends AmazonWebServiceRequest implements SerializableCloneable {

    
The resource type.

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

 
     private String resourceType;

    
The ID of the resource (for example., sg-xxxxxx).
 
     private String resourceId;

    
The time stamp that indicates a later time. If not specified, current time is taken.
 
     private java.util.Date laterTime;

    
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.
 
     private java.util.Date earlierTime;

    
The chronological order for configuration items listed. By default the results are listed in reverse chronological order.

Constraints:
Allowed Values: Reverse, Forward

 
     private String chronologicalOrder;

    
The maximum number of configuration items returned in each page. The default is 10. You cannot specify a limit greater than 100.

Constraints:
Range: 0 - 100

 
     private Integer limit;

    
An optional parameter used for pagination of the results.
 
     private String nextToken;

    
The resource type.

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

Returns:
The resource type.
See also:
ResourceType
    public String getResourceType() {
        return ;
    }
    
    
The resource type.

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

Parameters:
resourceType The resource type.
See also:
ResourceType
    public void setResourceType(String resourceType) {
        this. = resourceType;
    }
    
    
The resource type.

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

Parameters:
resourceType The resource type.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
ResourceType
        this. = resourceType;
        return this;
    }

    
The resource type.

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

Parameters:
resourceType The resource type.
See also:
ResourceType
    public void setResourceType(ResourceType resourceType) {
        this. = resourceType.toString();
    }
    
    
The resource type.

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

Parameters:
resourceType The resource type.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
ResourceType
        this. = resourceType.toString();
        return this;
    }

    
The ID of the resource (for example., sg-xxxxxx).

Returns:
The ID of the resource (for example., sg-xxxxxx).
    public String getResourceId() {
        return ;
    }
    
    
The ID of the resource (for example., sg-xxxxxx).

Parameters:
resourceId The ID of the resource (for example., sg-xxxxxx).
    public void setResourceId(String resourceId) {
        this. = resourceId;
    }
    
    
The ID of the resource (for example., sg-xxxxxx).

Returns a reference to this object so that method calls can be chained together.

Parameters:
resourceId The ID of the resource (for example., sg-xxxxxx).
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = resourceId;
        return this;
    }

    
The time stamp that indicates a later time. If not specified, current time is taken.

Returns:
The time stamp that indicates a later time. If not specified, current time is taken.
    public java.util.Date getLaterTime() {
        return ;
    }
    
    
The time stamp that indicates a later time. If not specified, current time is taken.

Parameters:
laterTime The time stamp that indicates a later time. If not specified, current time is taken.
    public void setLaterTime(java.util.Date laterTime) {
        this. = laterTime;
    }
    
    
The time stamp that indicates a later time. If not specified, current time is taken.

Returns a reference to this object so that method calls can be chained together.

Parameters:
laterTime The time stamp that indicates a later time. If not specified, current time is taken.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = laterTime;
        return this;
    }

    
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.

Returns:
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 java.util.Date getEarlierTime() {
        return ;
    }
    
    
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.

Parameters:
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 void setEarlierTime(java.util.Date earlierTime) {
        this. = 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = earlierTime;
        return this;
    }

    
The chronological order for configuration items listed. By default the results are listed in reverse chronological order.

Constraints:
Allowed Values: Reverse, Forward

Returns:
The chronological order for configuration items listed. By default the results are listed in reverse chronological order.
See also:
ChronologicalOrder
    public String getChronologicalOrder() {
        return ;
    }
    
    
The chronological order for configuration items listed. By default the results are listed in reverse chronological order.

Constraints:
Allowed Values: Reverse, Forward

Parameters:
chronologicalOrder The chronological order for configuration items listed. By default the results are listed in reverse chronological order.
See also:
ChronologicalOrder
    public void setChronologicalOrder(String chronologicalOrder) {
        this. = chronologicalOrder;
    }
    
    
The chronological order for configuration items listed. By default the results are listed in reverse chronological order.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Reverse, Forward

Parameters:
chronologicalOrder The chronological order for configuration items listed. By default the results are listed in reverse chronological order.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
ChronologicalOrder
    public GetResourceConfigHistoryRequest withChronologicalOrder(String chronologicalOrder) {
        this. = chronologicalOrder;
        return this;
    }

    
The chronological order for configuration items listed. By default the results are listed in reverse chronological order.

Constraints:
Allowed Values: Reverse, Forward

Parameters:
chronologicalOrder The chronological order for configuration items listed. By default the results are listed in reverse chronological order.
See also:
ChronologicalOrder
    public void setChronologicalOrder(ChronologicalOrder chronologicalOrder) {
        this. = chronologicalOrder.toString();
    }
    
    
The chronological order for configuration items listed. By default the results are listed in reverse chronological order.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Reverse, Forward

Parameters:
chronologicalOrder The chronological order for configuration items listed. By default the results are listed in reverse chronological order.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
ChronologicalOrder
        this. = chronologicalOrder.toString();
        return this;
    }

    
The maximum number of configuration items returned in each page. The default is 10. You cannot specify a limit greater than 100.

Constraints:
Range: 0 - 100

Returns:
The maximum number of configuration items returned in each page. The default is 10. You cannot specify a limit greater than 100.
    public Integer getLimit() {
        return ;
    }
    
    
The maximum number of configuration items returned in each page. The default is 10. You cannot specify a limit greater than 100.

Constraints:
Range: 0 - 100

Parameters:
limit The maximum number of configuration items returned in each page. The default is 10. You cannot specify a limit greater than 100.
    public void setLimit(Integer limit) {
        this. = limit;
    }
    
    
The maximum number of configuration items returned in each page. The default is 10. You cannot specify a limit greater than 100.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Range: 0 - 100

Parameters:
limit The maximum number of configuration items returned in each page. The default is 10. You cannot specify a limit greater than 100.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = limit;
        return this;
    }

    
An optional parameter used for pagination of the results.

Returns:
An optional parameter used for pagination of the results.
    public String getNextToken() {
        return ;
    }
    
    
An optional parameter used for pagination of the results.

Parameters:
nextToken An optional parameter used for pagination of the results.
    public void setNextToken(String nextToken) {
        this. = nextToken;
    }
    
    
An optional parameter used for pagination of the results.

Returns a reference to this object so that method calls can be chained together.

Parameters:
nextToken An optional parameter used for pagination of the results.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = nextToken;
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getResourceType() != nullsb.append("ResourceType: " + getResourceType() + ",");
        if (getResourceId() != nullsb.append("ResourceId: " + getResourceId() + ",");
        if (getLaterTime() != nullsb.append("LaterTime: " + getLaterTime() + ",");
        if (getEarlierTime() != nullsb.append("EarlierTime: " + getEarlierTime() + ",");
        if (getChronologicalOrder() != nullsb.append("ChronologicalOrder: " + getChronologicalOrder() + ",");
        if (getLimit() != nullsb.append("Limit: " + getLimit() + ",");
        if (getNextToken() != nullsb.append("NextToken: " + getNextToken() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode()); 
        hashCode = prime * hashCode + ((getResourceId() == null) ? 0 : getResourceId().hashCode()); 
        hashCode = prime * hashCode + ((getLaterTime() == null) ? 0 : getLaterTime().hashCode()); 
        hashCode = prime * hashCode + ((getEarlierTime() == null) ? 0 : getEarlierTime().hashCode()); 
        hashCode = prime * hashCode + ((getChronologicalOrder() == null) ? 0 : getChronologicalOrder().hashCode()); 
        hashCode = prime * hashCode + ((getLimit() == null) ? 0 : getLimit().hashCode()); 
        hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof GetResourceConfigHistoryRequest == falsereturn false;
        
        if (other.getResourceType() == null ^ this.getResourceType() == nullreturn false;
        if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == falsereturn false
        if (other.getResourceId() == null ^ this.getResourceId() == nullreturn false;
        if (other.getResourceId() != null && other.getResourceId().equals(this.getResourceId()) == falsereturn false
        if (other.getLaterTime() == null ^ this.getLaterTime() == nullreturn false;
        if (other.getLaterTime() != null && other.getLaterTime().equals(this.getLaterTime()) == falsereturn false
        if (other.getEarlierTime() == null ^ this.getEarlierTime() == nullreturn false;
        if (other.getEarlierTime() != null && other.getEarlierTime().equals(this.getEarlierTime()) == falsereturn false
        if (other.getChronologicalOrder() == null ^ this.getChronologicalOrder() == nullreturn false;
        if (other.getChronologicalOrder() != null && other.getChronologicalOrder().equals(this.getChronologicalOrder()) == falsereturn false
        if (other.getLimit() == null ^ this.getLimit() == nullreturn false;
        if (other.getLimit() != null && other.getLimit().equals(this.getLimit()) == falsereturn false
        if (other.getNextToken() == null ^ this.getNextToken() == nullreturn false;
        if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == falsereturn false
        return true;
    }
    
    @Override
        
            return (GetResourceConfigHistoryRequestsuper.clone();
    }
}
    
New to GrepCode? Check out our FAQ X