AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
AttributeDefinition.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/ScalarAttributeType.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 AttributeDefinition() = default;
34 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
41 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
42 template <typename AttributeNameT = Aws::String>
43 void SetAttributeName(AttributeNameT&& value) {
44 m_attributeNameHasBeenSet = true;
45 m_attributeName = std::forward<AttributeNameT>(value);
46 }
47 template <typename AttributeNameT = Aws::String>
48 AttributeDefinition& WithAttributeName(AttributeNameT&& value) {
49 SetAttributeName(std::forward<AttributeNameT>(value));
50 return *this;
51 }
53
55
61 inline ScalarAttributeType GetAttributeType() const { return m_attributeType; }
62 inline bool AttributeTypeHasBeenSet() const { return m_attributeTypeHasBeenSet; }
64 m_attributeTypeHasBeenSet = true;
65 m_attributeType = value;
66 }
68 SetAttributeType(value);
69 return *this;
70 }
72 private:
73 Aws::String m_attributeName;
74
76 bool m_attributeNameHasBeenSet = false;
77 bool m_attributeTypeHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace DynamoDB
82} // 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