AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudTrail
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CLOUDTRAIL_API SearchSampleQueriesSearchResult() = default;
38 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 SearchSampleQueriesSearchResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
61 template<typename DescriptionT = Aws::String>
62 SearchSampleQueriesSearchResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
64
66
69 inline const Aws::String& GetSQL() const { return m_sQL; }
70 inline bool SQLHasBeenSet() const { return m_sQLHasBeenSet; }
71 template<typename SQLT = Aws::String>
72 void SetSQL(SQLT&& value) { m_sQLHasBeenSet = true; m_sQL = std::forward<SQLT>(value); }
73 template<typename SQLT = Aws::String>
74 SearchSampleQueriesSearchResult& WithSQL(SQLT&& value) { SetSQL(std::forward<SQLT>(value)); return *this;}
76
78
82 inline double GetRelevance() const { return m_relevance; }
83 inline bool RelevanceHasBeenSet() const { return m_relevanceHasBeenSet; }
84 inline void SetRelevance(double value) { m_relevanceHasBeenSet = true; m_relevance = value; }
85 inline SearchSampleQueriesSearchResult& WithRelevance(double value) { SetRelevance(value); return *this;}
87 private:
88
89 Aws::String m_name;
90 bool m_nameHasBeenSet = false;
91
92 Aws::String m_description;
93 bool m_descriptionHasBeenSet = false;
94
95 Aws::String m_sQL;
96 bool m_sQLHasBeenSet = false;
97
98 double m_relevance{0.0};
99 bool m_relevanceHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace CloudTrail
104} // 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