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 SDK for Java with support for OSGi. The AWS SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

There is a newer version: 1.11.60
Show newest version
/*
 * Copyright 2011-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;

/**
 * 

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

*/ public class AssessmentRunInProgressException extends com.amazonaws.services.inspector.model.AmazonInspectorException { private static final long serialVersionUID = 1L; /** *

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

*/ private java.util.List assessmentRunArns; /** *

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

*/ private Boolean assessmentRunArnsTruncated; /** *

* You can immediately retry your request. *

*/ 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. */ @com.fasterxml.jackson.annotation.JsonProperty("assessmentRunArns") 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. */ @com.fasterxml.jackson.annotation.JsonProperty("assessmentRunArns") 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. */ @com.fasterxml.jackson.annotation.JsonProperty("assessmentRunArnsTruncated") 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. */ @com.fasterxml.jackson.annotation.JsonProperty("assessmentRunArnsTruncated") 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. */ @com.fasterxml.jackson.annotation.JsonProperty("canRetry") public void setCanRetry(Boolean canRetry) { this.canRetry = canRetry; } /** *

* You can immediately retry your request. *

* * @return You can immediately retry your request. */ @com.fasterxml.jackson.annotation.JsonProperty("canRetry") 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