AWS SDK for C++

AWS SDK for C++ Version 1.11.745

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