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.glacier.model;
 

Provides options for specifying a range inventory retrieval job.

 
 public class InventoryRetrievalJobInput implements SerializableCloneable {

    
The start of the date range in UTC for vault inventory retrieval that includes archives created on or after this date. A string representation of ISO 8601 date format, for example, 2013-03-20T17:03:43Z.
 
     private String startDate;

    
The end of the date range in UTC for vault inventory retrieval that includes archives created before this date. A string representation of ISO 8601 date format, for example, 2013-03-20T17:03:43Z.
 
     private String endDate;

    
Specifies the maximum number of inventory items returned per vault inventory retrieval request. Valid values are greater than or equal to 1.
 
     private String limit;

    
An opaque string that represents where to continue pagination of the vault inventory retrieval results. You use the marker in a new InitiateJob request to obtain additional inventory items. If there are no more inventory items, this value is null.
 
     private String marker;

    
The start of the date range in UTC for vault inventory retrieval that includes archives created on or after this date. A string representation of ISO 8601 date format, for example, 2013-03-20T17:03:43Z.

Returns:
The start of the date range in UTC for vault inventory retrieval that includes archives created on or after this date. A string representation of ISO 8601 date format, for example, 2013-03-20T17:03:43Z.
 
     public String getStartDate() {
         return ;
     }
    
    
The start of the date range in UTC for vault inventory retrieval that includes archives created on or after this date. A string representation of ISO 8601 date format, for example, 2013-03-20T17:03:43Z.

Parameters:
startDate The start of the date range in UTC for vault inventory retrieval that includes archives created on or after this date. A string representation of ISO 8601 date format, for example, 2013-03-20T17:03:43Z.
 
     public void setStartDate(String startDate) {
         this. = startDate;
     }
    
    
The start of the date range in UTC for vault inventory retrieval that includes archives created on or after this date. A string representation of ISO 8601 date format, for example, 2013-03-20T17:03:43Z.

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

Parameters:
startDate The start of the date range in UTC for vault inventory retrieval that includes archives created on or after this date. A string representation of ISO 8601 date format, for example, 2013-03-20T17:03:43Z.
Returns:
A reference to this updated object so that method calls can be chained together.
    public InventoryRetrievalJobInput withStartDate(String startDate) {
        this. = startDate;
        return this;
    }

    
The end of the date range in UTC for vault inventory retrieval that includes archives created before this date. A string representation of ISO 8601 date format, for example, 2013-03-20T17:03:43Z.

Returns:
The end of the date range in UTC for vault inventory retrieval that includes archives created before this date. A string representation of ISO 8601 date format, for example, 2013-03-20T17:03:43Z.
    public String getEndDate() {
        return ;
    }
    
    
The end of the date range in UTC for vault inventory retrieval that includes archives created before this date. A string representation of ISO 8601 date format, for example, 2013-03-20T17:03:43Z.

Parameters:
endDate The end of the date range in UTC for vault inventory retrieval that includes archives created before this date. A string representation of ISO 8601 date format, for example, 2013-03-20T17:03:43Z.
    public void setEndDate(String endDate) {
        this. = endDate;
    }
    
    
The end of the date range in UTC for vault inventory retrieval that includes archives created before this date. A string representation of ISO 8601 date format, for example, 2013-03-20T17:03:43Z.

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

Parameters:
endDate The end of the date range in UTC for vault inventory retrieval that includes archives created before this date. A string representation of ISO 8601 date format, for example, 2013-03-20T17:03:43Z.
Returns:
A reference to this updated object so that method calls can be chained together.
    public InventoryRetrievalJobInput withEndDate(String endDate) {
        this. = endDate;
        return this;
    }

    
Specifies the maximum number of inventory items returned per vault inventory retrieval request. Valid values are greater than or equal to 1.

Returns:
Specifies the maximum number of inventory items returned per vault inventory retrieval request. Valid values are greater than or equal to 1.
    public String getLimit() {
        return ;
    }
    
    
Specifies the maximum number of inventory items returned per vault inventory retrieval request. Valid values are greater than or equal to 1.

Parameters:
limit Specifies the maximum number of inventory items returned per vault inventory retrieval request. Valid values are greater than or equal to 1.
    public void setLimit(String limit) {
        this. = limit;
    }
    
    
Specifies the maximum number of inventory items returned per vault inventory retrieval request. Valid values are greater than or equal to 1.

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

Parameters:
limit Specifies the maximum number of inventory items returned per vault inventory retrieval request. Valid values are greater than or equal to 1.
Returns:
A reference to this updated object so that method calls can be chained together.
    public InventoryRetrievalJobInput withLimit(String limit) {
        this. = limit;
        return this;
    }

    
An opaque string that represents where to continue pagination of the vault inventory retrieval results. You use the marker in a new InitiateJob request to obtain additional inventory items. If there are no more inventory items, this value is null.

Returns:
An opaque string that represents where to continue pagination of the vault inventory retrieval results. You use the marker in a new InitiateJob request to obtain additional inventory items. If there are no more inventory items, this value is null.
    public String getMarker() {
        return ;
    }
    
    
An opaque string that represents where to continue pagination of the vault inventory retrieval results. You use the marker in a new InitiateJob request to obtain additional inventory items. If there are no more inventory items, this value is null.

Parameters:
marker An opaque string that represents where to continue pagination of the vault inventory retrieval results. You use the marker in a new InitiateJob request to obtain additional inventory items. If there are no more inventory items, this value is null.
    public void setMarker(String marker) {
        this. = marker;
    }
    
    
An opaque string that represents where to continue pagination of the vault inventory retrieval results. You use the marker in a new InitiateJob request to obtain additional inventory items. If there are no more inventory items, this value is null.

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

Parameters:
marker An opaque string that represents where to continue pagination of the vault inventory retrieval results. You use the marker in a new InitiateJob request to obtain additional inventory items. If there are no more inventory items, this value is null.
Returns:
A reference to this updated object so that method calls can be chained together.
    public InventoryRetrievalJobInput withMarker(String marker) {
        this. = marker;
        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 (getStartDate() != nullsb.append("StartDate: " + getStartDate() + ",");
        if (getEndDate() != nullsb.append("EndDate: " + getEndDate() + ",");
        if (getLimit() != nullsb.append("Limit: " + getLimit() + ",");
        if (getMarker() != nullsb.append("Marker: " + getMarker() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getStartDate() == null) ? 0 : getStartDate().hashCode()); 
        hashCode = prime * hashCode + ((getEndDate() == null) ? 0 : getEndDate().hashCode()); 
        hashCode = prime * hashCode + ((getLimit() == null) ? 0 : getLimit().hashCode()); 
        hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof InventoryRetrievalJobInput == falsereturn false;
        
        if (other.getStartDate() == null ^ this.getStartDate() == nullreturn false;
        if (other.getStartDate() != null && other.getStartDate().equals(this.getStartDate()) == falsereturn false
        if (other.getEndDate() == null ^ this.getEndDate() == nullreturn false;
        if (other.getEndDate() != null && other.getEndDate().equals(this.getEndDate()) == falsereturn false
        if (other.getLimit() == null ^ this.getLimit() == nullreturn false;
        if (other.getLimit() != null && other.getLimit().equals(this.getLimit()) == falsereturn false
        if (other.getMarker() == null ^ this.getMarker() == nullreturn false;
        if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == falsereturn false
        return true;
    }
    
    @Override
    public InventoryRetrievalJobInput clone() {
        try {
            return (InventoryRetrievalJobInputsuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X