Class AssessmentRunInProgressException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.amazonaws.AmazonClientException
-
- com.amazonaws.AmazonServiceException
-
- com.amazonaws.services.inspector.model.AssessmentRunInProgressException
-
- All Implemented Interfaces:
Serializable
public class AssessmentRunInProgressException extends AmazonServiceException
You cannot perform a specified action if an assessment run is currently in progress.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.amazonaws.AmazonServiceException
AmazonServiceException.ErrorType
-
-
Constructor Summary
Constructors Constructor Description AssessmentRunInProgressException(String message)
Constructs a new AssessmentRunInProgressException with the specified error message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getAssessmentRunArns()
The ARNs of the assessment runs that are currently in progress.Boolean
getAssessmentRunArnsTruncated()
Boolean value that indicates whether the ARN list of the assessment runs is truncated.Boolean
getCanRetry()
You can immediately retry your request.Boolean
isAssessmentRunArnsTruncated()
Boolean value that indicates whether the ARN list of the assessment runs is truncated.Boolean
isCanRetry()
You can immediately retry your request.void
setAssessmentRunArns(Collection<String> assessmentRunArns)
The ARNs of the assessment runs that are currently in progress.void
setAssessmentRunArnsTruncated(Boolean assessmentRunArnsTruncated)
Boolean value that indicates whether the ARN list of the assessment runs is truncated.void
setCanRetry(Boolean canRetry)
You can immediately retry your request.AssessmentRunInProgressException
withAssessmentRunArns(String... assessmentRunArns)
The ARNs of the assessment runs that are currently in progress.AssessmentRunInProgressException
withAssessmentRunArns(Collection<String> assessmentRunArns)
The ARNs of the assessment runs that are currently in progress.AssessmentRunInProgressException
withAssessmentRunArnsTruncated(Boolean assessmentRunArnsTruncated)
Boolean value that indicates whether the ARN list of the assessment runs is truncated.AssessmentRunInProgressException
withCanRetry(Boolean canRetry)
You can immediately retry your request.-
Methods inherited from class com.amazonaws.AmazonServiceException
getErrorCode, getErrorMessage, getErrorType, getMessage, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
-
Methods inherited from class com.amazonaws.AmazonClientException
isRetryable
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AssessmentRunInProgressException
public AssessmentRunInProgressException(String message)
Constructs a new AssessmentRunInProgressException with the specified error message.- Parameters:
message
- Describes the error encountered.
-
-
Method Detail
-
getAssessmentRunArns
public List<String> getAssessmentRunArns()
The ARNs of the assessment runs that are currently in progress.
- Returns:
- The ARNs of the assessment runs that are currently in progress.
-
setAssessmentRunArns
public void setAssessmentRunArns(Collection<String> assessmentRunArns)
The ARNs of the assessment runs that are currently in progress.
- Parameters:
assessmentRunArns
- The ARNs of the assessment runs that are currently in progress.
-
withAssessmentRunArns
public AssessmentRunInProgressException withAssessmentRunArns(String... assessmentRunArns)
The ARNs of the assessment runs that are currently in progress.
NOTE: This method appends the values to the existing list (if any). Use
setAssessmentRunArns(java.util.Collection)
orwithAssessmentRunArns(java.util.Collection)
if you want to override the existing values.- Parameters:
assessmentRunArns
- The ARNs of the assessment runs that are currently in progress.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAssessmentRunArns
public AssessmentRunInProgressException withAssessmentRunArns(Collection<String> assessmentRunArns)
The ARNs of the assessment runs that are currently in progress.
- Parameters:
assessmentRunArns
- The ARNs of the assessment runs that are currently in progress.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAssessmentRunArnsTruncated
public void setAssessmentRunArnsTruncated(Boolean assessmentRunArnsTruncated)
Boolean value that indicates whether the ARN list of the assessment runs is truncated.
- Parameters:
assessmentRunArnsTruncated
- Boolean value that indicates whether the ARN list of the assessment runs is truncated.
-
getAssessmentRunArnsTruncated
public Boolean getAssessmentRunArnsTruncated()
Boolean value that indicates whether the ARN list of the assessment runs is truncated.
- Returns:
- Boolean value that indicates whether the ARN list of the assessment runs is truncated.
-
withAssessmentRunArnsTruncated
public AssessmentRunInProgressException withAssessmentRunArnsTruncated(Boolean assessmentRunArnsTruncated)
Boolean value that indicates whether the ARN list of the assessment runs is truncated.
- Parameters:
assessmentRunArnsTruncated
- Boolean value that indicates whether the ARN list of the assessment runs is truncated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isAssessmentRunArnsTruncated
public Boolean isAssessmentRunArnsTruncated()
Boolean value that indicates whether the ARN list of the assessment runs is truncated.
- Returns:
- Boolean value that indicates whether the ARN list of the assessment runs is truncated.
-
setCanRetry
public void setCanRetry(Boolean canRetry)
You can immediately retry your request.
- Parameters:
canRetry
- You can immediately retry your request.
-
getCanRetry
public Boolean getCanRetry()
You can immediately retry your request.
- Returns:
- You can immediately retry your request.
-
withCanRetry
public AssessmentRunInProgressException withCanRetry(Boolean canRetry)
You can immediately retry your request.
- Parameters:
canRetry
- You can immediately retry your request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isCanRetry
public Boolean isCanRetry()
You can immediately retry your request.
- Returns:
- You can immediately retry your request.
-
-