/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AuditManager { namespace Model { /** *

The metadata that's associated with the standard control or custom control. *

See Also:

AWS * API Reference

*/ class ControlMetadata { public: AWS_AUDITMANAGER_API ControlMetadata(); AWS_AUDITMANAGER_API ControlMetadata(Aws::Utils::Json::JsonView jsonValue); AWS_AUDITMANAGER_API ControlMetadata& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Resource Name (ARN) of the control.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the control.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the control.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) of the control.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the control.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the control.

*/ inline ControlMetadata& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the control.

*/ inline ControlMetadata& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the control.

*/ inline ControlMetadata& WithArn(const char* value) { SetArn(value); return *this;} /** *

The unique identifier for the control.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique identifier for the control.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The unique identifier for the control.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The unique identifier for the control.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The unique identifier for the control.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The unique identifier for the control.

*/ inline ControlMetadata& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique identifier for the control.

*/ inline ControlMetadata& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique identifier for the control.

*/ inline ControlMetadata& WithId(const char* value) { SetId(value); return *this;} /** *

The name of the control.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the control.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the control.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the control.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the control.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the control.

*/ inline ControlMetadata& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the control.

*/ inline ControlMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the control.

*/ inline ControlMetadata& WithName(const char* value) { SetName(value); return *this;} /** *

The data source that determines where Audit Manager collects evidence from * for the control.

*/ inline const Aws::String& GetControlSources() const{ return m_controlSources; } /** *

The data source that determines where Audit Manager collects evidence from * for the control.

*/ inline bool ControlSourcesHasBeenSet() const { return m_controlSourcesHasBeenSet; } /** *

The data source that determines where Audit Manager collects evidence from * for the control.

*/ inline void SetControlSources(const Aws::String& value) { m_controlSourcesHasBeenSet = true; m_controlSources = value; } /** *

The data source that determines where Audit Manager collects evidence from * for the control.

*/ inline void SetControlSources(Aws::String&& value) { m_controlSourcesHasBeenSet = true; m_controlSources = std::move(value); } /** *

The data source that determines where Audit Manager collects evidence from * for the control.

*/ inline void SetControlSources(const char* value) { m_controlSourcesHasBeenSet = true; m_controlSources.assign(value); } /** *

The data source that determines where Audit Manager collects evidence from * for the control.

*/ inline ControlMetadata& WithControlSources(const Aws::String& value) { SetControlSources(value); return *this;} /** *

The data source that determines where Audit Manager collects evidence from * for the control.

*/ inline ControlMetadata& WithControlSources(Aws::String&& value) { SetControlSources(std::move(value)); return *this;} /** *

The data source that determines where Audit Manager collects evidence from * for the control.

*/ inline ControlMetadata& WithControlSources(const char* value) { SetControlSources(value); return *this;} /** *

The time when the control was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The time when the control was created.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The time when the control was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The time when the control was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The time when the control was created.

*/ inline ControlMetadata& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The time when the control was created.

*/ inline ControlMetadata& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The time when the control was most recently updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; } /** *

The time when the control was most recently updated.

*/ inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; } /** *

The time when the control was most recently updated.

*/ inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; } /** *

The time when the control was most recently updated.

*/ inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); } /** *

The time when the control was most recently updated.

*/ inline ControlMetadata& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;} /** *

The time when the control was most recently updated.

*/ inline ControlMetadata& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_controlSources; bool m_controlSourcesHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedAt; bool m_lastUpdatedAtHasBeenSet = false; }; } // namespace Model } // namespace AuditManager } // namespace Aws