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

com.amazonaws.services.servicequotas.model.ListServiceQuotasRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Service Quotas module holds the client classes that are used for communicating with Service Quotas Service

The newest version!
/*
 * 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.servicequotas.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 ListServiceQuotasRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* Specifies the service identifier. To find the service code value for an Amazon Web Services service, use the * ListServices operation. *

*/ private String serviceCode; /** *

* Specifies a value for receiving additional results after you receive a NextToken response in a * previous request. A NextToken response indicates that more output is available. Set this parameter * to the value of the previous call's NextToken response to indicate where the output should continue * from. *

*/ private String nextToken; /** *

* Specifies the maximum number of results that you want included on each page of the response. If you do not * include this parameter, it defaults to a value appropriate to the operation. If additional items exist beyond * those included in the current response, the NextToken response element is present and has a value * (is not null). Include that value as the NextToken request parameter in the next call to the * operation to get the next part of the results. *

* *

* An API operation can return fewer results than the maximum even when there are more results available. You should * check NextToken after every operation to ensure that you receive all of the results. *

*
*/ private Integer maxResults; /** *

* Specifies the quota identifier. To find the quota code for a specific quota, use the ListServiceQuotas * operation, and look for the QuotaCode response in the output for the quota you want. *

*/ private String quotaCode; /** *

* Specifies at which level of granularity that the quota value is applied. *

*/ private String quotaAppliedAtLevel; /** *

* Specifies the service identifier. To find the service code value for an Amazon Web Services service, use the * ListServices operation. *

* * @param serviceCode * Specifies the service identifier. To find the service code value for an Amazon Web Services service, use * the ListServices operation. */ public void setServiceCode(String serviceCode) { this.serviceCode = serviceCode; } /** *

* Specifies the service identifier. To find the service code value for an Amazon Web Services service, use the * ListServices operation. *

* * @return Specifies the service identifier. To find the service code value for an Amazon Web Services service, use * the ListServices operation. */ public String getServiceCode() { return this.serviceCode; } /** *

* Specifies the service identifier. To find the service code value for an Amazon Web Services service, use the * ListServices operation. *

* * @param serviceCode * Specifies the service identifier. To find the service code value for an Amazon Web Services service, use * the ListServices operation. * @return Returns a reference to this object so that method calls can be chained together. */ public ListServiceQuotasRequest withServiceCode(String serviceCode) { setServiceCode(serviceCode); return this; } /** *

* Specifies a value for receiving additional results after you receive a NextToken response in a * previous request. A NextToken response indicates that more output is available. Set this parameter * to the value of the previous call's NextToken response to indicate where the output should continue * from. *

* * @param nextToken * Specifies a value for receiving additional results after you receive a NextToken response in * a previous request. A NextToken response indicates that more output is available. Set this * parameter to the value of the previous call's NextToken response to indicate where the output * should continue from. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* Specifies a value for receiving additional results after you receive a NextToken response in a * previous request. A NextToken response indicates that more output is available. Set this parameter * to the value of the previous call's NextToken response to indicate where the output should continue * from. *

* * @return Specifies a value for receiving additional results after you receive a NextToken response in * a previous request. A NextToken response indicates that more output is available. Set this * parameter to the value of the previous call's NextToken response to indicate where the * output should continue from. */ public String getNextToken() { return this.nextToken; } /** *

* Specifies a value for receiving additional results after you receive a NextToken response in a * previous request. A NextToken response indicates that more output is available. Set this parameter * to the value of the previous call's NextToken response to indicate where the output should continue * from. *

* * @param nextToken * Specifies a value for receiving additional results after you receive a NextToken response in * a previous request. A NextToken response indicates that more output is available. Set this * parameter to the value of the previous call's NextToken response to indicate where the output * should continue from. * @return Returns a reference to this object so that method calls can be chained together. */ public ListServiceQuotasRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *

* Specifies the maximum number of results that you want included on each page of the response. If you do not * include this parameter, it defaults to a value appropriate to the operation. If additional items exist beyond * those included in the current response, the NextToken response element is present and has a value * (is not null). Include that value as the NextToken request parameter in the next call to the * operation to get the next part of the results. *

* *

* An API operation can return fewer results than the maximum even when there are more results available. You should * check NextToken after every operation to ensure that you receive all of the results. *

*
* * @param maxResults * Specifies the maximum number of results that you want included on each page of the response. If you do not * include this parameter, it defaults to a value appropriate to the operation. If additional items exist * beyond those included in the current response, the NextToken response element is present and * has a value (is not null). Include that value as the NextToken request parameter in the next * call to the operation to get the next part of the results.

*

* An API operation can return fewer results than the maximum even when there are more results available. You * should check NextToken after every operation to ensure that you receive all of the results. *

*/ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** *

* Specifies the maximum number of results that you want included on each page of the response. If you do not * include this parameter, it defaults to a value appropriate to the operation. If additional items exist beyond * those included in the current response, the NextToken response element is present and has a value * (is not null). Include that value as the NextToken request parameter in the next call to the * operation to get the next part of the results. *

* *

* An API operation can return fewer results than the maximum even when there are more results available. You should * check NextToken after every operation to ensure that you receive all of the results. *

*
* * @return Specifies the maximum number of results that you want included on each page of the response. If you do * not include this parameter, it defaults to a value appropriate to the operation. If additional items * exist beyond those included in the current response, the NextToken response element is * present and has a value (is not null). Include that value as the NextToken request parameter * in the next call to the operation to get the next part of the results.

*

