AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TimeToLiveSpecification.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DynamoDB
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_DYNAMODB_API TimeToLiveSpecification();
38 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline bool GetEnabled() const{ return m_enabled; }
47 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
48 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
49 inline TimeToLiveSpecification& WithEnabled(bool value) { SetEnabled(value); return *this;}
51
53
57 inline const Aws::String& GetAttributeName() const{ return m_attributeName; }
58 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
59 inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
60 inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); }
61 inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); }
62 inline TimeToLiveSpecification& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
63 inline TimeToLiveSpecification& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;}
64 inline TimeToLiveSpecification& WithAttributeName(const char* value) { SetAttributeName(value); return *this;}
66 private:
67
68 bool m_enabled;
69 bool m_enabledHasBeenSet = false;
70
71 Aws::String m_attributeName;
72 bool m_attributeNameHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace DynamoDB
77} // namespace Aws
TimeToLiveSpecification & WithAttributeName(const Aws::String &value)
TimeToLiveSpecification & WithAttributeName(Aws::String &&value)
TimeToLiveSpecification & WithAttributeName(const char *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