AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PutResourceSetRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/fms/FMSRequest.h>
9#include <aws/fms/FMS_EXPORTS.h>
10#include <aws/fms/model/ResourceSet.h>
11#include <aws/fms/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace FMS {
17namespace Model {
18
22 public:
23 AWS_FMS_API PutResourceSetRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "PutResourceSet"; }
30
31 AWS_FMS_API Aws::String SerializePayload() const override;
32
34
36
39 inline const ResourceSet& GetResourceSet() const { return m_resourceSet; }
40 inline bool ResourceSetHasBeenSet() const { return m_resourceSetHasBeenSet; }
41 template <typename ResourceSetT = ResourceSet>
42 void SetResourceSet(ResourceSetT&& value) {
43 m_resourceSetHasBeenSet = true;
44 m_resourceSet = std::forward<ResourceSetT>(value);
45 }
46 template <typename ResourceSetT = ResourceSet>
47 PutResourceSetRequest& WithResourceSet(ResourceSetT&& value) {
48 SetResourceSet(std::forward<ResourceSetT>(value));
49 return *this;
50 }
52
54
61 inline const Aws::Vector<Tag>& GetTagList() const { return m_tagList; }
62 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
63 template <typename TagListT = Aws::Vector<Tag>>
64 void SetTagList(TagListT&& value) {
65 m_tagListHasBeenSet = true;
66 m_tagList = std::forward<TagListT>(value);
67 }
68 template <typename TagListT = Aws::Vector<Tag>>
70 SetTagList(std::forward<TagListT>(value));
71 return *this;
72 }
73 template <typename TagListT = Tag>
74 PutResourceSetRequest& AddTagList(TagListT&& value) {
75 m_tagListHasBeenSet = true;
76 m_tagList.emplace_back(std::forward<TagListT>(value));
77 return *this;
78 }
80 private:
81 ResourceSet m_resourceSet;
82
83 Aws::Vector<Tag> m_tagList;
84 bool m_resourceSetHasBeenSet = false;
85 bool m_tagListHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace FMS
90} // namespace Aws
PutResourceSetRequest & WithResourceSet(ResourceSetT &&value)
AWS_FMS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
PutResourceSetRequest & WithTagList(TagListT &&value)
AWS_FMS_API PutResourceSetRequest()=default
const Aws::Vector< Tag > & GetTagList() const
AWS_FMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutResourceSetRequest & AddTagList(TagListT &&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