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

com.amazonaws.services.datapipeline.model.QueryObjectsResult Maven / Gradle / Ivy

/*
 * 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.datapipeline.model;

import java.io.Serializable;

/**
 * 

* Contains the output from the QueryObjects action. *

*/ public class QueryObjectsResult implements Serializable { /** * A list of identifiers that match the query selectors. */ private com.amazonaws.internal.ListWithAutoConstructFlag ids; /** * The starting point for the results to be returned. As long as the * action returns HasMoreResults as True, you * can call QueryObjects again and pass the marker value from the * response to retrieve the next set of results. *

* Constraints:
* Length: 0 - 1024
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
*/ private String marker; /** * If True, there are more results that can be obtained by a * subsequent call to QueryObjects. */ private Boolean hasMoreResults; /** * A list of identifiers that match the query selectors. * * @return A list of identifiers that match the query selectors. */ public java.util.List getIds() { if (ids == null) { ids = new com.amazonaws.internal.ListWithAutoConstructFlag(); ids.setAutoConstruct(true); } return ids; } /** * A list of identifiers that match the query selectors. * * @param ids A list of identifiers that match the query selectors. */ public void setIds(java.util.Collection ids) { if (ids == null) { this.ids = null; return; } com.amazonaws.internal.ListWithAutoConstructFlag idsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(ids.size()); idsCopy.addAll(ids); this.ids = idsCopy; } /** * A list of identifiers that match the query selectors. *

* Returns a reference to this object so that method calls can be chained together. * * @param ids A list of identifiers that match the query selectors. * * @return A reference to this updated object so that method calls can be chained * together. */ public QueryObjectsResult withIds(String... ids) { if (getIds() == null) setIds(new java.util.ArrayList(ids.length)); for (String value : ids) { getIds().add(value); } return this; } /** * A list of identifiers that match the query selectors. *

* Returns a reference to this object so that method calls can be chained together. * * @param ids A list of identifiers that match the query selectors. * * @return A reference to this updated object so that method calls can be chained * together. */ public QueryObjectsResult withIds(java.util.Collection ids) { if (ids == null) { this.ids = null; } else { com.amazonaws.internal.ListWithAutoConstructFlag idsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(ids.size()); idsCopy.addAll(ids); this.ids = idsCopy; } return this; } /** * The starting point for the results to be returned. As long as the * action returns HasMoreResults as True, you * can call QueryObjects again and pass the marker value from the * response to retrieve the next set of results. *

* Constraints:
* Length: 0 - 1024
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @return The starting point for the results to be returned. As long as the * action returns HasMoreResults as True, you * can call QueryObjects again and pass the marker value from the * response to retrieve the next set of results. */ public String getMarker() { return marker; } /** * The starting point for the results to be returned. As long as the * action returns HasMoreResults as True, you * can call QueryObjects again and pass the marker value from the * response to retrieve the next set of results. *

* Constraints:
* Length: 0 - 1024
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param marker The starting point for the results to be returned. As long as the * action returns HasMoreResults as True, you * can call QueryObjects again and pass the marker value from the * response to retrieve the next set of results. */ public void setMarker(String marker) { this.marker = marker; } /** * The starting point for the results to be returned. As long as the * action returns HasMoreResults as True, you * can call QueryObjects again and pass the marker value from the * response to retrieve the next set of results. *

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

* Constraints:
* Length: 0 - 1024
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param marker The starting point for the results to be returned. As long as the * action returns HasMoreResults as True, you * can call QueryObjects again and pass the marker value from the * response to retrieve the next set of results. * * @return A reference to this updated object so that method calls can be chained * together. */ public QueryObjectsResult withMarker(String marker) { this.marker = marker; return this; } /** * If True, there are more results that can be obtained by a * subsequent call to QueryObjects. * * @return If True, there are more results that can be obtained by a * subsequent call to QueryObjects. */ public Boolean isHasMoreResults() { return hasMoreResults; } /** * If True, there are more results that can be obtained by a * subsequent call to QueryObjects. * * @param hasMoreResults If True, there are more results that can be obtained by a * subsequent call to QueryObjects. */ public void setHasMoreResults(Boolean hasMoreResults) { this.hasMoreResults = hasMoreResults; } /** * If True, there are more results that can be obtained by a * subsequent call to QueryObjects. *

* Returns a reference to this object so that method calls can be chained together. * * @param hasMoreResults If True, there are more results that can be obtained by a * subsequent call to QueryObjects. * * @return A reference to this updated object so that method calls can be chained * together. */ public QueryObjectsResult withHasMoreResults(Boolean hasMoreResults) { this.hasMoreResults = hasMoreResults; return this; } /** * If True, there are more results that can be obtained by a * subsequent call to QueryObjects. * * @return If True, there are more results that can be obtained by a * subsequent call to QueryObjects. */ public Boolean getHasMoreResults() { return hasMoreResults; } /** * 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 (getIds() != null) sb.append("Ids: " + getIds() + ","); if (getMarker() != null) sb.append("Marker: " + getMarker() + ","); if (isHasMoreResults() != null) sb.append("HasMoreResults: " + isHasMoreResults() ); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getIds() == null) ? 0 : getIds().hashCode()); hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); hashCode = prime * hashCode + ((isHasMoreResults() == null) ? 0 : isHasMoreResults().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof QueryObjectsResult == false) return false; QueryObjectsResult other = (QueryObjectsResult)obj; if (other.getIds() == null ^ this.getIds() == null) return false; if (other.getIds() != null && other.getIds().equals(this.getIds()) == false) return false; if (other.getMarker() == null ^ this.getMarker() == null) return false; if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false) return false; if (other.isHasMoreResults() == null ^ this.isHasMoreResults() == null) return false; if (other.isHasMoreResults() != null && other.isHasMoreResults().equals(this.isHasMoreResults()) == false) return false; return true; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy