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

com.amazonaws.services.simplesystemsmanagement.model.GetOpsSummaryRequest Maven / Gradle / Ivy

/*
 * Copyright 2019-2024 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.simplesystemsmanagement.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetOpsSummaryRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* Specify the name of a resource data sync to get. *

*/ private String syncName; /** *

* Optional filters used to scope down the returned OpsData. *

*/ private com.amazonaws.internal.SdkInternalList filters; /** *

* Optional aggregators that return counts of OpsData based on one or more expressions. *

*/ private com.amazonaws.internal.SdkInternalList aggregators; /** *

* The OpsData data type to return. *

*/ private com.amazonaws.internal.SdkInternalList resultAttributes; /** *

* A token to start the list. Use this token to get the next set of results. *

*/ private String nextToken; /** *

* The maximum number of items to return for this call. The call also returns a token that you can specify in a * subsequent call to get the next set of results. *

*/ private Integer maxResults; /** *

* Specify the name of a resource data sync to get. *

* * @param syncName * Specify the name of a resource data sync to get. */ public void setSyncName(String syncName) { this.syncName = syncName; } /** *

* Specify the name of a resource data sync to get. *

* * @return Specify the name of a resource data sync to get. */ public String getSyncName() { return this.syncName; } /** *

* Specify the name of a resource data sync to get. *

* * @param syncName * Specify the name of a resource data sync to get. * @return Returns a reference to this object so that method calls can be chained together. */ public GetOpsSummaryRequest withSyncName(String syncName) { setSyncName(syncName); return this; } /** *

* Optional filters used to scope down the returned OpsData. *

* * @return Optional filters used to scope down the returned OpsData. */ public java.util.List getFilters() { if (filters == null) { filters = new com.amazonaws.internal.SdkInternalList(); } return filters; } /** *

* Optional filters used to scope down the returned OpsData. *

* * @param filters * Optional filters used to scope down the returned OpsData. */ public void setFilters(java.util.Collection filters) { if (filters == null) { this.filters = null; return; } this.filters = new com.amazonaws.internal.SdkInternalList(filters); } /** *

* Optional filters used to scope down the returned OpsData. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setFilters(java.util.Collection)} or {@link #withFilters(java.util.Collection)} if you want to override * the existing values. *

* * @param filters * Optional filters used to scope down the returned OpsData. * @return Returns a reference to this object so that method calls can be chained together. */ public GetOpsSummaryRequest withFilters(OpsFilter... filters) { if (this.filters == null) { setFilters(new com.amazonaws.internal.SdkInternalList(filters.length)); } for (OpsFilter ele : filters) { this.filters.add(ele); } return this; } /** *

* Optional filters used to scope down the returned OpsData. *

* * @param filters * Optional filters used to scope down the returned OpsData. * @return Returns a reference to this object so that method calls can be chained together. */ public GetOpsSummaryRequest withFilters(java.util.Collection filters) { setFilters(filters); return this; } /** *

* Optional aggregators that return counts of OpsData based on one or more expressions. *

* * @return Optional aggregators that return counts of OpsData based on one or more expressions. */ public java.util.List getAggregators() { if (aggregators == null) { aggregators = new com.amazonaws.internal.SdkInternalList(); } return aggregators; } /** *

* Optional aggregators that return counts of OpsData based on one or more expressions. *

* * @param aggregators * Optional aggregators that return counts of OpsData based on one or more expressions. */ public void setAggregators(java.util.Collection aggregators) { if (aggregators == null) { this.aggregators = null; return; } this.aggregators = new com.amazonaws.internal.SdkInternalList(aggregators); } /** *

* Optional aggregators that return counts of OpsData based on one or more expressions. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setAggregators(java.util.Collection)} or {@link #withAggregators(java.util.Collection)} if you want to * override the existing values. *

* * @param aggregators * Optional aggregators that return counts of OpsData based on one or more expressions. * @return Returns a reference to this object so that method calls can be chained together. */ public GetOpsSummaryRequest withAggregators(OpsAggregator... aggregators) { if (this.aggregators == null) { setAggregators(new com.amazonaws.internal.SdkInternalList(aggregators.length)); } for (OpsAggregator ele : aggregators) { this.aggregators.add(ele); } return this; } /** *

* Optional aggregators that return counts of OpsData based on one or more expressions. *

* * @param aggregators * Optional aggregators that return counts of OpsData based on one or more expressions. * @return Returns a reference to this object so that method calls can be chained together. */ public GetOpsSummaryRequest withAggregators(java.util.Collection aggregators) { setAggregators(aggregators); return this; } /** *

* The OpsData data type to return. *

* * @return The OpsData data type to return. */ public java.util.List getResultAttributes() { if (resultAttributes == null) { resultAttributes = new com.amazonaws.internal.SdkInternalList(); } return resultAttributes; } /** *

* The OpsData data type to return. *

* * @param resultAttributes * The OpsData data type to return. */ public void setResultAttributes(java.util.Collection resultAttributes) { if (resultAttributes == null) { this.resultAttributes = null; return; } this.resultAttributes = new com.amazonaws.internal.SdkInternalList(resultAttributes); } /** *

* The OpsData data type to return. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setResultAttributes(java.util.Collection)} or {@link #withResultAttributes(java.util.Collection)} if you * want to override the existing values. *

* * @param resultAttributes * The OpsData data type to return. * @return Returns a reference to this object so that method calls can be chained together. */ public GetOpsSummaryRequest withResultAttributes(OpsResultAttribute... resultAttributes) { if (this.resultAttributes == null) { setResultAttributes(new com.amazonaws.internal.SdkInternalList(resultAttributes.length)); } for (OpsResultAttribute ele : resultAttributes) { this.resultAttributes.add(ele); } return this; } /** *

* The OpsData data type to return. *

* * @param resultAttributes * The OpsData data type to return. * @return Returns a reference to this object so that method calls can be chained together. */ public GetOpsSummaryRequest withResultAttributes(java.util.Collection resultAttributes) { setResultAttributes(resultAttributes); return this; } /** *

* A token to start the list. Use this token to get the next set of results. *

* * @param nextToken * A token to start the list. Use this token to get the next set of results. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* A token to start the list. Use this token to get the next set of results. *

* * @return A token to start the list. Use this token to get the next set of results. */ public String getNextToken() { return this.nextToken; } /** *

* A token to start the list. Use this token to get the next set of results. *

* * @param nextToken * A token to start the list. Use this token to get the next set of results. * @return Returns a reference to this object so that method calls can be chained together. */ public GetOpsSummaryRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *

* The maximum number of items to return for this call. The call also returns a token that you can specify in a * subsequent call to get the next set of results. *

* * @param maxResults * The maximum number of items to return for this call. The call also returns a token that you can specify in * a subsequent call to get the next set of results. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** *

* The maximum number of items to return for this call. The call also returns a token that you can specify in a * subsequent call to get the next set of results. *

* * @return The maximum number of items to return for this call. The call also returns a token that you can specify * in a subsequent call to get the next set of results. */ public Integer getMaxResults() { return this.maxResults; } /** *

* The maximum number of items to return for this call. The call also returns a token that you can specify in a * subsequent call to get the next set of results. *

* * @param maxResults * The maximum number of items to return for this call. The call also returns a token that you can specify in * a subsequent call to get the next set of results. * @return Returns a reference to this object so that method calls can be chained together. */ public GetOpsSummaryRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getSyncName() != null) sb.append("SyncName: ").append(getSyncName()).append(","); if (getFilters() != null) sb.append("Filters: ").append(getFilters()).append(","); if (getAggregators() != null) sb.append("Aggregators: ").append(getAggregators()).append(","); if (getResultAttributes() != null) sb.append("ResultAttributes: ").append(getResultAttributes()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetOpsSummaryRequest == false) return false; GetOpsSummaryRequest other = (GetOpsSummaryRequest) obj; if (other.getSyncName() == null ^ this.getSyncName() == null) return false; if (other.getSyncName() != null && other.getSyncName().equals(this.getSyncName()) == false) return false; if (other.getFilters() == null ^ this.getFilters() == null) return false; if (other.getFilters() != null && other.getFilters().equals(this.getFilters()) == false) return false; if (other.getAggregators() == null ^ this.getAggregators() == null) return false; if (other.getAggregators() != null && other.getAggregators().equals(this.getAggregators()) == false) return false; if (other.getResultAttributes() == null ^ this.getResultAttributes() == null) return false; if (other.getResultAttributes() != null && other.getResultAttributes().equals(this.getResultAttributes()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSyncName() == null) ? 0 : getSyncName().hashCode()); hashCode = prime * hashCode + ((getFilters() == null) ? 0 : getFilters().hashCode()); hashCode = prime * hashCode + ((getAggregators() == null) ? 0 : getAggregators().hashCode()); hashCode = prime * hashCode + ((getResultAttributes() == null) ? 0 : getResultAttributes().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); return hashCode; } @Override public GetOpsSummaryRequest clone() { return (GetOpsSummaryRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy