/* * 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.config.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* List of each of the failed remediation exceptions with specific reasons. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class FailedRemediationExceptionBatch implements Serializable, Cloneable, StructuredPojo { /** ** Returns a failure message. For example, the auto-remediation has failed. *
*/ private String failureMessage; /** ** Returns remediation exception resource key object of the failed items. *
*/ private com.amazonaws.internal.SdkInternalList* Returns a failure message. For example, the auto-remediation has failed. *
* * @param failureMessage * Returns a failure message. For example, the auto-remediation has failed. */ public void setFailureMessage(String failureMessage) { this.failureMessage = failureMessage; } /** ** Returns a failure message. For example, the auto-remediation has failed. *
* * @return Returns a failure message. For example, the auto-remediation has failed. */ public String getFailureMessage() { return this.failureMessage; } /** ** Returns a failure message. For example, the auto-remediation has failed. *
* * @param failureMessage * Returns a failure message. For example, the auto-remediation has failed. * @return Returns a reference to this object so that method calls can be chained together. */ public FailedRemediationExceptionBatch withFailureMessage(String failureMessage) { setFailureMessage(failureMessage); return this; } /** ** Returns remediation exception resource key object of the failed items. *
* * @return Returns remediation exception resource key object of the failed items. */ public java.util.List* Returns remediation exception resource key object of the failed items. *
* * @param failedItems * Returns remediation exception resource key object of the failed items. */ public void setFailedItems(java.util.Collection* Returns remediation exception resource key object of the failed items. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setFailedItems(java.util.Collection)} or {@link #withFailedItems(java.util.Collection)} if you want to * override the existing values. *
* * @param failedItems * Returns remediation exception resource key object of the failed items. * @return Returns a reference to this object so that method calls can be chained together. */ public FailedRemediationExceptionBatch withFailedItems(RemediationException... failedItems) { if (this.failedItems == null) { setFailedItems(new com.amazonaws.internal.SdkInternalList* Returns remediation exception resource key object of the failed items. *
* * @param failedItems * Returns remediation exception resource key object of the failed items. * @return Returns a reference to this object so that method calls can be chained together. */ public FailedRemediationExceptionBatch withFailedItems(java.util.Collection