com.amazonaws.services.devopsguru.model.ThrottlingException Maven / Gradle / Ivy
Show all versions of aws-java-sdk-devopsguru 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.devopsguru.model;
import javax.annotation.Generated;
/**
*
* The request was denied due to a request throttling.
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ThrottlingException extends com.amazonaws.services.devopsguru.model.AmazonDevOpsGuruException {
private static final long serialVersionUID = 1L;
/**
*
* The code of the quota that was exceeded, causing the throttling exception.
*
*/
private String quotaCode;
/**
*
* The code of the service that caused the throttling exception.
*
*/
private String serviceCode;
/**
*
* The number of seconds after which the action that caused the throttling exception can be retried.
*
*/
private Integer retryAfterSeconds;
/**
* Constructs a new ThrottlingException with the specified error message.
*
* @param message
* Describes the error encountered.
*/
public ThrottlingException(String message) {
super(message);
}
/**
*
* The code of the quota that was exceeded, causing the throttling exception.
*
*
* @param quotaCode
* The code of the quota that was exceeded, causing the throttling exception.
*/
@com.fasterxml.jackson.annotation.JsonProperty("QuotaCode")
public void setQuotaCode(String quotaCode) {
this.quotaCode = quotaCode;
}
/**
*
* The code of the quota that was exceeded, causing the throttling exception.
*
*
* @return The code of the quota that was exceeded, causing the throttling exception.
*/
@com.fasterxml.jackson.annotation.JsonProperty("QuotaCode")
public String getQuotaCode() {
return this.quotaCode;
}
/**
*
* The code of the quota that was exceeded, causing the throttling exception.
*
*
* @param quotaCode
* The code of the quota that was exceeded, causing the throttling exception.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ThrottlingException withQuotaCode(String quotaCode) {
setQuotaCode(quotaCode);
return this;
}
/**
*
* The code of the service that caused the throttling exception.
*
*
* @param serviceCode
* The code of the service that caused the throttling exception.
*/
@com.fasterxml.jackson.annotation.JsonProperty("ServiceCode")
public void setServiceCode(String serviceCode) {
this.serviceCode = serviceCode;
}
/**
*
* The code of the service that caused the throttling exception.
*
*
* @return The code of the service that caused the throttling exception.
*/
@com.fasterxml.jackson.annotation.JsonProperty("ServiceCode")
public String getServiceCode() {
return this.serviceCode;
}
/**
*
* The code of the service that caused the throttling exception.
*
*
* @param serviceCode
* The code of the service that caused the throttling exception.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ThrottlingException withServiceCode(String serviceCode) {
setServiceCode(serviceCode);
return this;
}
/**
*
* The number of seconds after which the action that caused the throttling exception can be retried.
*
*
* @param retryAfterSeconds
* The number of seconds after which the action that caused the throttling exception can be retried.
*/
@com.fasterxml.jackson.annotation.JsonProperty("Retry-After")
public void setRetryAfterSeconds(Integer retryAfterSeconds) {
this.retryAfterSeconds = retryAfterSeconds;
}
/**
*
* The number of seconds after which the action that caused the throttling exception can be retried.
*
*
* @return The number of seconds after which the action that caused the throttling exception can be retried.
*/
@com.fasterxml.jackson.annotation.JsonProperty("Retry-After")
public Integer getRetryAfterSeconds() {
return this.retryAfterSeconds;
}
/**
*
* The number of seconds after which the action that caused the throttling exception can be retried.
*
*
* @param retryAfterSeconds
* The number of seconds after which the action that caused the throttling exception can be retried.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ThrottlingException withRetryAfterSeconds(Integer retryAfterSeconds) {
setRetryAfterSeconds(retryAfterSeconds);
return this;
}
}