AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
GetMembersRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/detective/DetectiveRequest.h>
10#include <aws/detective/Detective_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Detective {
16namespace Model {
17
21 public:
22 AWS_DETECTIVE_API GetMembersRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GetMembers"; }
29
30 AWS_DETECTIVE_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetGraphArn() const { return m_graphArn; }
37 inline bool GraphArnHasBeenSet() const { return m_graphArnHasBeenSet; }
38 template <typename GraphArnT = Aws::String>
39 void SetGraphArn(GraphArnT&& value) {
40 m_graphArnHasBeenSet = true;
41 m_graphArn = std::forward<GraphArnT>(value);
42 }
43 template <typename GraphArnT = Aws::String>
44 GetMembersRequest& WithGraphArn(GraphArnT&& value) {
45 SetGraphArn(std::forward<GraphArnT>(value));
46 return *this;
47 }
49
51
57 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
58 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
59 template <typename AccountIdsT = Aws::Vector<Aws::String>>
60 void SetAccountIds(AccountIdsT&& value) {
61 m_accountIdsHasBeenSet = true;
62 m_accountIds = std::forward<AccountIdsT>(value);
63 }
64 template <typename AccountIdsT = Aws::Vector<Aws::String>>
65 GetMembersRequest& WithAccountIds(AccountIdsT&& value) {
66 SetAccountIds(std::forward<AccountIdsT>(value));
67 return *this;
68 }
69 template <typename AccountIdsT = Aws::String>
70 GetMembersRequest& AddAccountIds(AccountIdsT&& value) {
71 m_accountIdsHasBeenSet = true;
72 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_graphArn;
78
79 Aws::Vector<Aws::String> m_accountIds;
80 bool m_graphArnHasBeenSet = false;
81 bool m_accountIdsHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace Detective
86} // namespace Aws
GetMembersRequest & WithGraphArn(GraphArnT &&value)
const Aws::Vector< Aws::String > & GetAccountIds() const
GetMembersRequest & WithAccountIds(AccountIdsT &&value)
GetMembersRequest & AddAccountIds(AccountIdsT &&value)
const Aws::String & GetGraphArn() const
AWS_DETECTIVE_API GetMembersRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_DETECTIVE_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector