AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
RetentionConfiguration.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ConfigService {
20namespace Model {
21
30 public:
31 AWS_CONFIGSERVICE_API RetentionConfiguration() = default;
32 AWS_CONFIGSERVICE_API RetentionConfiguration(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
59 inline int GetRetentionPeriodInDays() const { return m_retentionPeriodInDays; }
60 inline bool RetentionPeriodInDaysHasBeenSet() const { return m_retentionPeriodInDaysHasBeenSet; }
61 inline void SetRetentionPeriodInDays(int value) {
62 m_retentionPeriodInDaysHasBeenSet = true;
63 m_retentionPeriodInDays = value;
64 }
67 return *this;
68 }
70 private:
71 Aws::String m_name;
72
73 int m_retentionPeriodInDays{0};
74 bool m_nameHasBeenSet = false;
75 bool m_retentionPeriodInDaysHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace ConfigService
80} // namespace Aws
RetentionConfiguration & WithRetentionPeriodInDays(int value)
AWS_CONFIGSERVICE_API RetentionConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONFIGSERVICE_API RetentionConfiguration(Aws::Utils::Json::JsonView jsonValue)
RetentionConfiguration & WithName(NameT &&value)
AWS_CONFIGSERVICE_API RetentionConfiguration()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue