AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeResourceGroupsResult.h
1
6#pragma once
7#include <aws/inspector/Inspector_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/inspector/model/ResourceGroup.h>
12#include <aws/inspector/model/FailedItemDetails.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace Inspector
28{
29namespace Model
30{
32 {
33 public:
34 AWS_INSPECTOR_API DescribeResourceGroupsResult();
37
38
40
43 inline const Aws::Vector<ResourceGroup>& GetResourceGroups() const{ return m_resourceGroups; }
44 inline void SetResourceGroups(const Aws::Vector<ResourceGroup>& value) { m_resourceGroups = value; }
45 inline void SetResourceGroups(Aws::Vector<ResourceGroup>&& value) { m_resourceGroups = std::move(value); }
48 inline DescribeResourceGroupsResult& AddResourceGroups(const ResourceGroup& value) { m_resourceGroups.push_back(value); return *this; }
49 inline DescribeResourceGroupsResult& AddResourceGroups(ResourceGroup&& value) { m_resourceGroups.push_back(std::move(value)); return *this; }
51
53
57 inline const Aws::Map<Aws::String, FailedItemDetails>& GetFailedItems() const{ return m_failedItems; }
58 inline void SetFailedItems(const Aws::Map<Aws::String, FailedItemDetails>& value) { m_failedItems = value; }
59 inline void SetFailedItems(Aws::Map<Aws::String, FailedItemDetails>&& value) { m_failedItems = std::move(value); }
62 inline DescribeResourceGroupsResult& AddFailedItems(const Aws::String& key, const FailedItemDetails& value) { m_failedItems.emplace(key, value); return *this; }
63 inline DescribeResourceGroupsResult& AddFailedItems(Aws::String&& key, const FailedItemDetails& value) { m_failedItems.emplace(std::move(key), value); return *this; }
64 inline DescribeResourceGroupsResult& AddFailedItems(const Aws::String& key, FailedItemDetails&& value) { m_failedItems.emplace(key, std::move(value)); return *this; }
65 inline DescribeResourceGroupsResult& AddFailedItems(Aws::String&& key, FailedItemDetails&& value) { m_failedItems.emplace(std::move(key), std::move(value)); return *this; }
66 inline DescribeResourceGroupsResult& AddFailedItems(const char* key, FailedItemDetails&& value) { m_failedItems.emplace(key, std::move(value)); return *this; }
67 inline DescribeResourceGroupsResult& AddFailedItems(const char* key, const FailedItemDetails& value) { m_failedItems.emplace(key, value); return *this; }
69
71
72 inline const Aws::String& GetRequestId() const{ return m_requestId; }
73 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
74 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
75 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
76 inline DescribeResourceGroupsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
77 inline DescribeResourceGroupsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
78 inline DescribeResourceGroupsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
80 private:
81
82 Aws::Vector<ResourceGroup> m_resourceGroups;
83
85
86 Aws::String m_requestId;
87 };
88
89} // namespace Model
90} // namespace Inspector
91} // namespace Aws
DescribeResourceGroupsResult & WithResourceGroups(const Aws::Vector< ResourceGroup > &value)
DescribeResourceGroupsResult & WithResourceGroups(Aws::Vector< ResourceGroup > &&value)
AWS_INSPECTOR_API DescribeResourceGroupsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeResourceGroupsResult & AddFailedItems(Aws::String &&key, const FailedItemDetails &value)
DescribeResourceGroupsResult & AddFailedItems(const Aws::String &key, FailedItemDetails &&value)
void SetResourceGroups(const Aws::Vector< ResourceGroup > &value)
DescribeResourceGroupsResult & WithRequestId(const Aws::String &value)
DescribeResourceGroupsResult & AddFailedItems(const char *key, FailedItemDetails &&value)
void SetFailedItems(const Aws::Map< Aws::String, FailedItemDetails > &value)
DescribeResourceGroupsResult & WithFailedItems(const Aws::Map< Aws::String, FailedItemDetails > &value)
DescribeResourceGroupsResult & WithRequestId(const char *value)
AWS_INSPECTOR_API DescribeResourceGroupsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeResourceGroupsResult & WithFailedItems(Aws::Map< Aws::String, FailedItemDetails > &&value)
void SetResourceGroups(Aws::Vector< ResourceGroup > &&value)
const Aws::Map< Aws::String, FailedItemDetails > & GetFailedItems() const
DescribeResourceGroupsResult & AddFailedItems(const Aws::String &key, const FailedItemDetails &value)
DescribeResourceGroupsResult & AddFailedItems(const char *key, const FailedItemDetails &value)
const Aws::Vector< ResourceGroup > & GetResourceGroups() const
DescribeResourceGroupsResult & WithRequestId(Aws::String &&value)
DescribeResourceGroupsResult & AddResourceGroups(const ResourceGroup &value)
DescribeResourceGroupsResult & AddFailedItems(Aws::String &&key, FailedItemDetails &&value)
void SetFailedItems(Aws::Map< Aws::String, FailedItemDetails > &&value)
DescribeResourceGroupsResult & AddResourceGroups(ResourceGroup &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue