com.amazonaws.services.dataexchange.model.ServiceLimitExceededException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-dataexchange Show documentation
Show all versions of aws-java-sdk-dataexchange Show documentation
The AWS Java SDK for AWS Data Exchange module holds the client classes that are used for communicating with AWS Data Exchange Service
/*
* Copyright 2017-2022 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.dataexchange.model;
import javax.annotation.Generated;
/**
*
* The request has exceeded the quotas imposed by the service.
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ServiceLimitExceededException extends com.amazonaws.services.dataexchange.model.AWSDataExchangeException {
private static final long serialVersionUID = 1L;
/**
*
* The name of the quota that was exceeded.
*
*/
private String limitName;
/**
*
* The maximum value for the service-specific limit.
*
*/
private Double limitValue;
/**
* Constructs a new ServiceLimitExceededException with the specified error message.
*
* @param message
* Describes the error encountered.
*/
public ServiceLimitExceededException(String message) {
super(message);
}
/**
*
* The name of the quota that was exceeded.
*
*
* @param limitName
* The name of the quota that was exceeded.
* @see LimitName
*/
@com.fasterxml.jackson.annotation.JsonProperty("LimitName")
public void setLimitName(String limitName) {
this.limitName = limitName;
}
/**
*
* The name of the quota that was exceeded.
*
*
* @return The name of the quota that was exceeded.
* @see LimitName
*/
@com.fasterxml.jackson.annotation.JsonProperty("LimitName")
public String getLimitName() {
return this.limitName;
}
/**
*
* The name of the quota that was exceeded.
*
*
* @param limitName
* The name of the quota that was exceeded.
* @return Returns a reference to this object so that method calls can be chained together.
* @see LimitName
*/
public ServiceLimitExceededException withLimitName(String limitName) {
setLimitName(limitName);
return this;
}
/**
*
* The name of the quota that was exceeded.
*
*
* @param limitName
* The name of the quota that was exceeded.
* @return Returns a reference to this object so that method calls can be chained together.
* @see LimitName
*/
public ServiceLimitExceededException withLimitName(LimitName limitName) {
this.limitName = limitName.toString();
return this;
}
/**
*
* The maximum value for the service-specific limit.
*
*
* @param limitValue
* The maximum value for the service-specific limit.
*/
@com.fasterxml.jackson.annotation.JsonProperty("LimitValue")
public void setLimitValue(Double limitValue) {
this.limitValue = limitValue;
}
/**
*
* The maximum value for the service-specific limit.
*
*
* @return The maximum value for the service-specific limit.
*/
@com.fasterxml.jackson.annotation.JsonProperty("LimitValue")
public Double getLimitValue() {
return this.limitValue;
}
/**
*
* The maximum value for the service-specific limit.
*
*
* @param limitValue
* The maximum value for the service-specific limit.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ServiceLimitExceededException withLimitValue(Double limitValue) {
setLimitValue(limitValue);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy