/* * Copyright 2018-2023 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 limit that was reached. *

*/ private String limitName; /** *

* The value of the exceeded 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 limit that was reached. *

* * @param limitName * The name of the limit that was reached. * @see LimitName */ @com.fasterxml.jackson.annotation.JsonProperty("LimitName") public void setLimitName(String limitName) { this.limitName = limitName; } /** *

* The name of the limit that was reached. *

* * @return The name of the limit that was reached. * @see LimitName */ @com.fasterxml.jackson.annotation.JsonProperty("LimitName") public String getLimitName() { return this.limitName; } /** *

* The name of the limit that was reached. *

* * @param limitName * The name of the limit that was reached. * @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 limit that was reached. *

* * @param limitName * The name of the limit that was reached. * @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 value of the exceeded limit. *

* * @param limitValue * The value of the exceeded limit. */ @com.fasterxml.jackson.annotation.JsonProperty("LimitValue") public void setLimitValue(Double limitValue) { this.limitValue = limitValue; } /** *

* The value of the exceeded limit. *

* * @return The value of the exceeded limit. */ @com.fasterxml.jackson.annotation.JsonProperty("LimitValue") public Double getLimitValue() { return this.limitValue; } /** *

* The value of the exceeded limit. *

* * @param limitValue * The value of the exceeded 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; } }