AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
PutStoredQueryRequest.h
1
6#pragma once
7#include <aws/config/ConfigServiceRequest.h>
8#include <aws/config/ConfigService_EXPORTS.h>
9#include <aws/config/model/StoredQuery.h>
10#include <aws/config/model/Tag.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ConfigService {
17namespace Model {
18
22 public:
23 AWS_CONFIGSERVICE_API PutStoredQueryRequest() = 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 "PutStoredQuery"; }
30
31 AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override;
32
33 AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
43 inline const StoredQuery& GetStoredQuery() const { return m_storedQuery; }
44 inline bool StoredQueryHasBeenSet() const { return m_storedQueryHasBeenSet; }
45 template <typename StoredQueryT = StoredQuery>
46 void SetStoredQuery(StoredQueryT&& value) {
47 m_storedQueryHasBeenSet = true;
48 m_storedQuery = std::forward<StoredQueryT>(value);
49 }
50 template <typename StoredQueryT = StoredQuery>
51 PutStoredQueryRequest& WithStoredQuery(StoredQueryT&& value) {
52 SetStoredQuery(std::forward<StoredQueryT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
62 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
63 template <typename TagsT = Aws::Vector<Tag>>
64 void SetTags(TagsT&& value) {
65 m_tagsHasBeenSet = true;
66 m_tags = std::forward<TagsT>(value);
67 }
68 template <typename TagsT = Aws::Vector<Tag>>
70 SetTags(std::forward<TagsT>(value));
71 return *this;
72 }
73 template <typename TagsT = Tag>
75 m_tagsHasBeenSet = true;
76 m_tags.emplace_back(std::forward<TagsT>(value));
77 return *this;
78 }
80 private:
81 StoredQuery m_storedQuery;
82
83 Aws::Vector<Tag> m_tags;
84 bool m_storedQueryHasBeenSet = false;
85 bool m_tagsHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace ConfigService
90} // namespace Aws
AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override
PutStoredQueryRequest & WithTags(TagsT &&value)
PutStoredQueryRequest & WithStoredQuery(StoredQueryT &&value)
PutStoredQueryRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CONFIGSERVICE_API PutStoredQueryRequest()=default
AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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