AWS SDK for C++

AWS SDK for C++ Version 1.11.686

Loading...
Searching...
No Matches
SearchSampleQueriesSearchResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CloudTrail {
20namespace Model {
21
29 public:
30 AWS_CLOUDTRAIL_API SearchSampleQueriesSearchResult() = default;
33 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetSQL() const { return m_sQL; }
76 inline bool SQLHasBeenSet() const { return m_sQLHasBeenSet; }
77 template <typename SQLT = Aws::String>
78 void SetSQL(SQLT&& value) {
79 m_sQLHasBeenSet = true;
80 m_sQL = std::forward<SQLT>(value);
81 }
82 template <typename SQLT = Aws::String>
84 SetSQL(std::forward<SQLT>(value));
85 return *this;
86 }
88
90
94 inline double GetRelevance() const { return m_relevance; }
95 inline bool RelevanceHasBeenSet() const { return m_relevanceHasBeenSet; }
96 inline void SetRelevance(double value) {
97 m_relevanceHasBeenSet = true;
98 m_relevance = value;
99 }
101 SetRelevance(value);
102 return *this;
103 }
105 private:
106 Aws::String m_name;
107 bool m_nameHasBeenSet = false;
108
109 Aws::String m_description;
110 bool m_descriptionHasBeenSet = false;
111
112 Aws::String m_sQL;
113 bool m_sQLHasBeenSet = false;
114
115 double m_relevance{0.0};
116 bool m_relevanceHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace CloudTrail
121} // namespace Aws
SearchSampleQueriesSearchResult & WithDescription(DescriptionT &&value)
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDTRAIL_API SearchSampleQueriesSearchResult()=default
SearchSampleQueriesSearchResult & WithRelevance(double value)
SearchSampleQueriesSearchResult & WithName(NameT &&value)
AWS_CLOUDTRAIL_API SearchSampleQueriesSearchResult & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDTRAIL_API SearchSampleQueriesSearchResult(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue