/* * 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.greengrassv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains all error-related information for the deployment record. The status details will be null if the deployment * is in a success state. *
*
* Greengrass nucleus v2.8.0 or later is required to get an accurate errorStack
and errorTypes
* response. This field will not be returned for earlier Greengrass nucleus versions.
*
* Contains an ordered list of short error codes that range from the most generic error to the most specific one.
* The error codes describe the reason for failure whenever the coreDeviceExecutionStatus
is in a
* failed state. The response will be an empty list if there is no error.
*
* Contains tags which describe the error. You can use the error types to classify errors to assist with remediating * the failure. The response will be an empty list if there is no error. *
*/ private java.util.List
* Contains an ordered list of short error codes that range from the most generic error to the most specific one.
* The error codes describe the reason for failure whenever the coreDeviceExecutionStatus
is in a
* failed state. The response will be an empty list if there is no error.
*
coreDeviceExecutionStatus
* is in a failed state. The response will be an empty list if there is no error.
*/
public java.util.List
* Contains an ordered list of short error codes that range from the most generic error to the most specific one.
* The error codes describe the reason for failure whenever the coreDeviceExecutionStatus
is in a
* failed state. The response will be an empty list if there is no error.
*
coreDeviceExecutionStatus
* is in a failed state. The response will be an empty list if there is no error.
*/
public void setErrorStack(java.util.Collection
* Contains an ordered list of short error codes that range from the most generic error to the most specific one.
* The error codes describe the reason for failure whenever the coreDeviceExecutionStatus
is in a
* failed state. The response will be an empty list if there is no error.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setErrorStack(java.util.Collection)} or {@link #withErrorStack(java.util.Collection)} if you want to * override the existing values. *
* * @param errorStack * Contains an ordered list of short error codes that range from the most generic error to the most specific * one. The error codes describe the reason for failure whenever thecoreDeviceExecutionStatus
* is in a failed state. The response will be an empty list if there is no error.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EffectiveDeploymentStatusDetails withErrorStack(String... errorStack) {
if (this.errorStack == null) {
setErrorStack(new java.util.ArrayList
* Contains an ordered list of short error codes that range from the most generic error to the most specific one.
* The error codes describe the reason for failure whenever the coreDeviceExecutionStatus
is in a
* failed state. The response will be an empty list if there is no error.
*
coreDeviceExecutionStatus
* is in a failed state. The response will be an empty list if there is no error.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EffectiveDeploymentStatusDetails withErrorStack(java.util.Collection* Contains tags which describe the error. You can use the error types to classify errors to assist with remediating * the failure. The response will be an empty list if there is no error. *
* * @return Contains tags which describe the error. You can use the error types to classify errors to assist with * remediating the failure. The response will be an empty list if there is no error. */ public java.util.List* Contains tags which describe the error. You can use the error types to classify errors to assist with remediating * the failure. The response will be an empty list if there is no error. *
* * @param errorTypes * Contains tags which describe the error. You can use the error types to classify errors to assist with * remediating the failure. The response will be an empty list if there is no error. */ public void setErrorTypes(java.util.Collection* Contains tags which describe the error. You can use the error types to classify errors to assist with remediating * the failure. The response will be an empty list if there is no error. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setErrorTypes(java.util.Collection)} or {@link #withErrorTypes(java.util.Collection)} if you want to * override the existing values. *
* * @param errorTypes * Contains tags which describe the error. You can use the error types to classify errors to assist with * remediating the failure. The response will be an empty list if there is no error. * @return Returns a reference to this object so that method calls can be chained together. */ public EffectiveDeploymentStatusDetails withErrorTypes(String... errorTypes) { if (this.errorTypes == null) { setErrorTypes(new java.util.ArrayList* Contains tags which describe the error. You can use the error types to classify errors to assist with remediating * the failure. The response will be an empty list if there is no error. *
* * @param errorTypes * Contains tags which describe the error. You can use the error types to classify errors to assist with * remediating the failure. The response will be an empty list if there is no error. * @return Returns a reference to this object so that method calls can be chained together. */ public EffectiveDeploymentStatusDetails withErrorTypes(java.util.Collection