AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
57 inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); }
58 inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); }
59 inline KeySchemaElement& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
60 inline KeySchemaElement& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;}
61 inline KeySchemaElement& WithAttributeName(const char* value) { SetAttributeName(value); return *this;}
63
65
76 inline const KeyType& GetKeyType() const{ return m_keyType; }
77 inline bool KeyTypeHasBeenSet() const { return m_keyTypeHasBeenSet; }
78 inline void SetKeyType(const KeyType& value) { m_keyTypeHasBeenSet = true; m_keyType = value; }
79 inline void SetKeyType(KeyType&& value) { m_keyTypeHasBeenSet = true; m_keyType = std::move(value); }
80 inline KeySchemaElement& WithKeyType(const KeyType& value) { SetKeyType(value); return *this;}
81 inline KeySchemaElement& WithKeyType(KeyType&& value) { SetKeyType(std::move(value)); return *this;}
83 private:
84
85 Aws::String m_attributeName;
86 bool m_attributeNameHasBeenSet = false;
87
88 KeyType m_keyType;
89 bool m_keyTypeHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace DynamoDBStreams
94} // namespace Aws
KeySchemaElement & WithKeyType(const KeyType &value)
AWS_DYNAMODBSTREAMS_API KeySchemaElement & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DYNAMODBSTREAMS_API KeySchemaElement()
KeySchemaElement & WithAttributeName(const char *value)
void SetAttributeName(const Aws::String &value)
KeySchemaElement & WithAttributeName(const Aws::String &value)
KeySchemaElement & WithAttributeName(Aws::String &&value)
AWS_DYNAMODBSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DYNAMODBSTREAMS_API KeySchemaElement(Aws::Utils::Json::JsonView jsonValue)
KeySchemaElement & WithKeyType(KeyType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue