AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
RetentionOptions.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/es/model/RetentionAction.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ElasticsearchService {
20namespace Model {
21
30 public:
31 AWS_ELASTICSEARCHSERVICE_API RetentionOptions() = default;
32 AWS_ELASTICSEARCHSERVICE_API RetentionOptions(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ELASTICSEARCHSERVICE_API RetentionOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
43 inline int GetRetentionInHours() const { return m_retentionInHours; }
44 inline bool RetentionInHoursHasBeenSet() const { return m_retentionInHoursHasBeenSet; }
45 inline void SetRetentionInHours(int value) {
46 m_retentionInHoursHasBeenSet = true;
47 m_retentionInHours = value;
48 }
51 return *this;
52 }
54
56
59 inline RetentionAction GetRetentionAction() const { return m_retentionAction; }
60 inline bool RetentionActionHasBeenSet() const { return m_retentionActionHasBeenSet; }
62 m_retentionActionHasBeenSet = true;
63 m_retentionAction = value;
64 }
66 SetRetentionAction(value);
67 return *this;
68 }
70 private:
71 int m_retentionInHours{0};
72
74 bool m_retentionInHoursHasBeenSet = false;
75 bool m_retentionActionHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace ElasticsearchService
80} // namespace Aws
RetentionOptions & WithRetentionAction(RetentionAction value)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ELASTICSEARCHSERVICE_API RetentionOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_API RetentionOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_API RetentionOptions()=default
Aws::Utils::Json::JsonValue JsonValue