AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
AttributeDefinition.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dynamodb/model/ScalarAttributeType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DynamoDB
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DYNAMODB_API AttributeDefinition() = default;
39 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
47 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
48 template<typename AttributeNameT = Aws::String>
49 void SetAttributeName(AttributeNameT&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::forward<AttributeNameT>(value); }
50 template<typename AttributeNameT = Aws::String>
51 AttributeDefinition& WithAttributeName(AttributeNameT&& value) { SetAttributeName(std::forward<AttributeNameT>(value)); return *this;}
53
55
61 inline ScalarAttributeType GetAttributeType() const { return m_attributeType; }
62 inline bool AttributeTypeHasBeenSet() const { return m_attributeTypeHasBeenSet; }
63 inline void SetAttributeType(ScalarAttributeType value) { m_attributeTypeHasBeenSet = true; m_attributeType = value; }
66 private:
67
68 Aws::String m_attributeName;
69 bool m_attributeNameHasBeenSet = false;
70
72 bool m_attributeTypeHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace DynamoDB
77} // namespace Aws
AWS_DYNAMODB_API AttributeDefinition()=default
void SetAttributeName(AttributeNameT &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
AttributeDefinition & WithAttributeType(ScalarAttributeType value)
AWS_DYNAMODB_API AttributeDefinition(Aws::Utils::Json::JsonView jsonValue)
void SetAttributeType(ScalarAttributeType value)
AttributeDefinition & WithAttributeName(AttributeNameT &&value)
AWS_DYNAMODB_API AttributeDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue