All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.config.model.GetResourceConfigHistoryRequest Maven / Gradle / Ivy

Go to download

The AWS SDK for Java with support for OSGi. The AWS SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

There is a newer version: 1.11.60
Show newest version
/*
 * Copyright 2011-2016 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;

import java.io.Serializable;
import com.amazonaws.AmazonWebServiceRequest;

/**
 * 

* The input for the GetResourceConfigHistory action. *

*/ public class GetResourceConfigHistoryRequest extends AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The resource type. *

*/ 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. *

*/ private String chronologicalOrder; /** *

* 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. *

*/ private Integer limit; /** *

* The nextToken string returned on a previous page that you * use to get the next page of results in a paginated response. *

*/ private String nextToken; /** *

* The resource type. *

* * @param resourceType * The resource type. * @see ResourceType */ public void setResourceType(String resourceType) { this.resourceType = resourceType; } /** *

* The resource type. *

* * @return The resource type. * @see ResourceType */ public String getResourceType() { return this.resourceType; } /** *

* The resource type. *

* * @param resourceType * The resource type. * @return Returns a reference to this object so that method calls can be * chained together. * @see ResourceType */ public GetResourceConfigHistoryRequest withResourceType(String resourceType) { setResourceType(resourceType); return this; } /** *

* The resource type. *

* * @param resourceType * The resource type. * @see ResourceType */ public void setResourceType(ResourceType resourceType) { this.resourceType = resourceType.toString(); } /** *

* The resource type. *

* * @param resourceType * The resource type. * @return Returns a reference to this object so that method calls can be * chained together. * @see ResourceType */ public GetResourceConfigHistoryRequest withResourceType( ResourceType resourceType) { setResourceType(resourceType); return this; } /** *

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

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

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

* * @return The ID of the resource (for example., sg-xxxxxx). */ public String getResourceId() { return this.resourceId; } /** *

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

* * @param resourceId * The ID of the resource (for example., sg-xxxxxx). * @return Returns a reference to this object so that method calls can be * chained together. */ public GetResourceConfigHistoryRequest withResourceId(String resourceId) { setResourceId(resourceId); return this; } /** *

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

* * @param 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 = laterTime; } /** *

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

* * @return The time stamp that indicates a later time. If not specified, * current time is taken. */ public java.util.Date getLaterTime() { return this.laterTime; } /** *

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

* * @param laterTime * The time stamp that indicates a later time. If not specified, * current time is taken. * @return Returns a reference to this object so that method calls can be * chained together. */ public GetResourceConfigHistoryRequest withLaterTime( java.util.Date laterTime) { setLaterTime(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. *

* * @param 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 = 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. *

* * @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. */ public java.util.Date getEarlierTime() { return 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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be * chained together. */ public GetResourceConfigHistoryRequest withEarlierTime( java.util.Date earlierTime) { setEarlierTime(earlierTime); return this; } /** *

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

* * @param chronologicalOrder * The chronological order for configuration items listed. By default * the results are listed in reverse chronological order. * @see ChronologicalOrder */ public void setChronologicalOrder(String chronologicalOrder) { this.chronologicalOrder = chronologicalOrder; } /** *

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

* * @return The chronological order for configuration items listed. By * default the results are listed in reverse chronological order. * @see ChronologicalOrder */ public String getChronologicalOrder() { return this.chronologicalOrder; } /** *

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

* * @param chronologicalOrder * The chronological order for configuration items listed. By default * the results are listed in reverse chronological order. * @return Returns a reference to this object so that method calls can be * chained together. * @see ChronologicalOrder */ public GetResourceConfigHistoryRequest withChronologicalOrder( String chronologicalOrder) { setChronologicalOrder(chronologicalOrder); return this; } /** *

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

* * @param chronologicalOrder * The chronological order for configuration items listed. By default * the results are listed in reverse chronological order. * @see ChronologicalOrder */ public void setChronologicalOrder(ChronologicalOrder chronologicalOrder) { this.chronologicalOrder = chronologicalOrder.toString(); } /** *

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

* * @param chronologicalOrder * The chronological order for configuration items listed. By default * the results are listed in reverse chronological order. * @return Returns a reference to this object so that method calls can be * chained together. * @see ChronologicalOrder */ public GetResourceConfigHistoryRequest withChronologicalOrder( ChronologicalOrder chronologicalOrder) { setChronologicalOrder(chronologicalOrder); return this; } /** *

* 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. *

* * @param 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 void setLimit(Integer limit) { this.limit = 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. *

* * @return 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 Integer getLimit() { return this.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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be * chained together. */ public GetResourceConfigHistoryRequest withLimit(Integer limit) { setLimit(limit); return this; } /** *

* The nextToken string returned on a previous page that you * use to get the next page of results in a paginated response. *

* * @param nextToken * The 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) { this.nextToken = nextToken; } /** *

* The nextToken string returned on a previous page that you * use to get the next page of results in a paginated response. *

* * @return The nextToken string returned on a previous page * that you use to get the next page of results in a paginated * response. */ public String getNextToken() { return this.nextToken; } /** *

* The nextToken string returned on a previous page that you * use to get the next page of results in a paginated response. *

* * @param nextToken * The nextToken string returned on a previous page that * you use to get the next page of results in a paginated response. * @return Returns a reference to this object so that method calls can be * chained together. */ public GetResourceConfigHistoryRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getResourceType() != null) sb.append("ResourceType: " + getResourceType() + ","); if (getResourceId() != null) sb.append("ResourceId: " + getResourceId() + ","); if (getLaterTime() != null) sb.append("LaterTime: " + getLaterTime() + ","); if (getEarlierTime() != null) sb.append("EarlierTime: " + getEarlierTime() + ","); if (getChronologicalOrder() != null) sb.append("ChronologicalOrder: " + getChronologicalOrder() + ","); if (getLimit() != null) sb.append("Limit: " + getLimit() + ","); if (getNextToken() != null) sb.append("NextToken: " + getNextToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetResourceConfigHistoryRequest == false) return false; GetResourceConfigHistoryRequest other = (GetResourceConfigHistoryRequest) obj; if (other.getResourceType() == null ^ this.getResourceType() == null) return false; if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == false) return false; if (other.getResourceId() == null ^ this.getResourceId() == null) return false; if (other.getResourceId() != null && other.getResourceId().equals(this.getResourceId()) == false) return false; if (other.getLaterTime() == null ^ this.getLaterTime() == null) return false; if (other.getLaterTime() != null && other.getLaterTime().equals(this.getLaterTime()) == false) return false; if (other.getEarlierTime() == null ^ this.getEarlierTime() == null) return false; if (other.getEarlierTime() != null && other.getEarlierTime().equals(this.getEarlierTime()) == false) return false; if (other.getChronologicalOrder() == null ^ this.getChronologicalOrder() == null) return false; if (other.getChronologicalOrder() != null && other.getChronologicalOrder().equals( this.getChronologicalOrder()) == false) return false; if (other.getLimit() == null ^ this.getLimit() == null) return false; if (other.getLimit() != null && other.getLimit().equals(this.getLimit()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; return true; } @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 GetResourceConfigHistoryRequest clone() { return (GetResourceConfigHistoryRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy