AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
TimeToLiveSpecification.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/dynamodb/DynamoDB_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DynamoDB {
20namespace Model {
21
29 public:
30 AWS_DYNAMODB_API TimeToLiveSpecification() = default;
33 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline bool GetEnabled() const { return m_enabled; }
41 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
42 inline void SetEnabled(bool value) {
43 m_enabledHasBeenSet = true;
44 m_enabled = value;
45 }
47 SetEnabled(value);
48 return *this;
49 }
51
53
57 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
58 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
59 template <typename AttributeNameT = Aws::String>
60 void SetAttributeName(AttributeNameT&& value) {
61 m_attributeNameHasBeenSet = true;
62 m_attributeName = std::forward<AttributeNameT>(value);
63 }
64 template <typename AttributeNameT = Aws::String>
65 TimeToLiveSpecification& WithAttributeName(AttributeNameT&& value) {
66 SetAttributeName(std::forward<AttributeNameT>(value));
67 return *this;
68 }
70 private:
71 bool m_enabled{false};
72
73 Aws::String m_attributeName;
74 bool m_enabledHasBeenSet = false;
75 bool m_attributeNameHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace DynamoDB
80} // namespace Aws
AWS_DYNAMODB_API TimeToLiveSpecification()=default
TimeToLiveSpecification & WithAttributeName(AttributeNameT &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DYNAMODB_API TimeToLiveSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
TimeToLiveSpecification & WithEnabled(bool value)
AWS_DYNAMODB_API TimeToLiveSpecification(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue