AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
KeySchemaElement.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/KeyType.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
38 public:
39 AWS_DYNAMODB_API KeySchemaElement() = default;
40 AWS_DYNAMODB_API KeySchemaElement(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
49 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
50 template <typename AttributeNameT = Aws::String>
51 void SetAttributeName(AttributeNameT&& value) {
52 m_attributeNameHasBeenSet = true;
53 m_attributeName = std::forward<AttributeNameT>(value);
54 }
55 template <typename AttributeNameT = Aws::String>
56 KeySchemaElement& WithAttributeName(AttributeNameT&& value) {
57 SetAttributeName(std::forward<AttributeNameT>(value));
58 return *this;
59 }
61
63
74 inline KeyType GetKeyType() const { return m_keyType; }
75 inline bool KeyTypeHasBeenSet() const { return m_keyTypeHasBeenSet; }
76 inline void SetKeyType(KeyType value) {
77 m_keyTypeHasBeenSet = true;
78 m_keyType = value;
79 }
81 SetKeyType(value);
82 return *this;
83 }
85 private:
86 Aws::String m_attributeName;
87
88 KeyType m_keyType{KeyType::NOT_SET};
89 bool m_attributeNameHasBeenSet = false;
90 bool m_keyTypeHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace DynamoDB
95} // namespace Aws
void SetAttributeName(AttributeNameT &&value)
KeySchemaElement & WithKeyType(KeyType value)
KeySchemaElement & WithAttributeName(AttributeNameT &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAttributeName() const
AWS_DYNAMODB_API KeySchemaElement(Aws::Utils::Json::JsonView jsonValue)
AWS_DYNAMODB_API KeySchemaElement & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DYNAMODB_API KeySchemaElement()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue