AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetResourceSet(const ResourceSet& value) { m_resourceSetHasBeenSet = true; m_resourceSet = value; }
46 inline void SetResourceSet(ResourceSet&& value) { m_resourceSetHasBeenSet = true; m_resourceSet = std::move(value); }
47 inline PutResourceSetRequest& WithResourceSet(const ResourceSet& value) { SetResourceSet(value); return *this;}
48 inline PutResourceSetRequest& WithResourceSet(ResourceSet&& value) { SetResourceSet(std::move(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 inline void SetTagList(const Aws::Vector<Tag>& value) { m_tagListHasBeenSet = true; m_tagList = value; }
62 inline void SetTagList(Aws::Vector<Tag>&& value) { m_tagListHasBeenSet = true; m_tagList = std::move(value); }
63 inline PutResourceSetRequest& WithTagList(const Aws::Vector<Tag>& value) { SetTagList(value); return *this;}
64 inline PutResourceSetRequest& WithTagList(Aws::Vector<Tag>&& value) { SetTagList(std::move(value)); return *this;}
65 inline PutResourceSetRequest& AddTagList(const Tag& value) { m_tagListHasBeenSet = true; m_tagList.push_back(value); return *this; }
66 inline PutResourceSetRequest& AddTagList(Tag&& value) { m_tagListHasBeenSet = true; m_tagList.push_back(std::move(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
AWS_FMS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
PutResourceSetRequest & AddTagList(const Tag &value)
PutResourceSetRequest & WithTagList(const Aws::Vector< Tag > &value)
void SetTagList(Aws::Vector< Tag > &&value)
PutResourceSetRequest & WithResourceSet(ResourceSet &&value)
PutResourceSetRequest & AddTagList(Tag &&value)
PutResourceSetRequest & WithResourceSet(const ResourceSet &value)
const Aws::Vector< Tag > & GetTagList() const
AWS_FMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetResourceSet(const ResourceSet &value)
PutResourceSetRequest & WithTagList(Aws::Vector< Tag > &&value)
void SetTagList(const Aws::Vector< Tag > &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