AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetResourcePoliciesRequest.h
1
6#pragma once
7#include <aws/ram/RAM_EXPORTS.h>
8#include <aws/ram/RAMRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace RAM
16{
17namespace Model
18{
19
23 {
24 public:
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 "GetResourcePolicies"; }
32
33 AWS_RAM_API Aws::String SerializePayload() const override;
34
35
37
43 inline const Aws::Vector<Aws::String>& GetResourceArns() const{ return m_resourceArns; }
44 inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; }
45 inline void SetResourceArns(const Aws::Vector<Aws::String>& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = value; }
46 inline void SetResourceArns(Aws::Vector<Aws::String>&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = std::move(value); }
48 inline GetResourcePoliciesRequest& WithResourceArns(Aws::Vector<Aws::String>&& value) { SetResourceArns(std::move(value)); return *this;}
49 inline GetResourcePoliciesRequest& AddResourceArns(const Aws::String& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
50 inline GetResourcePoliciesRequest& AddResourceArns(Aws::String&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(std::move(value)); return *this; }
51 inline GetResourcePoliciesRequest& AddResourceArns(const char* value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
53
55
58 inline const Aws::String& GetPrincipal() const{ return m_principal; }
59 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
60 inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
61 inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
62 inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
63 inline GetResourcePoliciesRequest& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
64 inline GetResourcePoliciesRequest& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
65 inline GetResourcePoliciesRequest& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
67
69
76 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
77 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
78 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
79 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
80 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
81 inline GetResourcePoliciesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
82 inline GetResourcePoliciesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
83 inline GetResourcePoliciesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
85
87
98 inline int GetMaxResults() const{ return m_maxResults; }
99 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
100 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
101 inline GetResourcePoliciesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
103 private:
104
105 Aws::Vector<Aws::String> m_resourceArns;
106 bool m_resourceArnsHasBeenSet = false;
107
108 Aws::String m_principal;
109 bool m_principalHasBeenSet = false;
110
111 Aws::String m_nextToken;
112 bool m_nextTokenHasBeenSet = false;
113
114 int m_maxResults;
115 bool m_maxResultsHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace RAM
120} // namespace Aws
GetResourcePoliciesRequest & AddResourceArns(const char *value)
void SetResourceArns(const Aws::Vector< Aws::String > &value)
GetResourcePoliciesRequest & AddResourceArns(const Aws::String &value)
GetResourcePoliciesRequest & WithNextToken(const char *value)
virtual const char * GetServiceRequestName() const override
GetResourcePoliciesRequest & WithMaxResults(int value)
GetResourcePoliciesRequest & WithResourceArns(const Aws::Vector< Aws::String > &value)
void SetResourceArns(Aws::Vector< Aws::String > &&value)
GetResourcePoliciesRequest & WithResourceArns(Aws::Vector< Aws::String > &&value)
GetResourcePoliciesRequest & WithPrincipal(const char *value)
GetResourcePoliciesRequest & WithPrincipal(const Aws::String &value)
AWS_RAM_API Aws::String SerializePayload() const override
GetResourcePoliciesRequest & WithPrincipal(Aws::String &&value)
GetResourcePoliciesRequest & WithNextToken(Aws::String &&value)
GetResourcePoliciesRequest & WithNextToken(const Aws::String &value)
const Aws::Vector< Aws::String > & GetResourceArns() const
GetResourcePoliciesRequest & AddResourceArns(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector