AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
StringSearch.h
1
6#pragma once
7#include <aws/billing/Billing_EXPORTS.h>
8#include <aws/billing/model/SearchOption.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Billing {
21namespace Model {
22
30 public:
31 AWS_BILLING_API StringSearch() = default;
32 AWS_BILLING_API StringSearch(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline SearchOption GetSearchOption() const { return m_searchOption; }
42 inline bool SearchOptionHasBeenSet() const { return m_searchOptionHasBeenSet; }
43 inline void SetSearchOption(SearchOption value) {
44 m_searchOptionHasBeenSet = true;
45 m_searchOption = value;
46 }
48 SetSearchOption(value);
49 return *this;
50 }
52
54
58 inline const Aws::String& GetSearchValue() const { return m_searchValue; }
59 inline bool SearchValueHasBeenSet() const { return m_searchValueHasBeenSet; }
60 template <typename SearchValueT = Aws::String>
61 void SetSearchValue(SearchValueT&& value) {
62 m_searchValueHasBeenSet = true;
63 m_searchValue = std::forward<SearchValueT>(value);
64 }
65 template <typename SearchValueT = Aws::String>
66 StringSearch& WithSearchValue(SearchValueT&& value) {
67 SetSearchValue(std::forward<SearchValueT>(value));
68 return *this;
69 }
71 private:
72 SearchOption m_searchOption{SearchOption::NOT_SET};
73
74 Aws::String m_searchValue;
75 bool m_searchOptionHasBeenSet = false;
76 bool m_searchValueHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Billing
81} // namespace Aws
void SetSearchOption(SearchOption value)
StringSearch & WithSearchOption(SearchOption value)
AWS_BILLING_API StringSearch & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSearchValue() const
AWS_BILLING_API StringSearch()=default
AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const
StringSearch & WithSearchValue(SearchValueT &&value)
SearchOption GetSearchOption() const
AWS_BILLING_API StringSearch(Aws::Utils::Json::JsonView jsonValue)
void SetSearchValue(SearchValueT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue