AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DescribeResourcePoliciesRequest.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/logs/model/PolicyScope.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CloudWatchLogs
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CLOUDWATCHLOGS_API DescribeResourcePoliciesRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "DescribeResourcePolicies"; }
32
33 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
34
35 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
40 inline const Aws::String& GetNextToken() const { return m_nextToken; }
41 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
42 template<typename NextTokenT = Aws::String>
43 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
44 template<typename NextTokenT = Aws::String>
45 DescribeResourcePoliciesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
47
49
53 inline int GetLimit() const { return m_limit; }
54 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
55 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
56 inline DescribeResourcePoliciesRequest& WithLimit(int value) { SetLimit(value); return *this;}
58
60
64 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
65 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
66 template<typename ResourceArnT = Aws::String>
67 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
68 template<typename ResourceArnT = Aws::String>
69 DescribeResourcePoliciesRequest& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
71
73
78 inline PolicyScope GetPolicyScope() const { return m_policyScope; }
79 inline bool PolicyScopeHasBeenSet() const { return m_policyScopeHasBeenSet; }
80 inline void SetPolicyScope(PolicyScope value) { m_policyScopeHasBeenSet = true; m_policyScope = value; }
83 private:
84
85 Aws::String m_nextToken;
86 bool m_nextTokenHasBeenSet = false;
87
88 int m_limit{0};
89 bool m_limitHasBeenSet = false;
90
91 Aws::String m_resourceArn;
92 bool m_resourceArnHasBeenSet = false;
93
94 PolicyScope m_policyScope{PolicyScope::NOT_SET};
95 bool m_policyScopeHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace CloudWatchLogs
100} // namespace Aws
DescribeResourcePoliciesRequest & WithResourceArn(ResourceArnT &&value)
DescribeResourcePoliciesRequest & WithPolicyScope(PolicyScope value)
DescribeResourcePoliciesRequest & WithNextToken(NextTokenT &&value)
AWS_CLOUDWATCHLOGS_API DescribeResourcePoliciesRequest()=default
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String