com.amazonaws.services.servicequotas.model.GetServiceQuotaIncreaseRequestFromTemplateRequest 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 GetServiceQuotaIncreaseRequestFromTemplateRequest 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 the Amazon Web Services Region for which you made the request.
*
*/
private String awsRegion;
/**
*
* 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 GetServiceQuotaIncreaseRequestFromTemplateRequest 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 GetServiceQuotaIncreaseRequestFromTemplateRequest withQuotaCode(String quotaCode) {
setQuotaCode(quotaCode);
return this;
}
/**
*
* Specifies the Amazon Web Services Region for which you made the request.
*
*
* @param awsRegion
* Specifies the Amazon Web Services Region for which you made the request.
*/
public void setAwsRegion(String awsRegion) {
this.awsRegion = awsRegion;
}
/**
*
* Specifies the Amazon Web Services Region for which you made the request.
*
*
* @return Specifies the Amazon Web Services Region for which you made the request.
*/
public String getAwsRegion() {
return this.awsRegion;
}
/**
*
* Specifies the Amazon Web Services Region for which you made the request.
*
*
* @param awsRegion
* Specifies the Amazon Web Services Region for which you made the request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetServiceQuotaIncreaseRequestFromTemplateRequest withAwsRegion(String awsRegion) {
setAwsRegion(awsRegion);
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 (getAwsRegion() != null)
sb.append("AwsRegion: ").append(getAwsRegion());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GetServiceQuotaIncreaseRequestFromTemplateRequest == false)
return false;
GetServiceQuotaIncreaseRequestFromTemplateRequest other = (GetServiceQuotaIncreaseRequestFromTemplateRequest) 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.getAwsRegion() == null ^ this.getAwsRegion() == null)
return false;
if (other.getAwsRegion() != null && other.getAwsRegion().equals(this.getAwsRegion()) == 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 + ((getAwsRegion() == null) ? 0 : getAwsRegion().hashCode());
return hashCode;
}
@Override
public GetServiceQuotaIncreaseRequestFromTemplateRequest clone() {
return (GetServiceQuotaIncreaseRequestFromTemplateRequest) super.clone();
}
}