AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeAccountPoliciesRequest.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/logs/model/PolicyType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CloudWatchLogs
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CLOUDWATCHLOGS_API DescribeAccountPoliciesRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DescribeAccountPolicies"; }
33
34 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
35
36 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
44 inline const PolicyType& GetPolicyType() const{ return m_policyType; }
45 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
46 inline void SetPolicyType(const PolicyType& value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
47 inline void SetPolicyType(PolicyType&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); }
48 inline DescribeAccountPoliciesRequest& WithPolicyType(const PolicyType& value) { SetPolicyType(value); return *this;}
49 inline DescribeAccountPoliciesRequest& WithPolicyType(PolicyType&& value) { SetPolicyType(std::move(value)); return *this;}
51
53
57 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
58 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
59 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
60 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
61 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
62 inline DescribeAccountPoliciesRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
63 inline DescribeAccountPoliciesRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
64 inline DescribeAccountPoliciesRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
66
68
76 inline const Aws::Vector<Aws::String>& GetAccountIdentifiers() const{ return m_accountIdentifiers; }
77 inline bool AccountIdentifiersHasBeenSet() const { return m_accountIdentifiersHasBeenSet; }
78 inline void SetAccountIdentifiers(const Aws::Vector<Aws::String>& value) { m_accountIdentifiersHasBeenSet = true; m_accountIdentifiers = value; }
79 inline void SetAccountIdentifiers(Aws::Vector<Aws::String>&& value) { m_accountIdentifiersHasBeenSet = true; m_accountIdentifiers = std::move(value); }
82 inline DescribeAccountPoliciesRequest& AddAccountIdentifiers(const Aws::String& value) { m_accountIdentifiersHasBeenSet = true; m_accountIdentifiers.push_back(value); return *this; }
83 inline DescribeAccountPoliciesRequest& AddAccountIdentifiers(Aws::String&& value) { m_accountIdentifiersHasBeenSet = true; m_accountIdentifiers.push_back(std::move(value)); return *this; }
84 inline DescribeAccountPoliciesRequest& AddAccountIdentifiers(const char* value) { m_accountIdentifiersHasBeenSet = true; m_accountIdentifiers.push_back(value); return *this; }
86 private:
87
88 PolicyType m_policyType;
89 bool m_policyTypeHasBeenSet = false;
90
91 Aws::String m_policyName;
92 bool m_policyNameHasBeenSet = false;
93
94 Aws::Vector<Aws::String> m_accountIdentifiers;
95 bool m_accountIdentifiersHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace CloudWatchLogs
100} // namespace Aws
DescribeAccountPoliciesRequest & AddAccountIdentifiers(const char *value)
DescribeAccountPoliciesRequest & WithAccountIdentifiers(Aws::Vector< Aws::String > &&value)
DescribeAccountPoliciesRequest & WithPolicyName(const char *value)
void SetAccountIdentifiers(const Aws::Vector< Aws::String > &value)
DescribeAccountPoliciesRequest & WithPolicyName(Aws::String &&value)
DescribeAccountPoliciesRequest & AddAccountIdentifiers(const Aws::String &value)
DescribeAccountPoliciesRequest & WithPolicyType(const PolicyType &value)
DescribeAccountPoliciesRequest & WithPolicyName(const Aws::String &value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeAccountPoliciesRequest & WithAccountIdentifiers(const Aws::Vector< Aws::String > &value)
DescribeAccountPoliciesRequest & AddAccountIdentifiers(Aws::String &&value)
DescribeAccountPoliciesRequest & WithPolicyType(PolicyType &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector