com.amazonaws.services.servicequotas.model.ListRequestedServiceQuotaChangeHistoryByQuotaRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-servicequotas Show documentation
/*
* 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 ListRequestedServiceQuotaChangeHistoryByQuotaRequest 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 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 that you want to filter the results to only the requests with the matching status.
*
*/
private String status;
/**
*
* 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 at which level within the Amazon Web Services account the quota request applies to.
*
*/
private String quotaRequestedAtLevel;
/**
*
* 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 ListRequestedServiceQuotaChangeHistoryByQuotaRequest withServiceCode(String serviceCode) {
setServiceCode(serviceCode);
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 ListRequestedServiceQuotaChangeHistoryByQuotaRequest withQuotaCode(String quotaCode) {
setQuotaCode(quotaCode);
return this;
}
/**
*
* Specifies that you want to filter the results to only the requests with the matching status.
*
*
* @param status
* Specifies that you want to filter the results to only the requests with the matching status.
* @see RequestStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* Specifies that you want to filter the results to only the requests with the matching status.
*
*
* @return Specifies that you want to filter the results to only the requests with the matching status.
* @see RequestStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* Specifies that you want to filter the results to only the requests with the matching status.
*
*
* @param status
* Specifies that you want to filter the results to only the requests with the matching status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see RequestStatus
*/
public ListRequestedServiceQuotaChangeHistoryByQuotaRequest withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* Specifies that you want to filter the results to only the requests with the matching status.
*
*
* @param status
* Specifies that you want to filter the results to only the requests with the matching status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see RequestStatus
*/
public ListRequestedServiceQuotaChangeHistoryByQuotaRequest withStatus(RequestStatus status) {
this.status = status.toString();
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 ListRequestedServiceQuotaChangeHistoryByQuotaRequest 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 ListRequestedServiceQuotaChangeHistoryByQuotaRequest withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
*
* Specifies at which level within the Amazon Web Services account the quota request applies to.
*
*
* @param quotaRequestedAtLevel
* Specifies at which level within the Amazon Web Services account the quota request applies to.
* @see AppliedLevelEnum
*/
public void setQuotaRequestedAtLevel(String quotaRequestedAtLevel) {
this.quotaRequestedAtLevel = quotaRequestedAtLevel;
}
/**
*
* Specifies at which level within the Amazon Web Services account the quota request applies to.
*
*
* @return Specifies at which level within the Amazon Web Services account the quota request applies to.
* @see AppliedLevelEnum
*/
public String getQuotaRequestedAtLevel() {
return this.quotaRequestedAtLevel;
}
/**
*
* Specifies at which level within the Amazon Web Services account the quota request applies to.
*
*
* @param quotaRequestedAtLevel
* Specifies at which level within the Amazon Web Services account the quota request applies to.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AppliedLevelEnum
*/
public ListRequestedServiceQuotaChangeHistoryByQuotaRequest withQuotaRequestedAtLevel(String quotaRequestedAtLevel) {
setQuotaRequestedAtLevel(quotaRequestedAtLevel);
return this;
}
/**
*
* Specifies at which level within the Amazon Web Services account the quota request applies to.
*
*
* @param quotaRequestedAtLevel
* Specifies at which level within the Amazon Web Services account the quota request applies to.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AppliedLevelEnum
*/
public ListRequestedServiceQuotaChangeHistoryByQuotaRequest withQuotaRequestedAtLevel(AppliedLevelEnum quotaRequestedAtLevel) {
this.quotaRequestedAtLevel = quotaRequestedAtLevel.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 (getQuotaCode() != null)
sb.append("QuotaCode: ").append(getQuotaCode()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getNextToken() != null)
sb.append("NextToken: ").append(getNextToken()).append(",");
if (getMaxResults() != null)
sb.append("MaxResults: ").append(getMaxResults()).append(",");
if (getQuotaRequestedAtLevel() != null)
sb.append("QuotaRequestedAtLevel: ").append(getQuotaRequestedAtLevel());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ListRequestedServiceQuotaChangeHistoryByQuotaRequest == false)
return false;
ListRequestedServiceQuotaChangeHistoryByQuotaRequest other = (ListRequestedServiceQuotaChangeHistoryByQuotaRequest) obj;
if (other.getServiceCode() == null ^ this.getServiceCode() == null)
return false;
if (other.getServiceCode() != null && other.getServiceCode().equals(this.getServiceCode()) == 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.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == 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.getQuotaRequestedAtLevel() == null ^ this.getQuotaRequestedAtLevel() == null)
return false;
if (other.getQuotaRequestedAtLevel() != null && other.getQuotaRequestedAtLevel().equals(this.getQuotaRequestedAtLevel()) == 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 + ((getQuotaCode() == null) ? 0 : getQuotaCode().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode());
hashCode = prime * hashCode + ((getQuotaRequestedAtLevel() == null) ? 0 : getQuotaRequestedAtLevel().hashCode());
return hashCode;
}
@Override
public ListRequestedServiceQuotaChangeHistoryByQuotaRequest clone() {
return (ListRequestedServiceQuotaChangeHistoryByQuotaRequest) super.clone();
}
}