AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutStoredQueryRequest.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/config/ConfigServiceRequest.h>
9#include <aws/config/model/StoredQuery.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/config/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ConfigService
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CONFIGSERVICE_API PutStoredQueryRequest();
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 "PutStoredQuery"; }
33
34 AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override;
35
36 AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
47 inline const StoredQuery& GetStoredQuery() const{ return m_storedQuery; }
48 inline bool StoredQueryHasBeenSet() const { return m_storedQueryHasBeenSet; }
49 inline void SetStoredQuery(const StoredQuery& value) { m_storedQueryHasBeenSet = true; m_storedQuery = value; }
50 inline void SetStoredQuery(StoredQuery&& value) { m_storedQueryHasBeenSet = true; m_storedQuery = std::move(value); }
51 inline PutStoredQueryRequest& WithStoredQuery(const StoredQuery& value) { SetStoredQuery(value); return *this;}
52 inline PutStoredQueryRequest& WithStoredQuery(StoredQuery&& value) { SetStoredQuery(std::move(value)); return *this;}
54
56
59 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
60 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
61 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
62 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
63 inline PutStoredQueryRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
64 inline PutStoredQueryRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
65 inline PutStoredQueryRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
66 inline PutStoredQueryRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
68 private:
69
70 StoredQuery m_storedQuery;
71 bool m_storedQueryHasBeenSet = false;
72
73 Aws::Vector<Tag> m_tags;
74 bool m_tagsHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace ConfigService
79} // namespace Aws
AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override
void SetTags(const Aws::Vector< Tag > &value)
PutStoredQueryRequest & WithStoredQuery(const StoredQuery &value)
PutStoredQueryRequest & WithTags(Aws::Vector< Tag > &&value)
PutStoredQueryRequest & WithStoredQuery(StoredQuery &&value)
virtual const char * GetServiceRequestName() const override
PutStoredQueryRequest & AddTags(const Tag &value)
AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutStoredQueryRequest & WithTags(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