AWS SDK for C++

AWS SDK for C++ Version 1.11.690

Loading...
Searching...
No Matches
UpdateNamedQueryRequest.h
1
6#pragma once
7#include <aws/athena/AthenaRequest.h>
8#include <aws/athena/Athena_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Athena {
15namespace Model {
16
20 public:
21 AWS_ATHENA_API UpdateNamedQueryRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "UpdateNamedQuery"; }
28
29 AWS_ATHENA_API Aws::String SerializePayload() const override;
30
32
34
37 inline const Aws::String& GetNamedQueryId() const { return m_namedQueryId; }
38 inline bool NamedQueryIdHasBeenSet() const { return m_namedQueryIdHasBeenSet; }
39 template <typename NamedQueryIdT = Aws::String>
40 void SetNamedQueryId(NamedQueryIdT&& value) {
41 m_namedQueryIdHasBeenSet = true;
42 m_namedQueryId = std::forward<NamedQueryIdT>(value);
43 }
44 template <typename NamedQueryIdT = Aws::String>
45 UpdateNamedQueryRequest& WithNamedQueryId(NamedQueryIdT&& value) {
46 SetNamedQueryId(std::forward<NamedQueryIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template <typename NameT = Aws::String>
58 void SetName(NameT&& value) {
59 m_nameHasBeenSet = true;
60 m_name = std::forward<NameT>(value);
61 }
62 template <typename NameT = Aws::String>
64 SetName(std::forward<NameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template <typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) {
77 m_descriptionHasBeenSet = true;
78 m_description = std::forward<DescriptionT>(value);
79 }
80 template <typename DescriptionT = Aws::String>
82 SetDescription(std::forward<DescriptionT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetQueryString() const { return m_queryString; }
92 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
93 template <typename QueryStringT = Aws::String>
94 void SetQueryString(QueryStringT&& value) {
95 m_queryStringHasBeenSet = true;
96 m_queryString = std::forward<QueryStringT>(value);
97 }
98 template <typename QueryStringT = Aws::String>
100 SetQueryString(std::forward<QueryStringT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_namedQueryId;
106 bool m_namedQueryIdHasBeenSet = false;
107
108 Aws::String m_name;
109 bool m_nameHasBeenSet = false;
110
111 Aws::String m_description;
112 bool m_descriptionHasBeenSet = false;
113
114 Aws::String m_queryString;
115 bool m_queryStringHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace Athena
120} // namespace Aws
virtual const char * GetServiceRequestName() const override
UpdateNamedQueryRequest & WithDescription(DescriptionT &&value)
UpdateNamedQueryRequest & WithQueryString(QueryStringT &&value)
AWS_ATHENA_API Aws::String SerializePayload() const override
UpdateNamedQueryRequest & WithName(NameT &&value)
UpdateNamedQueryRequest & WithNamedQueryId(NamedQueryIdT &&value)
AWS_ATHENA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ATHENA_API UpdateNamedQueryRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String