AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListDiscoveredResourcesRequest.h
1
6#pragma once
7#include <aws/fms/FMS_EXPORTS.h>
8#include <aws/fms/FMSRequest.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 FMS
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_FMS_API ListDiscoveredResourcesRequest() = 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 "ListDiscoveredResources"; }
32
33 AWS_FMS_API Aws::String SerializePayload() const override;
34
36
37
39
44 inline const Aws::Vector<Aws::String>& GetMemberAccountIds() const { return m_memberAccountIds; }
45 inline bool MemberAccountIdsHasBeenSet() const { return m_memberAccountIdsHasBeenSet; }
46 template<typename MemberAccountIdsT = Aws::Vector<Aws::String>>
47 void SetMemberAccountIds(MemberAccountIdsT&& value) { m_memberAccountIdsHasBeenSet = true; m_memberAccountIds = std::forward<MemberAccountIdsT>(value); }
48 template<typename MemberAccountIdsT = Aws::Vector<Aws::String>>
49 ListDiscoveredResourcesRequest& WithMemberAccountIds(MemberAccountIdsT&& value) { SetMemberAccountIds(std::forward<MemberAccountIdsT>(value)); return *this;}
50 template<typename MemberAccountIdsT = Aws::String>
51 ListDiscoveredResourcesRequest& AddMemberAccountIds(MemberAccountIdsT&& value) { m_memberAccountIdsHasBeenSet = true; m_memberAccountIds.emplace_back(std::forward<MemberAccountIdsT>(value)); return *this; }
53
55
58 inline const Aws::String& GetResourceType() const { return m_resourceType; }
59 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
60 template<typename ResourceTypeT = Aws::String>
61 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
62 template<typename ResourceTypeT = Aws::String>
63 ListDiscoveredResourcesRequest& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
65
67
73 inline int GetMaxResults() const { return m_maxResults; }
74 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
75 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
76 inline ListDiscoveredResourcesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
78
80
87 inline const Aws::String& GetNextToken() const { return m_nextToken; }
88 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
89 template<typename NextTokenT = Aws::String>
90 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
91 template<typename NextTokenT = Aws::String>
92 ListDiscoveredResourcesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
94 private:
95
96 Aws::Vector<Aws::String> m_memberAccountIds;
97 bool m_memberAccountIdsHasBeenSet = false;
98
99 Aws::String m_resourceType;
100 bool m_resourceTypeHasBeenSet = false;
101
102 int m_maxResults{0};
103 bool m_maxResultsHasBeenSet = false;
104
105 Aws::String m_nextToken;
106 bool m_nextTokenHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace FMS
111} // namespace Aws
virtual const char * GetServiceRequestName() const override
ListDiscoveredResourcesRequest & WithNextToken(NextTokenT &&value)
ListDiscoveredResourcesRequest & WithResourceType(ResourceTypeT &&value)
AWS_FMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListDiscoveredResourcesRequest & WithMemberAccountIds(MemberAccountIdsT &&value)
ListDiscoveredResourcesRequest & WithMaxResults(int value)
const Aws::Vector< Aws::String > & GetMemberAccountIds() const
AWS_FMS_API Aws::String SerializePayload() const override
ListDiscoveredResourcesRequest & AddMemberAccountIds(MemberAccountIdsT &&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