AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
BatchAssociateResourceRequest.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/fms/FMSRequest.h>
10#include <aws/fms/FMS_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace FMS {
16namespace Model {
17
21 public:
22 AWS_FMS_API BatchAssociateResourceRequest() = 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 "BatchAssociateResource"; }
29
30 AWS_FMS_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetResourceSetIdentifier() const { return m_resourceSetIdentifier; }
40 inline bool ResourceSetIdentifierHasBeenSet() const { return m_resourceSetIdentifierHasBeenSet; }
41 template <typename ResourceSetIdentifierT = Aws::String>
42 void SetResourceSetIdentifier(ResourceSetIdentifierT&& value) {
43 m_resourceSetIdentifierHasBeenSet = true;
44 m_resourceSetIdentifier = std::forward<ResourceSetIdentifierT>(value);
45 }
46 template <typename ResourceSetIdentifierT = Aws::String>
48 SetResourceSetIdentifier(std::forward<ResourceSetIdentifierT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::Vector<Aws::String>& GetItems() const { return m_items; }
60 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
61 template <typename ItemsT = Aws::Vector<Aws::String>>
62 void SetItems(ItemsT&& value) {
63 m_itemsHasBeenSet = true;
64 m_items = std::forward<ItemsT>(value);
65 }
66 template <typename ItemsT = Aws::Vector<Aws::String>>
68 SetItems(std::forward<ItemsT>(value));
69 return *this;
70 }
71 template <typename ItemsT = Aws::String>
73 m_itemsHasBeenSet = true;
74 m_items.emplace_back(std::forward<ItemsT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_resourceSetIdentifier;
80
82 bool m_resourceSetIdentifierHasBeenSet = false;
83 bool m_itemsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace FMS
88} // namespace Aws
BatchAssociateResourceRequest & WithResourceSetIdentifier(ResourceSetIdentifierT &&value)
void SetResourceSetIdentifier(ResourceSetIdentifierT &&value)
AWS_FMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
BatchAssociateResourceRequest & AddItems(ItemsT &&value)
AWS_FMS_API Aws::String SerializePayload() const override
BatchAssociateResourceRequest & WithItems(ItemsT &&value)
const Aws::Vector< Aws::String > & GetItems() const
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