/* * 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; /** *

* Status information for your Config Managed rules and Config Custom Policy rules. The status includes information such * as the last time the rule ran, the last time it failed, and the related error for the last failure. *

*

* This action does not return status information about Config Custom Lambda rules. *

* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ConfigRuleEvaluationStatus implements Serializable, Cloneable, StructuredPojo { /** *

* The name of the Config rule. *

*/ private String configRuleName; /** *

* The Amazon Resource Name (ARN) of the Config rule. *

*/ private String configRuleArn; /** *

* The ID of the Config rule. *

*/ private String configRuleId; /** *

* The time that Config last successfully invoked the Config rule to evaluate your Amazon Web Services resources. *

*/ private java.util.Date lastSuccessfulInvocationTime; /** *

* The time that Config last failed to invoke the Config rule to evaluate your Amazon Web Services resources. *

*/ private java.util.Date lastFailedInvocationTime; /** *

* The time that Config last successfully evaluated your Amazon Web Services resources against the rule. *

*/ private java.util.Date lastSuccessfulEvaluationTime; /** *

* The time that Config last failed to evaluate your Amazon Web Services resources against the rule. *

*/ private java.util.Date lastFailedEvaluationTime; /** *

* The time that you first activated the Config rule. *

*/ private java.util.Date firstActivatedTime; /** *

* The time that you last turned off the Config rule. *

*/ private java.util.Date lastDeactivatedTime; /** *

* The error code that Config returned when the rule last failed. *

*/ private String lastErrorCode; /** *

* The error message that Config returned when the rule last failed. *

*/ private String lastErrorMessage; /** *

* Indicates whether Config has evaluated your resources against the rule at least once. *

* */ private Boolean firstEvaluationStarted; /** *

* The status of the last attempted delivery of a debug log for your Config Custom Policy rules. Either * Successful or Failed. *

*/ private String lastDebugLogDeliveryStatus; /** *

* The reason Config was not able to deliver a debug log. This is for the last failed attempt to retrieve a debug * log for your Config Custom Policy rules. *

*/ private String lastDebugLogDeliveryStatusReason; /** *

* The time Config last attempted to deliver a debug log for your Config Custom Policy rules. *

*/ private java.util.Date lastDebugLogDeliveryTime; /** *

* The name of the Config rule. *

* * @param configRuleName * The name of the Config rule. */ public void setConfigRuleName(String configRuleName) { this.configRuleName = configRuleName; } /** *

* The name of the Config rule. *

* * @return The name of the Config rule. */ public String getConfigRuleName() { return this.configRuleName; } /** *

* The name of the Config rule. *

* * @param configRuleName * The name of the Config rule. * @return Returns a reference to this object so that method calls can be chained together. */ public ConfigRuleEvaluationStatus withConfigRuleName(String configRuleName) { setConfigRuleName(configRuleName); return this; } /** *

* The Amazon Resource Name (ARN) of the Config rule. *

* * @param configRuleArn * The Amazon Resource Name (ARN) of the Config rule. */ public void setConfigRuleArn(String configRuleArn) { this.configRuleArn = configRuleArn; } /** *

* The Amazon Resource Name (ARN) of the Config rule. *

* * @return The Amazon Resource Name (ARN) of the Config rule. */ public String getConfigRuleArn() { return this.configRuleArn; } /** *

* The Amazon Resource Name (ARN) of the Config rule. *

* * @param configRuleArn * The Amazon Resource Name (ARN) of the Config rule. * @return Returns a reference to this object so that method calls can be chained together. */ public ConfigRuleEvaluationStatus withConfigRuleArn(String configRuleArn) { setConfigRuleArn(configRuleArn); return this; } /** *

* The ID of the Config rule. *

* * @param configRuleId * The ID of the Config rule. */ public void setConfigRuleId(String configRuleId) { this.configRuleId = configRuleId; } /** *

* The ID of the Config rule. *

* * @return The ID of the Config rule. */ public String getConfigRuleId() { return this.configRuleId; } /** *

* The ID of the Config rule. *

* * @param configRuleId * The ID of the Config rule. * @return Returns a reference to this object so that method calls can be chained together. */ public ConfigRuleEvaluationStatus withConfigRuleId(String configRuleId) { setConfigRuleId(configRuleId); return this; } /** *

* The time that Config last successfully invoked the Config rule to evaluate your Amazon Web Services resources. *

* * @param lastSuccessfulInvocationTime * The time that Config last successfully invoked the Config rule to evaluate your Amazon Web Services * resources. */ public void setLastSuccessfulInvocationTime(java.util.Date lastSuccessfulInvocationTime) { this.lastSuccessfulInvocationTime = lastSuccessfulInvocationTime; } /** *

* The time that Config last successfully invoked the Config rule to evaluate your Amazon Web Services resources. *

* * @return The time that Config last successfully invoked the Config rule to evaluate your Amazon Web Services * resources. */ public java.util.Date getLastSuccessfulInvocationTime() { return this.lastSuccessfulInvocationTime; } /** *

* The time that Config last successfully invoked the Config rule to evaluate your Amazon Web Services resources. *

* * @param lastSuccessfulInvocationTime * The time that Config last successfully invoked the Config rule to evaluate your Amazon Web Services * resources. * @return Returns a reference to this object so that method calls can be chained together. */ public ConfigRuleEvaluationStatus withLastSuccessfulInvocationTime(java.util.Date lastSuccessfulInvocationTime) { setLastSuccessfulInvocationTime(lastSuccessfulInvocationTime); return this; } /** *

* The time that Config last failed to invoke the Config rule to evaluate your Amazon Web Services resources. *

* * @param lastFailedInvocationTime * The time that Config last failed to invoke the Config rule to evaluate your Amazon Web Services resources. */ public void setLastFailedInvocationTime(java.util.Date lastFailedInvocationTime) { this.lastFailedInvocationTime = lastFailedInvocationTime; } /** *

* The time that Config last failed to invoke the Config rule to evaluate your Amazon Web Services resources. *

* * @return The time that Config last failed to invoke the Config rule to evaluate your Amazon Web Services * resources. */ public java.util.Date getLastFailedInvocationTime() { return this.lastFailedInvocationTime; } /** *

* The time that Config last failed to invoke the Config rule to evaluate your Amazon Web Services resources. *

* * @param lastFailedInvocationTime * The time that Config last failed to invoke the Config rule to evaluate your Amazon Web Services resources. * @return Returns a reference to this object so that method calls can be chained together. */ public ConfigRuleEvaluationStatus withLastFailedInvocationTime(java.util.Date lastFailedInvocationTime) { setLastFailedInvocationTime(lastFailedInvocationTime); return this; } /** *

* The time that Config last successfully evaluated your Amazon Web Services resources against the rule. *

* * @param lastSuccessfulEvaluationTime * The time that Config last successfully evaluated your Amazon Web Services resources against the rule. */ public void setLastSuccessfulEvaluationTime(java.util.Date lastSuccessfulEvaluationTime) { this.lastSuccessfulEvaluationTime = lastSuccessfulEvaluationTime; } /** *

* The time that Config last successfully evaluated your Amazon Web Services resources against the rule. *

* * @return The time that Config last successfully evaluated your Amazon Web Services resources against the rule. */ public java.util.Date getLastSuccessfulEvaluationTime() { return this.lastSuccessfulEvaluationTime; } /** *

* The time that Config last successfully evaluated your Amazon Web Services resources against the rule. *

* * @param lastSuccessfulEvaluationTime * The time that Config last successfully evaluated your Amazon Web Services resources against the rule. * @return Returns a reference to this object so that method calls can be chained together. */ public ConfigRuleEvaluationStatus withLastSuccessfulEvaluationTime(java.util.Date lastSuccessfulEvaluationTime) { setLastSuccessfulEvaluationTime(lastSuccessfulEvaluationTime); return this; } /** *

* The time that Config last failed to evaluate your Amazon Web Services resources against the rule. *

* * @param lastFailedEvaluationTime * The time that Config last failed to evaluate your Amazon Web Services resources against the rule. */ public void setLastFailedEvaluationTime(java.util.Date lastFailedEvaluationTime) { this.lastFailedEvaluationTime = lastFailedEvaluationTime; } /** *

* The time that Config last failed to evaluate your Amazon Web Services resources against the rule. *

* * @return The time that Config last failed to evaluate your Amazon Web Services resources against the rule. */ public java.util.Date getLastFailedEvaluationTime() { return this.lastFailedEvaluationTime; } /** *

* The time that Config last failed to evaluate your Amazon Web Services resources against the rule. *

* * @param lastFailedEvaluationTime * The time that Config last failed to evaluate your Amazon Web Services resources against the rule. * @return Returns a reference to this object so that method calls can be chained together. */ public ConfigRuleEvaluationStatus withLastFailedEvaluationTime(java.util.Date lastFailedEvaluationTime) { setLastFailedEvaluationTime(lastFailedEvaluationTime); return this; } /** *

* The time that you first activated the Config rule. *

* * @param firstActivatedTime * The time that you first activated the Config rule. */ public void setFirstActivatedTime(java.util.Date firstActivatedTime) { this.firstActivatedTime = firstActivatedTime; } /** *

* The time that you first activated the Config rule. *

* * @return The time that you first activated the Config rule. */ public java.util.Date getFirstActivatedTime() { return this.firstActivatedTime; } /** *

* The time that you first activated the Config rule. *

* * @param firstActivatedTime * The time that you first activated the Config rule. * @return Returns a reference to this object so that method calls can be chained together. */ public ConfigRuleEvaluationStatus withFirstActivatedTime(java.util.Date firstActivatedTime) { setFirstActivatedTime(firstActivatedTime); return this; } /** *

* The time that you last turned off the Config rule. *

* * @param lastDeactivatedTime * The time that you last turned off the Config rule. */ public void setLastDeactivatedTime(java.util.Date lastDeactivatedTime) { this.lastDeactivatedTime = lastDeactivatedTime; } /** *

* The time that you last turned off the Config rule. *

* * @return The time that you last turned off the Config rule. */ public java.util.Date getLastDeactivatedTime() { return this.lastDeactivatedTime; } /** *

* The time that you last turned off the Config rule. *

* * @param lastDeactivatedTime * The time that you last turned off the Config rule. * @return Returns a reference to this object so that method calls can be chained together. */ public ConfigRuleEvaluationStatus withLastDeactivatedTime(java.util.Date lastDeactivatedTime) { setLastDeactivatedTime(lastDeactivatedTime); return this; } /** *

* The error code that Config returned when the rule last failed. *

* * @param lastErrorCode * The error code that Config returned when the rule last failed. */ public void setLastErrorCode(String lastErrorCode) { this.lastErrorCode = lastErrorCode; } /** *

* The error code that Config returned when the rule last failed. *

* * @return The error code that Config returned when the rule last failed. */ public String getLastErrorCode() { return this.lastErrorCode; } /** *

* The error code that Config returned when the rule last failed. *

* * @param lastErrorCode * The error code that Config returned when the rule last failed. * @return Returns a reference to this object so that method calls can be chained together. */ public ConfigRuleEvaluationStatus withLastErrorCode(String lastErrorCode) { setLastErrorCode(lastErrorCode); return this; } /** *

* The error message that Config returned when the rule last failed. *

* * @param lastErrorMessage * The error message that Config returned when the rule last failed. */ public void setLastErrorMessage(String lastErrorMessage) { this.lastErrorMessage = lastErrorMessage; } /** *

* The error message that Config returned when the rule last failed. *

* * @return The error message that Config returned when the rule last failed. */ public String getLastErrorMessage() { return this.lastErrorMessage; } /** *

* The error message that Config returned when the rule last failed. *

* * @param lastErrorMessage * The error message that Config returned when the rule last failed. * @return Returns a reference to this object so that method calls can be chained together. */ public ConfigRuleEvaluationStatus withLastErrorMessage(String lastErrorMessage) { setLastErrorMessage(lastErrorMessage); return this; } /** *

* Indicates whether Config has evaluated your resources against the rule at least once. *

* * * @param firstEvaluationStarted * Indicates whether Config has evaluated your resources against the rule at least once.

*