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

com.amazonaws.services.config.model.RecordingMode Maven / Gradle / Ivy

/*
 * Copyright 2019-2024 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;

/**
 * 

* Specifies the default recording frequency that Config uses to record configuration changes. Config supports * Continuous recording and Daily recording. *

*
    *
  • *

    * Continuous recording allows you to record configuration changes continuously whenever a change occurs. *

    *
  • *
  • *

    * Daily recording allows you to receive a configuration item (CI) representing the most recent state of your resources * over the last 24-hour period, only if it’s different from the previous CI recorded. *

    *
  • *
* *

* Firewall Manager depends on continuous recording to monitor your resources. If you are using Firewall Manager, it is * recommended that you set the recording frequency to Continuous. *

*
*

* You can also override the recording frequency for specific resource types. *

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

* The default recording frequency that Config uses to record configuration changes. *

* *

* Daily recording is not supported for the following resource types: *

*
    *
  • *

    * AWS::Config::ResourceCompliance *

    *
  • *
  • *

    * AWS::Config::ConformancePackCompliance *

    *
  • *
  • *

    * AWS::Config::ConfigurationRecorder *

    *
  • *
*

* For the allSupported (ALL_SUPPORTED_RESOURCE_TYPES) recording strategy, these resource types * will be set to Continuous recording. *

*
*/ private String recordingFrequency; /** *

* An array of recordingModeOverride objects for you to specify your overrides for the recording mode. * The recordingModeOverride object in the recordingModeOverrides array consists of three * fields: a description, the new recordingFrequency, and an array of * resourceTypes to override. *

*/ private com.amazonaws.internal.SdkInternalList recordingModeOverrides; /** *

* The default recording frequency that Config uses to record configuration changes. *

* *

* Daily recording is not supported for the following resource types: *

*
    *
  • *

    * AWS::Config::ResourceCompliance *

    *
  • *
  • *

    * AWS::Config::ConformancePackCompliance *

    *
  • *
  • *

    * AWS::Config::ConfigurationRecorder *

    *
  • *
*

* For the allSupported (ALL_SUPPORTED_RESOURCE_TYPES) recording strategy, these resource types * will be set to Continuous recording. *

*
* * @param recordingFrequency * The default recording frequency that Config uses to record configuration changes.

*

* Daily recording is not supported for the following resource types: *

*
    *
  • *

    * AWS::Config::ResourceCompliance *

    *
  • *
  • *

    * AWS::Config::ConformancePackCompliance *

    *
  • *
  • *

    * AWS::Config::ConfigurationRecorder *

    *
  • *
*

* For the allSupported (ALL_SUPPORTED_RESOURCE_TYPES) recording strategy, these resource * types will be set to Continuous recording. *

* @see RecordingFrequency */ public void setRecordingFrequency(String recordingFrequency) { this.recordingFrequency = recordingFrequency; } /** *

* The default recording frequency that Config uses to record configuration changes. *

* *

* Daily recording is not supported for the following resource types: *

*
    *
  • *

    * AWS::Config::ResourceCompliance *

    *
  • *
  • *

    * AWS::Config::ConformancePackCompliance *

    *
  • *
  • *

    * AWS::Config::ConfigurationRecorder *

    *
  • *
*

* For the allSupported (ALL_SUPPORTED_RESOURCE_TYPES) recording strategy, these resource types * will be set to Continuous recording. *

*
* * @return The default recording frequency that Config uses to record configuration changes.

*

* Daily recording is not supported for the following resource types: *

*
    *
  • *

    * AWS::Config::ResourceCompliance *

    *
  • *
  • *

    * AWS::Config::ConformancePackCompliance *

    *
  • *
  • *

    * AWS::Config::ConfigurationRecorder *

    *
  • *
*

* For the allSupported (ALL_SUPPORTED_RESOURCE_TYPES) recording strategy, these * resource types will be set to Continuous recording. *

* @see RecordingFrequency */ public String getRecordingFrequency() { return this.recordingFrequency; } /** *

* The default recording frequency that Config uses to record configuration changes. *

* *

* Daily recording is not supported for the following resource types: *

*
    *
  • *

    * AWS::Config::ResourceCompliance *

    *
  • *
  • *

    * AWS::Config::ConformancePackCompliance *

    *
  • *
  • *

    * AWS::Config::ConfigurationRecorder *

    *
  • *
*

* For the allSupported (ALL_SUPPORTED_RESOURCE_TYPES) recording strategy, these resource types * will be set to Continuous recording. *

*
* * @param recordingFrequency * The default recording frequency that Config uses to record configuration changes.

*

* Daily recording is not supported for the following resource types: *

*
    *
  • *

    * AWS::Config::ResourceCompliance *

    *
  • *
  • *

    * AWS::Config::ConformancePackCompliance *

    *
  • *
  • *

    * AWS::Config::ConfigurationRecorder *

    *
  • *
*

* For the allSupported (ALL_SUPPORTED_RESOURCE_TYPES) recording strategy, these resource * types will be set to Continuous recording. *

* @return Returns a reference to this object so that method calls can be chained together. * @see RecordingFrequency */ public RecordingMode withRecordingFrequency(String recordingFrequency) { setRecordingFrequency(recordingFrequency); return this; } /** *

* The default recording frequency that Config uses to record configuration changes. *

* *

* Daily recording is not supported for the following resource types: *

*
    *
  • *

    * AWS::Config::ResourceCompliance *

    *
  • *
  • *

    * AWS::Config::ConformancePackCompliance *

    *
  • *
  • *

    * AWS::Config::ConfigurationRecorder *

    *
  • *
*

* For the allSupported (ALL_SUPPORTED_RESOURCE_TYPES) recording strategy, these resource types * will be set to Continuous recording. *

*
* * @param recordingFrequency * The default recording frequency that Config uses to record configuration changes.

*

* Daily recording is not supported for the following resource types: *

*
    *
  • *

    * AWS::Config::ResourceCompliance *

    *
  • *
  • *

    * AWS::Config::ConformancePackCompliance *

    *
  • *
  • *

    * AWS::Config::ConfigurationRecorder *

    *
  • *
*

* For the allSupported (ALL_SUPPORTED_RESOURCE_TYPES) recording strategy, these resource * types will be set to Continuous recording. *

* @return Returns a reference to this object so that method calls can be chained together. * @see RecordingFrequency */ public RecordingMode withRecordingFrequency(RecordingFrequency recordingFrequency) { this.recordingFrequency = recordingFrequency.toString(); return this; } /** *

* An array of recordingModeOverride objects for you to specify your overrides for the recording mode. * The recordingModeOverride object in the recordingModeOverrides array consists of three * fields: a description, the new recordingFrequency, and an array of * resourceTypes to override. *

* * @return An array of recordingModeOverride objects for you to specify your overrides for the * recording mode. The recordingModeOverride object in the recordingModeOverrides * array consists of three fields: a description, the new recordingFrequency, and * an array of resourceTypes to override. */ public java.util.List getRecordingModeOverrides() { if (recordingModeOverrides == null) { recordingModeOverrides = new com.amazonaws.internal.SdkInternalList(); } return recordingModeOverrides; } /** *

* An array of recordingModeOverride objects for you to specify your overrides for the recording mode. * The recordingModeOverride object in the recordingModeOverrides array consists of three * fields: a description, the new recordingFrequency, and an array of * resourceTypes to override. *

* * @param recordingModeOverrides * An array of recordingModeOverride objects for you to specify your overrides for the recording * mode. The recordingModeOverride object in the recordingModeOverrides array * consists of three fields: a description, the new recordingFrequency, and an * array of resourceTypes to override. */ public void setRecordingModeOverrides(java.util.Collection recordingModeOverrides) { if (recordingModeOverrides == null) { this.recordingModeOverrides = null; return; } this.recordingModeOverrides = new com.amazonaws.internal.SdkInternalList(recordingModeOverrides); } /** *

* An array of recordingModeOverride objects for you to specify your overrides for the recording mode. * The recordingModeOverride object in the recordingModeOverrides array consists of three * fields: a description, the new recordingFrequency, and an array of * resourceTypes to override. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setRecordingModeOverrides(java.util.Collection)} or * {@link #withRecordingModeOverrides(java.util.Collection)} if you want to override the existing values. *

* * @param recordingModeOverrides * An array of recordingModeOverride objects for you to specify your overrides for the recording * mode. The recordingModeOverride object in the recordingModeOverrides array * consists of three fields: a description, the new recordingFrequency, and an * array of resourceTypes to override. * @return Returns a reference to this object so that method calls can be chained together. */ public RecordingMode withRecordingModeOverrides(RecordingModeOverride... recordingModeOverrides) { if (this.recordingModeOverrides == null) { setRecordingModeOverrides(new com.amazonaws.internal.SdkInternalList(recordingModeOverrides.length)); } for (RecordingModeOverride ele : recordingModeOverrides) { this.recordingModeOverrides.add(ele); } return this; } /** *

* An array of recordingModeOverride objects for you to specify your overrides for the recording mode. * The recordingModeOverride object in the recordingModeOverrides array consists of three * fields: a description, the new recordingFrequency, and an array of * resourceTypes to override. *

* * @param recordingModeOverrides * An array of recordingModeOverride objects for you to specify your overrides for the recording * mode. The recordingModeOverride object in the recordingModeOverrides array * consists of three fields: a description, the new recordingFrequency, and an * array of resourceTypes to override. * @return Returns a reference to this object so that method calls can be chained together. */ public RecordingMode withRecordingModeOverrides(java.util.Collection recordingModeOverrides) { setRecordingModeOverrides(recordingModeOverrides); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getRecordingFrequency() != null) sb.append("RecordingFrequency: ").append(getRecordingFrequency()).append(","); if (getRecordingModeOverrides() != null) sb.append("RecordingModeOverrides: ").append(getRecordingModeOverrides()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RecordingMode == false) return false; RecordingMode other = (RecordingMode) obj; if (other.getRecordingFrequency() == null ^ this.getRecordingFrequency() == null) return false; if (other.getRecordingFrequency() != null && other.getRecordingFrequency().equals(this.getRecordingFrequency()) == false) return false; if (other.getRecordingModeOverrides() == null ^ this.getRecordingModeOverrides() == null) return false; if (other.getRecordingModeOverrides() != null && other.getRecordingModeOverrides().equals(this.getRecordingModeOverrides()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRecordingFrequency() == null) ? 0 : getRecordingFrequency().hashCode()); hashCode = prime * hashCode + ((getRecordingModeOverrides() == null) ? 0 : getRecordingModeOverrides().hashCode()); return hashCode; } @Override public RecordingMode clone() { try { return (RecordingMode) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.config.model.transform.RecordingModeMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy