com.amazonaws.services.servicequotas.model.RequestedServiceQuotaChange 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.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Information about a quota increase request.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class RequestedServiceQuotaChange implements Serializable, Cloneable, StructuredPojo {
/**
*
* The unique identifier.
*
*/
private String id;
/**
*
* The case ID.
*
*/
private String caseId;
/**
*
* 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 service name.
*
*/
private String serviceName;
/**
*
* 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 the quota name.
*
*/
private String quotaName;
/**
*
* The new, increased value for the quota.
*
*/
private Double desiredValue;
/**
*
* The state of the quota increase request.
*
*/
private String status;
/**
*
* The date and time when the quota increase request was received and the case ID was created.
*
*/
private java.util.Date created;
/**
*
* The date and time of the most recent change.
*
*/
private java.util.Date lastUpdated;
/**
*
* The IAM identity of the requester.
*
*/
private String requester;
/**
*
* The Amazon Resource Name (ARN) of the quota.
*
*/
private String quotaArn;
/**
*
* Indicates whether the quota is global.
*
*/
private Boolean globalQuota;
/**
*
* The unit of measurement.
*
*/
private String unit;
/**
*
* Specifies at which level within the Amazon Web Services account the quota request applies to.
*
*/
private String quotaRequestedAtLevel;
/**
*
* The context for this service quota.
*
*/
private QuotaContextInfo quotaContext;
/**
*
* The unique identifier.
*
*
* @param id
* The unique identifier.
*/
public void setId(String id) {
this.id = id;
}
/**
*
* The unique identifier.
*
*
* @return The unique identifier.
*/
public String getId() {
return this.id;
}
/**
*
* The unique identifier.
*
*
* @param id
* The unique identifier.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RequestedServiceQuotaChange withId(String id) {
setId(id);
return this;
}
/**
*
* The case ID.
*
*
* @param caseId
* The case ID.
*/
public void setCaseId(String caseId) {
this.caseId = caseId;
}
/**
*
* The case ID.
*
*
* @return The case ID.
*/
public String getCaseId() {
return this.caseId;
}
/**
*
* The case ID.
*
*
* @param caseId
* The case ID.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RequestedServiceQuotaChange withCaseId(String caseId) {
setCaseId(caseId);
return this;
}
/**
*
* 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 RequestedServiceQuotaChange withServiceCode(String serviceCode) {
setServiceCode(serviceCode);
return this;
}
/**
*
* Specifies the service name.
*
*
* @param serviceName
* Specifies the service name.
*/
public void setServiceName(String serviceName) {
this.serviceName = serviceName;
}
/**
*
* Specifies the service name.
*
*
* @return Specifies the service name.
*/
public String getServiceName() {
return this.serviceName;
}
/**
*
* Specifies the service name.
*
*
* @param serviceName
* Specifies the service name.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RequestedServiceQuotaChange withServiceName(String serviceName) {
setServiceName(serviceName);
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 RequestedServiceQuotaChange withQuotaCode(String quotaCode) {
setQuotaCode(quotaCode);
return this;
}
/**
*
* Specifies the quota name.
*
*
* @param quotaName
* Specifies the quota name.
*/
public void setQuotaName(String quotaName) {
this.quotaName = quotaName;
}
/**
*
* Specifies the quota name.
*
*
* @return Specifies the quota name.
*/
public String getQuotaName() {
return this.quotaName;
}
/**
*
* Specifies the quota name.
*
*
* @param quotaName
* Specifies the quota name.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RequestedServiceQuotaChange withQuotaName(String quotaName) {
setQuotaName(quotaName);
return this;
}
/**
*
* The new, increased value for the quota.
*
*
* @param desiredValue
* The new, increased value for the quota.
*/
public void setDesiredValue(Double desiredValue) {
this.desiredValue = desiredValue;
}
/**
*
* The new, increased value for the quota.
*
*
* @return The new, increased value for the quota.
*/
public Double getDesiredValue() {
return this.desiredValue;
}
/**
*
* The new, increased value for the quota.
*
*
* @param desiredValue
* The new, increased value for the quota.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RequestedServiceQuotaChange withDesiredValue(Double desiredValue) {
setDesiredValue(desiredValue);
return this;
}
/**
*
* The state of the quota increase request.
*
*
* @param status
* The state of the quota increase request.
* @see RequestStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The state of the quota increase request.
*
*
* @return The state of the quota increase request.
* @see RequestStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* The state of the quota increase request.
*
*
* @param status
* The state of the quota increase request.
* @return Returns a reference to this object so that method calls can be chained together.
* @see RequestStatus
*/
public RequestedServiceQuotaChange withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The state of the quota increase request.
*
*
* @param status
* The state of the quota increase request.
* @return Returns a reference to this object so that method calls can be chained together.
* @see RequestStatus
*/
public RequestedServiceQuotaChange withStatus(RequestStatus status) {
this.status = status.toString();
return this;
}
/**
*
* The date and time when the quota increase request was received and the case ID was created.
*
*
* @param created
* The date and time when the quota increase request was received and the case ID was created.
*/
public void setCreated(java.util.Date created) {
this.created = created;
}
/**
*
* The date and time when the quota increase request was received and the case ID was created.
*
*
* @return The date and time when the quota increase request was received and the case ID was created.
*/
public java.util.Date getCreated() {
return this.created;
}
/**
*
* The date and time when the quota increase request was received and the case ID was created.
*
*
* @param created
* The date and time when the quota increase request was received and the case ID was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RequestedServiceQuotaChange withCreated(java.util.Date created) {
setCreated(created);
return this;
}
/**
*
* The date and time of the most recent change.
*
*
* @param lastUpdated
* The date and time of the most recent change.
*/
public void setLastUpdated(java.util.Date lastUpdated) {
this.lastUpdated = lastUpdated;
}
/**
*
* The date and time of the most recent change.
*
*
* @return The date and time of the most recent change.
*/
public java.util.Date getLastUpdated() {
return this.lastUpdated;
}
/**
*
* The date and time of the most recent change.
*
*
* @param lastUpdated
* The date and time of the most recent change.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RequestedServiceQuotaChange withLastUpdated(java.util.Date lastUpdated) {
setLastUpdated(lastUpdated);
return this;
}
/**
*
* The IAM identity of the requester.
*
*
* @param requester
* The IAM identity of the requester.
*/
public void setRequester(String requester) {
this.requester = requester;
}
/**
*
* The IAM identity of the requester.
*
*
* @return The IAM identity of the requester.
*/
public String getRequester() {
return this.requester;
}
/**
*
* The IAM identity of the requester.
*
*
* @param requester
* The IAM identity of the requester.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RequestedServiceQuotaChange withRequester(String requester) {
setRequester(requester);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the quota.
*
*
* @param quotaArn
* The Amazon Resource Name (ARN) of the quota.
*/
public void setQuotaArn(String quotaArn) {
this.quotaArn = quotaArn;
}
/**
*
* The Amazon Resource Name (ARN) of the quota.
*
*
* @return The Amazon Resource Name (ARN) of the quota.
*/
public String getQuotaArn() {
return this.quotaArn;
}
/**
*
* The Amazon Resource Name (ARN) of the quota.
*
*
* @param quotaArn
* The Amazon Resource Name (ARN) of the quota.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RequestedServiceQuotaChange withQuotaArn(String quotaArn) {
setQuotaArn(quotaArn);
return this;
}
/**
*
* Indicates whether the quota is global.
*
*
* @param globalQuota
* Indicates whether the quota is global.
*/
public void setGlobalQuota(Boolean globalQuota) {
this.globalQuota = globalQuota;
}
/**
*
* Indicates whether the quota is global.
*
*
* @return Indicates whether the quota is global.
*/
public Boolean getGlobalQuota() {
return this.globalQuota;
}
/**
*
* Indicates whether the quota is global.
*
*
* @param globalQuota
* Indicates whether the quota is global.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RequestedServiceQuotaChange withGlobalQuota(Boolean globalQuota) {
setGlobalQuota(globalQuota);
return this;
}
/**
*
* Indicates whether the quota is global.
*
*
* @return Indicates whether the quota is global.
*/
public Boolean isGlobalQuota() {
return this.globalQuota;
}
/**
*
* The unit of measurement.
*
*
* @param unit
* The unit of measurement.
*/
public void setUnit(String unit) {
this.unit = unit;
}
/**
*
* The unit of measurement.
*
*
* @return The unit of measurement.
*/
public String getUnit() {
return this.unit;
}
/**
*
* The unit of measurement.
*
*
* @param unit
* The unit of measurement.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RequestedServiceQuotaChange withUnit(String unit) {
setUnit(unit);
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 RequestedServiceQuotaChange 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 RequestedServiceQuotaChange withQuotaRequestedAtLevel(AppliedLevelEnum quotaRequestedAtLevel) {
this.quotaRequestedAtLevel = quotaRequestedAtLevel.toString();
return this;
}
/**
*
* The context for this service quota.
*
*
* @param quotaContext
* The context for this service quota.
*/
public void setQuotaContext(QuotaContextInfo quotaContext) {
this.quotaContext = quotaContext;
}
/**
*
* The context for this service quota.
*
*
* @return The context for this service quota.
*/
public QuotaContextInfo getQuotaContext() {
return this.quotaContext;
}
/**
*
* The context for this service quota.
*
*
* @param quotaContext
* The context for this service quota.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RequestedServiceQuotaChange withQuotaContext(QuotaContextInfo quotaContext) {
setQuotaContext(quotaContext);
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 (getId() != null)
sb.append("Id: ").append(getId()).append(",");
if (getCaseId() != null)
sb.append("CaseId: ").append(getCaseId()).append(",");
if (getServiceCode() != null)
sb.append("ServiceCode: ").append(getServiceCode()).append(",");
if (getServiceName() != null)
sb.append("ServiceName: ").append(getServiceName()).append(",");
if (getQuotaCode() != null)
sb.append("QuotaCode: ").append(getQuotaCode()).append(",");
if (getQuotaName() != null)
sb.append("QuotaName: ").append(getQuotaName()).append(",");
if (getDesiredValue() != null)
sb.append("DesiredValue: ").append(getDesiredValue()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getCreated() != null)
sb.append("Created: ").append(getCreated()).append(",");
if (getLastUpdated() != null)
sb.append("LastUpdated: ").append(getLastUpdated()).append(",");
if (getRequester() != null)
sb.append("Requester: ").append(getRequester()).append(",");
if (getQuotaArn() != null)
sb.append("QuotaArn: ").append(getQuotaArn()).append(",");
if (getGlobalQuota() != null)
sb.append("GlobalQuota: ").append(getGlobalQuota()).append(",");
if (getUnit() != null)
sb.append("Unit: ").append(getUnit()).append(",");
if (getQuotaRequestedAtLevel() != null)
sb.append("QuotaRequestedAtLevel: ").append(getQuotaRequestedAtLevel()).append(",");
if (getQuotaContext() != null)
sb.append("QuotaContext: ").append(getQuotaContext());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof RequestedServiceQuotaChange == false)
return false;
RequestedServiceQuotaChange other = (RequestedServiceQuotaChange) obj;
if (other.getId() == null ^ this.getId() == null)
return false;
if (other.getId() != null && other.getId().equals(this.getId()) == false)
return false;
if (other.getCaseId() == null ^ this.getCaseId() == null)
return false;
if (other.getCaseId() != null && other.getCaseId().equals(this.getCaseId()) == false)
return false;
if (other.getServiceCode() == null ^ this.getServiceCode() == null)
return false;
if (other.getServiceCode() != null && other.getServiceCode().equals(this.getServiceCode()) == false)
return false;
if (other.getServiceName() == null ^ this.getServiceName() == null)
return false;
if (other.getServiceName() != null && other.getServiceName().equals(this.getServiceName()) == 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.getQuotaName() == null ^ this.getQuotaName() == null)
return false;
if (other.getQuotaName() != null && other.getQuotaName().equals(this.getQuotaName()) == false)
return false;
if (other.getDesiredValue() == null ^ this.getDesiredValue() == null)
return false;
if (other.getDesiredValue() != null && other.getDesiredValue().equals(this.getDesiredValue()) == 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.getCreated() == null ^ this.getCreated() == null)
return false;
if (other.getCreated() != null && other.getCreated().equals(this.getCreated()) == false)
return false;
if (other.getLastUpdated() == null ^ this.getLastUpdated() == null)
return false;
if (other.getLastUpdated() != null && other.getLastUpdated().equals(this.getLastUpdated()) == false)
return false;
if (other.getRequester() == null ^ this.getRequester() == null)
return false;
if (other.getRequester() != null && other.getRequester().equals(this.getRequester()) == false)
return false;
if (other.getQuotaArn() == null ^ this.getQuotaArn() == null)
return false;
if (other.getQuotaArn() != null && other.getQuotaArn().equals(this.getQuotaArn()) == false)
return false;
if (other.getGlobalQuota() == null ^ this.getGlobalQuota() == null)
return false;
if (other.getGlobalQuota() != null && other.getGlobalQuota().equals(this.getGlobalQuota()) == false)
return false;
if (other.getUnit() == null ^ this.getUnit() == null)
return false;
if (other.getUnit() != null && other.getUnit().equals(this.getUnit()) == false)
return false;
if (other.getQuotaRequestedAtLevel() == null ^ this.getQuotaRequestedAtLevel() == null)
return false;
if (other.getQuotaRequestedAtLevel() != null && other.getQuotaRequestedAtLevel().equals(this.getQuotaRequestedAtLevel()) == false)
return false;
if (other.getQuotaContext() == null ^ this.getQuotaContext() == null)
return false;
if (other.getQuotaContext() != null && other.getQuotaContext().equals(this.getQuotaContext()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode());
hashCode = prime * hashCode + ((getCaseId() == null) ? 0 : getCaseId().hashCode());
hashCode = prime * hashCode + ((getServiceCode() == null) ? 0 : getServiceCode().hashCode());
hashCode = prime * hashCode + ((getServiceName() == null) ? 0 : getServiceName().hashCode());
hashCode = prime * hashCode + ((getQuotaCode() == null) ? 0 : getQuotaCode().hashCode());
hashCode = prime * hashCode + ((getQuotaName() == null) ? 0 : getQuotaName().hashCode());
hashCode = prime * hashCode + ((getDesiredValue() == null) ? 0 : getDesiredValue().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getCreated() == null) ? 0 : getCreated().hashCode());
hashCode = prime * hashCode + ((getLastUpdated() == null) ? 0 : getLastUpdated().hashCode());
hashCode = prime * hashCode + ((getRequester() == null) ? 0 : getRequester().hashCode());
hashCode = prime * hashCode + ((getQuotaArn() == null) ? 0 : getQuotaArn().hashCode());
hashCode = prime * hashCode + ((getGlobalQuota() == null) ? 0 : getGlobalQuota().hashCode());
hashCode = prime * hashCode + ((getUnit() == null) ? 0 : getUnit().hashCode());
hashCode = prime * hashCode + ((getQuotaRequestedAtLevel() == null) ? 0 : getQuotaRequestedAtLevel().hashCode());
hashCode = prime * hashCode + ((getQuotaContext() == null) ? 0 : getQuotaContext().hashCode());
return hashCode;
}
@Override
public RequestedServiceQuotaChange clone() {
try {
return (RequestedServiceQuotaChange) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.servicequotas.model.transform.RequestedServiceQuotaChangeMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}