* An API operation can return fewer results than the maximum even when there are more results available. * You should check NextToken after every operation to ensure that you receive all of the * results. *

*/ public Integer getMaxResults() { return this.maxResults; } /** *

* Specifies the maximum number of results that you want included on each page of the response. If you do not * include this parameter, it defaults to a value appropriate to the operation. If additional items exist beyond * those included in the current response, the NextToken response element is present and has a value * (is not null). Include that value as the NextToken request parameter in the next call to the * operation to get the next part of the results. *

* *

* An API operation can return fewer results than the maximum even when there are more results available. You should * check NextToken after every operation to ensure that you receive all of the results. *

*
* * @param maxResults * Specifies the maximum number of results that you want included on each page of the response. If you do not * include this parameter, it defaults to a value appropriate to the operation. If additional items exist * beyond those included in the current response, the NextToken response element is present and * has a value (is not null). Include that value as the NextToken request parameter in the next * call to the operation to get the next part of the results.

*

* An API operation can return fewer results than the maximum even when there are more results available. You * should check NextToken after every operation to ensure that you receive all of the results. *

* @return Returns a reference to this object so that method calls can be chained together. */ public ListServiceQuotasRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; } /** *

* Specifies the quota identifier. To find the quota code for a specific quota, use the ListServiceQuotas * operation, and look for the QuotaCode response in the output for the quota you want. *

* * @param quotaCode * Specifies the quota identifier. To find the quota code for a specific quota, use the * ListServiceQuotas operation, and look for the QuotaCode response in the output for the * quota you want. */ public void setQuotaCode(String quotaCode) { this.quotaCode = quotaCode; } /** *

* Specifies the quota identifier. To find the quota code for a specific quota, use the ListServiceQuotas * operation, and look for the QuotaCode response in the output for the quota you want. *

* * @return Specifies the quota identifier. To find the quota code for a specific quota, use the * ListServiceQuotas operation, and look for the QuotaCode response in the output for * the quota you want. */ public String getQuotaCode() { return this.quotaCode; } /** *

* Specifies the quota identifier. To find the quota code for a specific quota, use the ListServiceQuotas * operation, and look for the QuotaCode response in the output for the quota you want. *

* * @param quotaCode * Specifies the quota identifier. To find the quota code for a specific quota, use the * ListServiceQuotas operation, and look for the QuotaCode response in the output for the * quota you want. * @return Returns a reference to this object so that method calls can be chained together. */ public ListServiceQuotasRequest withQuotaCode(String quotaCode) { setQuotaCode(quotaCode); return this; } /** *

* Specifies at which level of granularity that the quota value is applied. *

* * @param quotaAppliedAtLevel * Specifies at which level of granularity that the quota value is applied. * @see AppliedLevelEnum */ public void setQuotaAppliedAtLevel(String quotaAppliedAtLevel) { this.quotaAppliedAtLevel = quotaAppliedAtLevel; } /** *

* Specifies at which level of granularity that the quota value is applied. *

* * @return Specifies at which level of granularity that the quota value is applied. * @see AppliedLevelEnum */ public String getQuotaAppliedAtLevel() { return this.quotaAppliedAtLevel; } /** *

* Specifies at which level of granularity that the quota value is applied. *

* * @param quotaAppliedAtLevel * Specifies at which level of granularity that the quota value is applied. * @return Returns a reference to this object so that method calls can be chained together. * @see AppliedLevelEnum */ public ListServiceQuotasRequest withQuotaAppliedAtLevel(String quotaAppliedAtLevel) { setQuotaAppliedAtLevel(quotaAppliedAtLevel); return this; } /** *

* Specifies at which level of granularity that the quota value is applied. *

* * @param quotaAppliedAtLevel * Specifies at which level of granularity that the quota value is applied. * @return Returns a reference to this object so that method calls can be chained together. * @see AppliedLevelEnum */ public ListServiceQuotasRequest withQuotaAppliedAtLevel(AppliedLevelEnum quotaAppliedAtLevel) { this.quotaAppliedAtLevel = quotaAppliedAtLevel.toString(); 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 (getServiceCode() != null) sb.append("ServiceCode: ").append(getServiceCode()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()).append(","); if (getQuotaCode() != null) sb.append("QuotaCode: ").append(getQuotaCode()).append(","); if (getQuotaAppliedAtLevel() != null) sb.append("QuotaAppliedAtLevel: ").append(getQuotaAppliedAtLevel()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListServiceQuotasRequest == false) return false; ListServiceQuotasRequest other = (ListServiceQuotasRequest) obj; if (other.getServiceCode() == null ^ this.getServiceCode() == null) return false; if (other.getServiceCode() != null && other.getServiceCode().equals(this.getServiceCode()) == 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; if (other.getQuotaCode() == null ^ this.getQuotaCode() == null) return false; if (other.getQuotaCode() != null && other.getQuotaCode().equals(this.getQuotaCode()) == false) return false; if (other.getQuotaAppliedAtLevel() == null ^ this.getQuotaAppliedAtLevel() == null) return false; if (other.getQuotaAppliedAtLevel() != null && other.getQuotaAppliedAtLevel().equals(this.getQuotaAppliedAtLevel()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getServiceCode() == null) ? 0 : getServiceCode().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getQuotaCode() == null) ? 0 : getQuotaCode().hashCode()); hashCode = prime * hashCode + ((getQuotaAppliedAtLevel() == null) ? 0 : getQuotaAppliedAtLevel().hashCode()); return hashCode; } @Override public ListServiceQuotasRequest clone() { return (ListServiceQuotasRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy