AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
KeySchemaElement.h
1
6#pragma once
7#include <aws/dynamodbstreams/DynamoDBStreams_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dynamodbstreams/model/KeyType.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 DynamoDBStreams
23{
24namespace Model
25{
26
42 {
43 public:
44 AWS_DYNAMODBSTREAMS_API KeySchemaElement() = default;
45 AWS_DYNAMODBSTREAMS_API KeySchemaElement(Aws::Utils::Json::JsonView jsonValue);
46 AWS_DYNAMODBSTREAMS_API KeySchemaElement& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_DYNAMODBSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
55 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
56 template<typename AttributeNameT = Aws::String>
57 void SetAttributeName(AttributeNameT&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::forward<AttributeNameT>(value); }
58 template<typename AttributeNameT = Aws::String>
59 KeySchemaElement& WithAttributeName(AttributeNameT&& value) { SetAttributeName(std::forward<AttributeNameT>(value)); return *this;}
61
63
74 inline KeyType GetKeyType() const { return m_keyType; }
75 inline bool KeyTypeHasBeenSet() const { return m_keyTypeHasBeenSet; }
76 inline void SetKeyType(KeyType value) { m_keyTypeHasBeenSet = true; m_keyType = value; }
77 inline KeySchemaElement& WithKeyType(KeyType value) { SetKeyType(value); return *this;}
79 private:
80
81 Aws::String m_attributeName;
82 bool m_attributeNameHasBeenSet = false;
83
84 KeyType m_keyType{KeyType::NOT_SET};
85 bool m_keyTypeHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace DynamoDBStreams
90} // namespace Aws
AWS_DYNAMODBSTREAMS_API KeySchemaElement & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DYNAMODBSTREAMS_API KeySchemaElement()=default
KeySchemaElement & WithAttributeName(AttributeNameT &&value)
AWS_DYNAMODBSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DYNAMODBSTREAMS_API KeySchemaElement(Aws::Utils::Json::JsonView jsonValue)
KeySchemaElement & WithKeyType(KeyType value)
void SetAttributeName(AttributeNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue