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

com.amazonaws.services.servicequotas.model.ServiceQuotaIncreaseRequestInTemplate 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.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 ServiceQuotaIncreaseRequestInTemplate implements Serializable, Cloneable, StructuredPojo { /** *

* 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 of the quota. *

*/ private Double desiredValue; /** *

* The Amazon Web Services Region. *

*/ private String awsRegion; /** *

* The unit of measurement. *

*/ private String unit; /** *

* Indicates whether the quota is global. *

*/ private Boolean globalQuota; /** *

* 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 ServiceQuotaIncreaseRequestInTemplate 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 ServiceQuotaIncreaseRequestInTemplate 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 ServiceQuotaIncreaseRequestInTemplate 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 ServiceQuotaIncreaseRequestInTemplate withQuotaName(String quotaName) { setQuotaName(quotaName); return this; } /** *

* The new, increased value of the quota. *

* * @param desiredValue * The new, increased value of the quota. */ public void setDesiredValue(Double desiredValue) { this.desiredValue = desiredValue; } /** *

* The new, increased value of the quota. *

* * @return The new, increased value of the quota. */ public Double getDesiredValue() { return this.desiredValue; } /** *

* The new, increased value of the quota. *

* * @param desiredValue * The new, increased value of the quota. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceQuotaIncreaseRequestInTemplate withDesiredValue(Double desiredValue) { setDesiredValue(desiredValue); return this; } /** *

* The Amazon Web Services Region. *

* * @param awsRegion * The Amazon Web Services Region. */ public void setAwsRegion(String awsRegion) { this.awsRegion = awsRegion; } /** *

* The Amazon Web Services Region. *

* * @return The Amazon Web Services Region. */ public String getAwsRegion() { return this.awsRegion; } /** *

* The Amazon Web Services Region. *

* * @param awsRegion * The Amazon Web Services Region. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceQuotaIncreaseRequestInTemplate withAwsRegion(String awsRegion) { setAwsRegion(awsRegion); return this; } /** *

* 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 ServiceQuotaIncreaseRequestInTemplate withUnit(String unit) { setUnit(unit); 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 ServiceQuotaIncreaseRequestInTemplate 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; } /** * 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 (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 (getAwsRegion() != null) sb.append("AwsRegion: ").append(getAwsRegion()).append(","); if (getUnit() != null) sb.append("Unit: ").append(getUnit()).append(","); if (getGlobalQuota() != null) sb.append("GlobalQuota: ").append(getGlobalQuota()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ServiceQuotaIncreaseRequestInTemplate == false) return false; ServiceQuotaIncreaseRequestInTemplate other = (ServiceQuotaIncreaseRequestInTemplate) obj; 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.getAwsRegion() == null ^ this.getAwsRegion() == null) return false; if (other.getAwsRegion() != null && other.getAwsRegion().equals(this.getAwsRegion()) == 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.getGlobalQuota() == null ^ this.getGlobalQuota() == null) return false; if (other.getGlobalQuota() != null && other.getGlobalQuota().equals(this.getGlobalQuota()) == 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 + ((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 + ((getAwsRegion() == null) ? 0 : getAwsRegion().hashCode()); hashCode = prime * hashCode + ((getUnit() == null) ? 0 : getUnit().hashCode()); hashCode = prime * hashCode + ((getGlobalQuota() == null) ? 0 : getGlobalQuota().hashCode()); return hashCode; } @Override public ServiceQuotaIncreaseRequestInTemplate clone() { try { return (ServiceQuotaIncreaseRequestInTemplate) 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.ServiceQuotaIncreaseRequestInTemplateMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy