/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace CloudWatchLogs { namespace Model { /** */ class DescribeAccountPoliciesRequest : public CloudWatchLogsRequest { public: AWS_CLOUDWATCHLOGS_API DescribeAccountPoliciesRequest(); // 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 "DescribeAccountPolicies"; } AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override; AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Use this parameter to limit the returned policies to only the policies that * match the policy type that you specify. Currently, the only valid value is * DATA_PROTECTION_POLICY.

*/ inline const PolicyType& GetPolicyType() const{ return m_policyType; } /** *

Use this parameter to limit the returned policies to only the policies that * match the policy type that you specify. Currently, the only valid value is * DATA_PROTECTION_POLICY.

*/ inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; } /** *

Use this parameter to limit the returned policies to only the policies that * match the policy type that you specify. Currently, the only valid value is * DATA_PROTECTION_POLICY.

*/ inline void SetPolicyType(const PolicyType& value) { m_policyTypeHasBeenSet = true; m_policyType = value; } /** *

Use this parameter to limit the returned policies to only the policies that * match the policy type that you specify. Currently, the only valid value is * DATA_PROTECTION_POLICY.

*/ inline void SetPolicyType(PolicyType&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); } /** *

Use this parameter to limit the returned policies to only the policies that * match the policy type that you specify. Currently, the only valid value is * DATA_PROTECTION_POLICY.

*/ inline DescribeAccountPoliciesRequest& WithPolicyType(const PolicyType& value) { SetPolicyType(value); return *this;} /** *

Use this parameter to limit the returned policies to only the policies that * match the policy type that you specify. Currently, the only valid value is * DATA_PROTECTION_POLICY.

*/ inline DescribeAccountPoliciesRequest& WithPolicyType(PolicyType&& value) { SetPolicyType(std::move(value)); return *this;} /** *

Use this parameter to limit the returned policies to only the policy with the * name that you specify.

*/ inline const Aws::String& GetPolicyName() const{ return m_policyName; } /** *

Use this parameter to limit the returned policies to only the policy with the * name that you specify.

*/ inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; } /** *

Use this parameter to limit the returned policies to only the policy with the * name that you specify.

*/ inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; } /** *

Use this parameter to limit the returned policies to only the policy with the * name that you specify.

*/ inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); } /** *

Use this parameter to limit the returned policies to only the policy with the * name that you specify.

*/ inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); } /** *

Use this parameter to limit the returned policies to only the policy with the * name that you specify.

*/ inline DescribeAccountPoliciesRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;} /** *

Use this parameter to limit the returned policies to only the policy with the * name that you specify.

*/ inline DescribeAccountPoliciesRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;} /** *

Use this parameter to limit the returned policies to only the policy with the * name that you specify.

*/ inline DescribeAccountPoliciesRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;} /** *

If you are using an account that is set up as a monitoring account for * CloudWatch unified cross-account observability, you can use this to specify the * account ID of a source account. If you do, the operation returns the account * policy for the specified account. Currently, you can specify only one account ID * in this parameter.

If you omit this parameter, only the policy in the * current account is returned.

*/ inline const Aws::Vector& GetAccountIdentifiers() const{ return m_accountIdentifiers; } /** *

If you are using an account that is set up as a monitoring account for * CloudWatch unified cross-account observability, you can use this to specify the * account ID of a source account. If you do, the operation returns the account * policy for the specified account. Currently, you can specify only one account ID * in this parameter.

If you omit this parameter, only the policy in the * current account is returned.

*/ inline bool AccountIdentifiersHasBeenSet() const { return m_accountIdentifiersHasBeenSet; } /** *

If you are using an account that is set up as a monitoring account for * CloudWatch unified cross-account observability, you can use this to specify the * account ID of a source account. If you do, the operation returns the account * policy for the specified account. Currently, you can specify only one account ID * in this parameter.

If you omit this parameter, only the policy in the * current account is returned.

*/ inline void SetAccountIdentifiers(const Aws::Vector& value) { m_accountIdentifiersHasBeenSet = true; m_accountIdentifiers = value; } /** *

If you are using an account that is set up as a monitoring account for * CloudWatch unified cross-account observability, you can use this to specify the * account ID of a source account. If you do, the operation returns the account * policy for the specified account. Currently, you can specify only one account ID * in this parameter.

If you omit this parameter, only the policy in the * current account is returned.

*/ inline void SetAccountIdentifiers(Aws::Vector&& value) { m_accountIdentifiersHasBeenSet = true; m_accountIdentifiers = std::move(value); } /** *

If you are using an account that is set up as a monitoring account for * CloudWatch unified cross-account observability, you can use this to specify the * account ID of a source account. If you do, the operation returns the account * policy for the specified account. Currently, you can specify only one account ID * in this parameter.

If you omit this parameter, only the policy in the * current account is returned.

*/ inline DescribeAccountPoliciesRequest& WithAccountIdentifiers(const Aws::Vector& value) { SetAccountIdentifiers(value); return *this;} /** *

If you are using an account that is set up as a monitoring account for * CloudWatch unified cross-account observability, you can use this to specify the * account ID of a source account. If you do, the operation returns the account * policy for the specified account. Currently, you can specify only one account ID * in this parameter.

If you omit this parameter, only the policy in the * current account is returned.

*/ inline DescribeAccountPoliciesRequest& WithAccountIdentifiers(Aws::Vector&& value) { SetAccountIdentifiers(std::move(value)); return *this;} /** *

If you are using an account that is set up as a monitoring account for * CloudWatch unified cross-account observability, you can use this to specify the * account ID of a source account. If you do, the operation returns the account * policy for the specified account. Currently, you can specify only one account ID * in this parameter.

If you omit this parameter, only the policy in the * current account is returned.

*/ inline DescribeAccountPoliciesRequest& AddAccountIdentifiers(const Aws::String& value) { m_accountIdentifiersHasBeenSet = true; m_accountIdentifiers.push_back(value); return *this; } /** *

If you are using an account that is set up as a monitoring account for * CloudWatch unified cross-account observability, you can use this to specify the * account ID of a source account. If you do, the operation returns the account * policy for the specified account. Currently, you can specify only one account ID * in this parameter.

If you omit this parameter, only the policy in the * current account is returned.

*/ inline DescribeAccountPoliciesRequest& AddAccountIdentifiers(Aws::String&& value) { m_accountIdentifiersHasBeenSet = true; m_accountIdentifiers.push_back(std::move(value)); return *this; } /** *

If you are using an account that is set up as a monitoring account for * CloudWatch unified cross-account observability, you can use this to specify the * account ID of a source account. If you do, the operation returns the account * policy for the specified account. Currently, you can specify only one account ID * in this parameter.

If you omit this parameter, only the policy in the * current account is returned.

*/ inline DescribeAccountPoliciesRequest& AddAccountIdentifiers(const char* value) { m_accountIdentifiersHasBeenSet = true; m_accountIdentifiers.push_back(value); return *this; } private: PolicyType m_policyType; bool m_policyTypeHasBeenSet = false; Aws::String m_policyName; bool m_policyNameHasBeenSet = false; Aws::Vector m_accountIdentifiers; bool m_accountIdentifiersHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws