AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
ServiceOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/opensearch/OpenSearchService_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace OpenSearchService {
21namespace Model {
22
30 public:
31 AWS_OPENSEARCHSERVICE_API ServiceOptions() = default;
32 AWS_OPENSEARCHSERVICE_API ServiceOptions(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVICE_API ServiceOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<Aws::String>& GetSupportedRegions() const { return m_supportedRegions; }
41 inline bool SupportedRegionsHasBeenSet() const { return m_supportedRegionsHasBeenSet; }
42 template <typename SupportedRegionsT = Aws::Vector<Aws::String>>
43 void SetSupportedRegions(SupportedRegionsT&& value) {
44 m_supportedRegionsHasBeenSet = true;
45 m_supportedRegions = std::forward<SupportedRegionsT>(value);
46 }
47 template <typename SupportedRegionsT = Aws::Vector<Aws::String>>
48 ServiceOptions& WithSupportedRegions(SupportedRegionsT&& value) {
49 SetSupportedRegions(std::forward<SupportedRegionsT>(value));
50 return *this;
51 }
52 template <typename SupportedRegionsT = Aws::String>
53 ServiceOptions& AddSupportedRegions(SupportedRegionsT&& value) {
54 m_supportedRegionsHasBeenSet = true;
55 m_supportedRegions.emplace_back(std::forward<SupportedRegionsT>(value));
56 return *this;
57 }
59 private:
60 Aws::Vector<Aws::String> m_supportedRegions;
61 bool m_supportedRegionsHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace OpenSearchService
66} // namespace Aws
AWS_OPENSEARCHSERVICE_API ServiceOptions()=default
void SetSupportedRegions(SupportedRegionsT &&value)
ServiceOptions & WithSupportedRegions(SupportedRegionsT &&value)
AWS_OPENSEARCHSERVICE_API ServiceOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetSupportedRegions() const
ServiceOptions & AddSupportedRegions(SupportedRegionsT &&value)
AWS_OPENSEARCHSERVICE_API ServiceOptions(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue