AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LocalSecondaryIndex.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/dynamodb/model/Projection.h>
11#include <aws/dynamodb/model/KeySchemaElement.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DynamoDB
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_DYNAMODB_API LocalSecondaryIndex();
41 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetIndexName() const{ return m_indexName; }
50 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
51 inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
52 inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = std::move(value); }
53 inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); }
54 inline LocalSecondaryIndex& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;}
55 inline LocalSecondaryIndex& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;}
56 inline LocalSecondaryIndex& WithIndexName(const char* value) { SetIndexName(value); return *this;}
58
60
72 inline const Aws::Vector<KeySchemaElement>& GetKeySchema() const{ return m_keySchema; }
73 inline bool KeySchemaHasBeenSet() const { return m_keySchemaHasBeenSet; }
74 inline void SetKeySchema(const Aws::Vector<KeySchemaElement>& value) { m_keySchemaHasBeenSet = true; m_keySchema = value; }
75 inline void SetKeySchema(Aws::Vector<KeySchemaElement>&& value) { m_keySchemaHasBeenSet = true; m_keySchema = std::move(value); }
76 inline LocalSecondaryIndex& WithKeySchema(const Aws::Vector<KeySchemaElement>& value) { SetKeySchema(value); return *this;}
77 inline LocalSecondaryIndex& WithKeySchema(Aws::Vector<KeySchemaElement>&& value) { SetKeySchema(std::move(value)); return *this;}
78 inline LocalSecondaryIndex& AddKeySchema(const KeySchemaElement& value) { m_keySchemaHasBeenSet = true; m_keySchema.push_back(value); return *this; }
79 inline LocalSecondaryIndex& AddKeySchema(KeySchemaElement&& value) { m_keySchemaHasBeenSet = true; m_keySchema.push_back(std::move(value)); return *this; }
81
83
88 inline const Projection& GetProjection() const{ return m_projection; }
89 inline bool ProjectionHasBeenSet() const { return m_projectionHasBeenSet; }
90 inline void SetProjection(const Projection& value) { m_projectionHasBeenSet = true; m_projection = value; }
91 inline void SetProjection(Projection&& value) { m_projectionHasBeenSet = true; m_projection = std::move(value); }
92 inline LocalSecondaryIndex& WithProjection(const Projection& value) { SetProjection(value); return *this;}
93 inline LocalSecondaryIndex& WithProjection(Projection&& value) { SetProjection(std::move(value)); return *this;}
95 private:
96
97 Aws::String m_indexName;
98 bool m_indexNameHasBeenSet = false;
99
101 bool m_keySchemaHasBeenSet = false;
102
103 Projection m_projection;
104 bool m_projectionHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace DynamoDB
109} // namespace Aws
LocalSecondaryIndex & WithIndexName(const Aws::String &value)
LocalSecondaryIndex & WithProjection(const Projection &value)
const Aws::Vector< KeySchemaElement > & GetKeySchema() const
void SetKeySchema(Aws::Vector< KeySchemaElement > &&value)
LocalSecondaryIndex & AddKeySchema(const KeySchemaElement &value)
void SetIndexName(const Aws::String &value)
void SetKeySchema(const Aws::Vector< KeySchemaElement > &value)
LocalSecondaryIndex & WithIndexName(Aws::String &&value)
AWS_DYNAMODB_API LocalSecondaryIndex(Aws::Utils::Json::JsonView jsonValue)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
LocalSecondaryIndex & AddKeySchema(KeySchemaElement &&value)
LocalSecondaryIndex & WithKeySchema(Aws::Vector< KeySchemaElement > &&value)
AWS_DYNAMODB_API LocalSecondaryIndex & operator=(Aws::Utils::Json::JsonView jsonValue)
LocalSecondaryIndex & WithIndexName(const char *value)
void SetProjection(const Projection &value)
LocalSecondaryIndex & WithKeySchema(const Aws::Vector< KeySchemaElement > &value)
LocalSecondaryIndex & WithProjection(Projection &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue