AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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