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

com.amazonaws.services.glacier.model.InventoryRetrievalJobInput Maven / Gradle / Ivy

Go to download

The Amazon Web Services 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).

The newest version!
/*
 * Copyright 2010-2014 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;

import java.io.Serializable;

/**
 * 

* Provides options for specifying a range inventory retrieval job. *

*/ public class InventoryRetrievalJobInput implements Serializable { /** * 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. * * @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. */ public String getStartDate() { return 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. * * @param 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 = 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. * * @param 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. * * @return A reference to this updated object so that method calls can be chained * together. */ public InventoryRetrievalJobInput withStartDate(String startDate) { this.startDate = 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. * * @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. */ public String getEndDate() { return 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. * * @param 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 = 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. * * @param 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. * * @return A reference to this updated object so that method calls can be chained * together. */ public InventoryRetrievalJobInput withEndDate(String endDate) { this.endDate = 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. * * @return 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 limit; } /** * Specifies the maximum number of inventory items returned per vault * inventory retrieval request. Valid values are greater than or equal to * 1. * * @param 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 = 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. * * @param limit Specifies the maximum number of inventory items returned per vault * inventory retrieval request. Valid values are greater than or equal to * 1. * * @return A reference to this updated object so that method calls can be chained * together. */ public InventoryRetrievalJobInput withLimit(String limit) { this.limit = 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. * * @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. */ public String getMarker() { return 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. * * @param 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 = 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. * * @param 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. * * @return A reference to this updated object so that method calls can be chained * together. */ public InventoryRetrievalJobInput withMarker(String marker) { this.marker = marker; 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 (getStartDate() != null) sb.append("StartDate: " + getStartDate() + ","); if (getEndDate() != null) sb.append("EndDate: " + getEndDate() + ","); if (getLimit() != null) sb.append("Limit: " + getLimit() + ","); if (getMarker() != null) sb.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 == obj) return true; if (obj == null) return false; if (obj instanceof InventoryRetrievalJobInput == false) return false; InventoryRetrievalJobInput other = (InventoryRetrievalJobInput)obj; if (other.getStartDate() == null ^ this.getStartDate() == null) return false; if (other.getStartDate() != null && other.getStartDate().equals(this.getStartDate()) == false) return false; if (other.getEndDate() == null ^ this.getEndDate() == null) return false; if (other.getEndDate() != null && other.getEndDate().equals(this.getEndDate()) == 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.getMarker() == null ^ this.getMarker() == null) return false; if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false) return false; return true; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy