AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
49 inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); }
50 inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); }
51 inline AttributeDefinition& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
52 inline AttributeDefinition& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;}
53 inline AttributeDefinition& WithAttributeName(const char* value) { SetAttributeName(value); return *this;}
55
57
63 inline const ScalarAttributeType& GetAttributeType() const{ return m_attributeType; }
64 inline bool AttributeTypeHasBeenSet() const { return m_attributeTypeHasBeenSet; }
65 inline void SetAttributeType(const ScalarAttributeType& value) { m_attributeTypeHasBeenSet = true; m_attributeType = value; }
66 inline void SetAttributeType(ScalarAttributeType&& value) { m_attributeTypeHasBeenSet = true; m_attributeType = std::move(value); }
67 inline AttributeDefinition& WithAttributeType(const ScalarAttributeType& value) { SetAttributeType(value); return *this;}
68 inline AttributeDefinition& WithAttributeType(ScalarAttributeType&& value) { SetAttributeType(std::move(value)); return *this;}
70 private:
71
72 Aws::String m_attributeName;
73 bool m_attributeNameHasBeenSet = false;
74
75 ScalarAttributeType m_attributeType;
76 bool m_attributeTypeHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace DynamoDB
81} // namespace Aws
const ScalarAttributeType & GetAttributeType() const
void SetAttributeName(const Aws::String &value)
void SetAttributeType(const ScalarAttributeType &value)
AttributeDefinition & WithAttributeName(Aws::String &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
AttributeDefinition & WithAttributeType(ScalarAttributeType &&value)
AWS_DYNAMODB_API AttributeDefinition(Aws::Utils::Json::JsonView jsonValue)
AttributeDefinition & WithAttributeName(const Aws::String &value)
AttributeDefinition & WithAttributeType(const ScalarAttributeType &value)
AWS_DYNAMODB_API AttributeDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAttributeType(ScalarAttributeType &&value)
AttributeDefinition & WithAttributeName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue