All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.inspector.model.AssessmentRunInProgressException Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Inspector Service module holds the client classes that are used for communicating with Amazon Inspector Service

The newest version!
/*
 * Copyright 2010-2016 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.inspector.model;

import com.amazonaws.AmazonServiceException;

/**
 * 

* You cannot perform a specified action if an assessment run is currently in * progress. *

*/ public class AssessmentRunInProgressException extends AmazonServiceException { private static final long serialVersionUID = 1L; /** *

* The ARNs of the assessment runs that are currently in progress. *

*/ @com.fasterxml.jackson.annotation.JsonProperty("assessmentRunArns") private java.util.List assessmentRunArns; /** *

* Boolean value that indicates whether the ARN list of the assessment runs * is truncated. *

*/ @com.fasterxml.jackson.annotation.JsonProperty("assessmentRunArnsTruncated") private Boolean assessmentRunArnsTruncated; /** *

* You can immediately retry your request. *

*/ @com.fasterxml.jackson.annotation.JsonProperty("canRetry") private Boolean canRetry; /** * Constructs a new AssessmentRunInProgressException with the specified * error message. * * @param message * Describes the error encountered. */ public AssessmentRunInProgressException(String message) { super(message); } /** *

* The ARNs of the assessment runs that are currently in progress. *

* * @return The ARNs of the assessment runs that are currently in progress. */ public java.util.List getAssessmentRunArns() { return assessmentRunArns; } /** *

* The ARNs of the assessment runs that are currently in progress. *

* * @param assessmentRunArns * The ARNs of the assessment runs that are currently in progress. */ public void setAssessmentRunArns( java.util.Collection assessmentRunArns) { if (assessmentRunArns == null) { this.assessmentRunArns = null; return; } this.assessmentRunArns = new java.util.ArrayList( 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 {@link #setAssessmentRunArns(java.util.Collection)} or * {@link #withAssessmentRunArns(java.util.Collection)} if you want to * override the existing values. *

* * @param assessmentRunArns * The ARNs of the assessment runs that are currently in progress. * @return Returns a reference to this object so that method calls can be * chained together. */ public AssessmentRunInProgressException withAssessmentRunArns( String... assessmentRunArns) { if (this.assessmentRunArns == null) { setAssessmentRunArns(new java.util.ArrayList( assessmentRunArns.length)); } for (String ele : assessmentRunArns) { this.assessmentRunArns.add(ele); } return this; } /** *

* The ARNs of the assessment runs that are currently in progress. *

* * @param assessmentRunArns * The ARNs of the assessment runs that are currently in progress. * @return Returns a reference to this object so that method calls can be * chained together. */ public AssessmentRunInProgressException withAssessmentRunArns( java.util.Collection assessmentRunArns) { setAssessmentRunArns(assessmentRunArns); return this; } /** *

* Boolean value that indicates whether the ARN list of the assessment runs * is truncated. *

* * @param assessmentRunArnsTruncated * Boolean value that indicates whether the ARN list of the * assessment runs is truncated. */ public void setAssessmentRunArnsTruncated(Boolean assessmentRunArnsTruncated) { this.assessmentRunArnsTruncated = assessmentRunArnsTruncated; } /** *

* Boolean value that indicates whether the ARN list of the assessment runs * is truncated. *

* * @return Boolean value that indicates whether the ARN list of the * assessment runs is truncated. */ public Boolean getAssessmentRunArnsTruncated() { return this.assessmentRunArnsTruncated; } /** *

* Boolean value that indicates whether the ARN list of the assessment runs * is truncated. *

* * @param assessmentRunArnsTruncated * Boolean value that indicates whether the ARN list of the * assessment runs is truncated. * @return Returns a reference to this object so that method calls can be * chained together. */ public AssessmentRunInProgressException withAssessmentRunArnsTruncated( Boolean assessmentRunArnsTruncated) { setAssessmentRunArnsTruncated(assessmentRunArnsTruncated); return this; } /** *

* Boolean value that indicates whether the ARN list of the assessment runs * is truncated. *

* * @return Boolean value that indicates whether the ARN list of the * assessment runs is truncated. */ public Boolean isAssessmentRunArnsTruncated() { return this.assessmentRunArnsTruncated; } /** *

* You can immediately retry your request. *

* * @param canRetry * You can immediately retry your request. */ public void setCanRetry(Boolean canRetry) { this.canRetry = canRetry; } /** *

* You can immediately retry your request. *

* * @return You can immediately retry your request. */ public Boolean getCanRetry() { return this.canRetry; } /** *

* You can immediately retry your request. *

* * @param canRetry * You can immediately retry your request. * @return Returns a reference to this object so that method calls can be * chained together. */ public AssessmentRunInProgressException withCanRetry(Boolean canRetry) { setCanRetry(canRetry); return this; } /** *

* You can immediately retry your request. *

* * @return You can immediately retry your request. */ public Boolean isCanRetry() { return this.canRetry; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy