/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Macie2 { namespace Model { /** */ class EnableMacieRequest : public Macie2Request { public: AWS_MACIE2_API EnableMacieRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "EnableMacie"; } AWS_MACIE2_API Aws::String SerializePayload() const override; /** *

A unique, case-sensitive token that you provide to ensure the idempotency of * the request.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A unique, case-sensitive token that you provide to ensure the idempotency of * the request.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A unique, case-sensitive token that you provide to ensure the idempotency of * the request.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A unique, case-sensitive token that you provide to ensure the idempotency of * the request.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A unique, case-sensitive token that you provide to ensure the idempotency of * the request.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A unique, case-sensitive token that you provide to ensure the idempotency of * the request.

*/ inline EnableMacieRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A unique, case-sensitive token that you provide to ensure the idempotency of * the request.

*/ inline EnableMacieRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A unique, case-sensitive token that you provide to ensure the idempotency of * the request.

*/ inline EnableMacieRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

Specifies how often to publish updates to policy findings for the account. * This includes publishing updates to Security Hub and Amazon EventBridge * (formerly Amazon CloudWatch Events).

*/ inline const FindingPublishingFrequency& GetFindingPublishingFrequency() const{ return m_findingPublishingFrequency; } /** *

Specifies how often to publish updates to policy findings for the account. * This includes publishing updates to Security Hub and Amazon EventBridge * (formerly Amazon CloudWatch Events).

*/ inline bool FindingPublishingFrequencyHasBeenSet() const { return m_findingPublishingFrequencyHasBeenSet; } /** *

Specifies how often to publish updates to policy findings for the account. * This includes publishing updates to Security Hub and Amazon EventBridge * (formerly Amazon CloudWatch Events).

*/ inline void SetFindingPublishingFrequency(const FindingPublishingFrequency& value) { m_findingPublishingFrequencyHasBeenSet = true; m_findingPublishingFrequency = value; } /** *

Specifies how often to publish updates to policy findings for the account. * This includes publishing updates to Security Hub and Amazon EventBridge * (formerly Amazon CloudWatch Events).

*/ inline void SetFindingPublishingFrequency(FindingPublishingFrequency&& value) { m_findingPublishingFrequencyHasBeenSet = true; m_findingPublishingFrequency = std::move(value); } /** *

Specifies how often to publish updates to policy findings for the account. * This includes publishing updates to Security Hub and Amazon EventBridge * (formerly Amazon CloudWatch Events).

*/ inline EnableMacieRequest& WithFindingPublishingFrequency(const FindingPublishingFrequency& value) { SetFindingPublishingFrequency(value); return *this;} /** *

Specifies how often to publish updates to policy findings for the account. * This includes publishing updates to Security Hub and Amazon EventBridge * (formerly Amazon CloudWatch Events).

*/ inline EnableMacieRequest& WithFindingPublishingFrequency(FindingPublishingFrequency&& value) { SetFindingPublishingFrequency(std::move(value)); return *this;} /** *

Specifies the new status for the account. To enable Amazon Macie and start * all Macie activities for the account, set this value to ENABLED.

*/ inline const MacieStatus& GetStatus() const{ return m_status; } /** *

Specifies the new status for the account. To enable Amazon Macie and start * all Macie activities for the account, set this value to ENABLED.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

Specifies the new status for the account. To enable Amazon Macie and start * all Macie activities for the account, set this value to ENABLED.

*/ inline void SetStatus(const MacieStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

Specifies the new status for the account. To enable Amazon Macie and start * all Macie activities for the account, set this value to ENABLED.

*/ inline void SetStatus(MacieStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

Specifies the new status for the account. To enable Amazon Macie and start * all Macie activities for the account, set this value to ENABLED.

*/ inline EnableMacieRequest& WithStatus(const MacieStatus& value) { SetStatus(value); return *this;} /** *

Specifies the new status for the account. To enable Amazon Macie and start * all Macie activities for the account, set this value to ENABLED.

*/ inline EnableMacieRequest& WithStatus(MacieStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; FindingPublishingFrequency m_findingPublishingFrequency; bool m_findingPublishingFrequencyHasBeenSet = false; MacieStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws