com.amazonaws.services.b2bi.model.ServiceQuotaExceededException Maven / Gradle / Ivy
Show all versions of aws-java-sdk-b2bi 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.b2bi.model;
import javax.annotation.Generated;
/**
*
* Occurs when the calling command attempts to exceed one of the service quotas, for example trying to create a
* capability when you already have the maximum number of capabilities allowed.
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ServiceQuotaExceededException extends com.amazonaws.services.b2bi.model.AWSB2BiException {
private static final long serialVersionUID = 1L;
/**
*
* The ID for the resource that exceeded the quota, which caused the exception.
*
*/
private String resourceId;
/**
*
* The resource type (profile, partnership, transformer, or capability) that exceeded the quota, which caused the
* exception.
*
*/
private String resourceType;
/**
*
* The code responsible for exceeding the quota, which caused the exception.
*
*/
private String serviceCode;
/**
*
* The quota that was exceeded, which caused the exception.
*
*/
private String quotaCode;
/**
* Constructs a new ServiceQuotaExceededException with the specified error message.
*
* @param message
* Describes the error encountered.
*/
public ServiceQuotaExceededException(String message) {
super(message);
}
/**
*
* The ID for the resource that exceeded the quota, which caused the exception.
*
*
* @param resourceId
* The ID for the resource that exceeded the quota, which caused the exception.
*/
@com.fasterxml.jackson.annotation.JsonProperty("resourceId")
public void setResourceId(String resourceId) {
this.resourceId = resourceId;
}
/**
*
* The ID for the resource that exceeded the quota, which caused the exception.
*
*
* @return The ID for the resource that exceeded the quota, which caused the exception.
*/
@com.fasterxml.jackson.annotation.JsonProperty("resourceId")
public String getResourceId() {
return this.resourceId;
}
/**
*
* The ID for the resource that exceeded the quota, which caused the exception.
*
*
* @param resourceId
* The ID for the resource that exceeded the quota, which caused the exception.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ServiceQuotaExceededException withResourceId(String resourceId) {
setResourceId(resourceId);
return this;
}
/**
*
* The resource type (profile, partnership, transformer, or capability) that exceeded the quota, which caused the
* exception.
*
*
* @param resourceType
* The resource type (profile, partnership, transformer, or capability) that exceeded the quota, which caused
* the exception.
*/
@com.fasterxml.jackson.annotation.JsonProperty("resourceType")
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
}
/**
*
* The resource type (profile, partnership, transformer, or capability) that exceeded the quota, which caused the
* exception.
*
*
* @return The resource type (profile, partnership, transformer, or capability) that exceeded the quota, which
* caused the exception.
*/
@com.fasterxml.jackson.annotation.JsonProperty("resourceType")
public String getResourceType() {
return this.resourceType;
}
/**
*
* The resource type (profile, partnership, transformer, or capability) that exceeded the quota, which caused the
* exception.
*
*
* @param resourceType
* The resource type (profile, partnership, transformer, or capability) that exceeded the quota, which caused
* the exception.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ServiceQuotaExceededException withResourceType(String resourceType) {
setResourceType(resourceType);
return this;
}
/**
*
* The code responsible for exceeding the quota, which caused the exception.
*
*
* @param serviceCode
* The code responsible for exceeding the quota, which caused the exception.
*/
@com.fasterxml.jackson.annotation.JsonProperty("serviceCode")
public void setServiceCode(String serviceCode) {
this.serviceCode = serviceCode;
}
/**
*
* The code responsible for exceeding the quota, which caused the exception.
*
*
* @return The code responsible for exceeding the quota, which caused the exception.
*/
@com.fasterxml.jackson.annotation.JsonProperty("serviceCode")
public String getServiceCode() {
return this.serviceCode;
}
/**
*
* The code responsible for exceeding the quota, which caused the exception.
*
*
* @param serviceCode
* The code responsible for exceeding the quota, which caused the exception.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ServiceQuotaExceededException withServiceCode(String serviceCode) {
setServiceCode(serviceCode);
return this;
}
/**
*
* The quota that was exceeded, which caused the exception.
*
*
* @param quotaCode
* The quota that was exceeded, which caused the exception.
*/
@com.fasterxml.jackson.annotation.JsonProperty("quotaCode")
public void setQuotaCode(String quotaCode) {
this.quotaCode = quotaCode;
}
/**
*
* The quota that was exceeded, which caused the exception.
*
*
* @return The quota that was exceeded, which caused the exception.
*/
@com.fasterxml.jackson.annotation.JsonProperty("quotaCode")
public String getQuotaCode() {
return this.quotaCode;
}
/**
*
* The quota that was exceeded, which caused the exception.
*
*
* @param quotaCode
* The quota that was exceeded, which caused the exception.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ServiceQuotaExceededException withQuotaCode(String quotaCode) {
setQuotaCode(quotaCode);
return this;
}
}