/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace RDS { namespace Model { /** */ class ModifyActivityStreamRequest : public RDSRequest { public: AWS_RDS_API ModifyActivityStreamRequest(); // 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 "ModifyActivityStream"; } AWS_RDS_API Aws::String SerializePayload() const override; protected: AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The Amazon Resource Name (ARN) of the RDS for Oracle or Microsoft SQL Server * DB instance. For example, * arn:aws:rds:us-east-1:12345667890:instance:my-orcl-db.

*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *

The Amazon Resource Name (ARN) of the RDS for Oracle or Microsoft SQL Server * DB instance. For example, * arn:aws:rds:us-east-1:12345667890:instance:my-orcl-db.

*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the RDS for Oracle or Microsoft SQL Server * DB instance. For example, * arn:aws:rds:us-east-1:12345667890:instance:my-orcl-db.

*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *

The Amazon Resource Name (ARN) of the RDS for Oracle or Microsoft SQL Server * DB instance. For example, * arn:aws:rds:us-east-1:12345667890:instance:my-orcl-db.

*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the RDS for Oracle or Microsoft SQL Server * DB instance. For example, * arn:aws:rds:us-east-1:12345667890:instance:my-orcl-db.

*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the RDS for Oracle or Microsoft SQL Server * DB instance. For example, * arn:aws:rds:us-east-1:12345667890:instance:my-orcl-db.

*/ inline ModifyActivityStreamRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the RDS for Oracle or Microsoft SQL Server * DB instance. For example, * arn:aws:rds:us-east-1:12345667890:instance:my-orcl-db.

*/ inline ModifyActivityStreamRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the RDS for Oracle or Microsoft SQL Server * DB instance. For example, * arn:aws:rds:us-east-1:12345667890:instance:my-orcl-db.

*/ inline ModifyActivityStreamRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *

The audit policy state. When a policy is unlocked, it is read/write. When it * is locked, it is read-only. You can edit your audit policy only when the * activity stream is unlocked or stopped.

*/ inline const AuditPolicyState& GetAuditPolicyState() const{ return m_auditPolicyState; } /** *

The audit policy state. When a policy is unlocked, it is read/write. When it * is locked, it is read-only. You can edit your audit policy only when the * activity stream is unlocked or stopped.

*/ inline bool AuditPolicyStateHasBeenSet() const { return m_auditPolicyStateHasBeenSet; } /** *

The audit policy state. When a policy is unlocked, it is read/write. When it * is locked, it is read-only. You can edit your audit policy only when the * activity stream is unlocked or stopped.

*/ inline void SetAuditPolicyState(const AuditPolicyState& value) { m_auditPolicyStateHasBeenSet = true; m_auditPolicyState = value; } /** *

The audit policy state. When a policy is unlocked, it is read/write. When it * is locked, it is read-only. You can edit your audit policy only when the * activity stream is unlocked or stopped.

*/ inline void SetAuditPolicyState(AuditPolicyState&& value) { m_auditPolicyStateHasBeenSet = true; m_auditPolicyState = std::move(value); } /** *

The audit policy state. When a policy is unlocked, it is read/write. When it * is locked, it is read-only. You can edit your audit policy only when the * activity stream is unlocked or stopped.

*/ inline ModifyActivityStreamRequest& WithAuditPolicyState(const AuditPolicyState& value) { SetAuditPolicyState(value); return *this;} /** *

The audit policy state. When a policy is unlocked, it is read/write. When it * is locked, it is read-only. You can edit your audit policy only when the * activity stream is unlocked or stopped.

*/ inline ModifyActivityStreamRequest& WithAuditPolicyState(AuditPolicyState&& value) { SetAuditPolicyState(std::move(value)); return *this;} private: Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; AuditPolicyState m_auditPolicyState; bool m_auditPolicyStateHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws