AWS SDK for C++  1.9.97
AWS SDK for C++
LogPublishingOptionsStatus.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/es/model/LogType.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace ElasticsearchService
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
47  inline const Aws::Map<LogType, LogPublishingOption>& GetOptions() const{ return m_options; }
48 
52  inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
53 
57  inline void SetOptions(const Aws::Map<LogType, LogPublishingOption>& value) { m_optionsHasBeenSet = true; m_options = value; }
58 
62  inline void SetOptions(Aws::Map<LogType, LogPublishingOption>&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
63 
67  inline LogPublishingOptionsStatus& WithOptions(const Aws::Map<LogType, LogPublishingOption>& value) { SetOptions(value); return *this;}
68 
72  inline LogPublishingOptionsStatus& WithOptions(Aws::Map<LogType, LogPublishingOption>&& value) { SetOptions(std::move(value)); return *this;}
73 
77  inline LogPublishingOptionsStatus& AddOptions(const LogType& key, const LogPublishingOption& value) { m_optionsHasBeenSet = true; m_options.emplace(key, value); return *this; }
78 
82  inline LogPublishingOptionsStatus& AddOptions(LogType&& key, const LogPublishingOption& value) { m_optionsHasBeenSet = true; m_options.emplace(std::move(key), value); return *this; }
83 
87  inline LogPublishingOptionsStatus& AddOptions(const LogType& key, LogPublishingOption&& value) { m_optionsHasBeenSet = true; m_options.emplace(key, std::move(value)); return *this; }
88 
92  inline LogPublishingOptionsStatus& AddOptions(LogType&& key, LogPublishingOption&& value) { m_optionsHasBeenSet = true; m_options.emplace(std::move(key), std::move(value)); return *this; }
93 
94 
99  inline const OptionStatus& GetStatus() const{ return m_status; }
100 
105  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
106 
111  inline void SetStatus(const OptionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
112 
117  inline void SetStatus(OptionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
118 
123  inline LogPublishingOptionsStatus& WithStatus(const OptionStatus& value) { SetStatus(value); return *this;}
124 
129  inline LogPublishingOptionsStatus& WithStatus(OptionStatus&& value) { SetStatus(std::move(value)); return *this;}
130 
131  private:
132 
134  bool m_optionsHasBeenSet;
135 
136  OptionStatus m_status;
137  bool m_statusHasBeenSet;
138  };
139 
140 } // namespace Model
141 } // namespace ElasticsearchService
142 } // namespace Aws
Aws::ElasticsearchService::Model::LogPublishingOptionsStatus
Definition: LogPublishingOptionsStatus.h:36
Aws::ElasticsearchService::Model::LogPublishingOptionsStatus::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: LogPublishingOptionsStatus.h:105
Aws::ElasticsearchService::Model::LogPublishingOptionsStatus::SetStatus
void SetStatus(OptionStatus &&value)
Definition: LogPublishingOptionsStatus.h:117
Aws::ElasticsearchService::Model::LogPublishingOptionsStatus::AddOptions
LogPublishingOptionsStatus & AddOptions(const LogType &key, LogPublishingOption &&value)
Definition: LogPublishingOptionsStatus.h:87
Aws::ElasticsearchService::Model::LogPublishingOptionsStatus::WithStatus
LogPublishingOptionsStatus & WithStatus(const OptionStatus &value)
Definition: LogPublishingOptionsStatus.h:123
OptionStatus.h
Aws::ElasticsearchService::Model::LogPublishingOptionsStatus::WithStatus
LogPublishingOptionsStatus & WithStatus(OptionStatus &&value)
Definition: LogPublishingOptionsStatus.h:129
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::LogType
LogType
Definition: LogType.h:17
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::OptionStatus
Definition: OptionStatus.h:33
Aws::ElasticsearchService::Model::LogPublishingOptionsStatus::SetStatus
void SetStatus(const OptionStatus &value)
Definition: LogPublishingOptionsStatus.h:111
Aws::ElasticsearchService::Model::LogPublishingOptionsStatus::GetOptions
const Aws::Map< LogType, LogPublishingOption > & GetOptions() const
Definition: LogPublishingOptionsStatus.h:47
Aws::ElasticsearchService::Model::LogPublishingOptionsStatus::OptionsHasBeenSet
bool OptionsHasBeenSet() const
Definition: LogPublishingOptionsStatus.h:52
Aws::ElasticsearchService::Model::LogPublishingOptionsStatus::LogPublishingOptionsStatus
LogPublishingOptionsStatus(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::LogPublishingOptionsStatus::WithOptions
LogPublishingOptionsStatus & WithOptions(Aws::Map< LogType, LogPublishingOption > &&value)
Definition: LogPublishingOptionsStatus.h:72
Aws::ElasticsearchService::Model::LogPublishingOptionsStatus::AddOptions
LogPublishingOptionsStatus & AddOptions(LogType &&key, LogPublishingOption &&value)
Definition: LogPublishingOptionsStatus.h:92
LogType.h
Aws::ElasticsearchService::Model::LogPublishingOptionsStatus::WithOptions
LogPublishingOptionsStatus & WithOptions(const Aws::Map< LogType, LogPublishingOption > &value)
Definition: LogPublishingOptionsStatus.h:67
Aws::ElasticsearchService::Model::LogPublishingOptionsStatus::AddOptions
LogPublishingOptionsStatus & AddOptions(LogType &&key, const LogPublishingOption &value)
Definition: LogPublishingOptionsStatus.h:82
Aws::ElasticsearchService::Model::LogPublishingOptionsStatus::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticsearchService::Model::LogPublishingOptionsStatus::operator=
LogPublishingOptionsStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::LogPublishingOptionsStatus::LogPublishingOptionsStatus
LogPublishingOptionsStatus()
LogPublishingOption.h
Aws::ElasticsearchService::Model::LogPublishingOptionsStatus::AddOptions
LogPublishingOptionsStatus & AddOptions(const LogType &key, const LogPublishingOption &value)
Definition: LogPublishingOptionsStatus.h:77
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::LogPublishingOption
Definition: LogPublishingOption.h:35
Aws::ElasticsearchService::Model::LogPublishingOptionsStatus::GetStatus
const OptionStatus & GetStatus() const
Definition: LogPublishingOptionsStatus.h:99
Aws::ElasticsearchService::Model::LogPublishingOptionsStatus::SetOptions
void SetOptions(Aws::Map< LogType, LogPublishingOption > &&value)
Definition: LogPublishingOptionsStatus.h:62
AWSMap.h
Aws::ElasticsearchService::Model::LogPublishingOptionsStatus::SetOptions
void SetOptions(const Aws::Map< LogType, LogPublishingOption > &value)
Definition: LogPublishingOptionsStatus.h:57
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19