AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Projection.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/dynamodb/model/ProjectionType.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DynamoDB
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_DYNAMODB_API Projection();
39 AWS_DYNAMODB_API Projection(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DYNAMODB_API Projection& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
54 inline const ProjectionType& GetProjectionType() const{ return m_projectionType; }
55 inline bool ProjectionTypeHasBeenSet() const { return m_projectionTypeHasBeenSet; }
56 inline void SetProjectionType(const ProjectionType& value) { m_projectionTypeHasBeenSet = true; m_projectionType = value; }
57 inline void SetProjectionType(ProjectionType&& value) { m_projectionTypeHasBeenSet = true; m_projectionType = std::move(value); }
58 inline Projection& WithProjectionType(const ProjectionType& value) { SetProjectionType(value); return *this;}
59 inline Projection& WithProjectionType(ProjectionType&& value) { SetProjectionType(std::move(value)); return *this;}
61
63
70 inline const Aws::Vector<Aws::String>& GetNonKeyAttributes() const{ return m_nonKeyAttributes; }
71 inline bool NonKeyAttributesHasBeenSet() const { return m_nonKeyAttributesHasBeenSet; }
72 inline void SetNonKeyAttributes(const Aws::Vector<Aws::String>& value) { m_nonKeyAttributesHasBeenSet = true; m_nonKeyAttributes = value; }
73 inline void SetNonKeyAttributes(Aws::Vector<Aws::String>&& value) { m_nonKeyAttributesHasBeenSet = true; m_nonKeyAttributes = std::move(value); }
74 inline Projection& WithNonKeyAttributes(const Aws::Vector<Aws::String>& value) { SetNonKeyAttributes(value); return *this;}
75 inline Projection& WithNonKeyAttributes(Aws::Vector<Aws::String>&& value) { SetNonKeyAttributes(std::move(value)); return *this;}
76 inline Projection& AddNonKeyAttributes(const Aws::String& value) { m_nonKeyAttributesHasBeenSet = true; m_nonKeyAttributes.push_back(value); return *this; }
77 inline Projection& AddNonKeyAttributes(Aws::String&& value) { m_nonKeyAttributesHasBeenSet = true; m_nonKeyAttributes.push_back(std::move(value)); return *this; }
78 inline Projection& AddNonKeyAttributes(const char* value) { m_nonKeyAttributesHasBeenSet = true; m_nonKeyAttributes.push_back(value); return *this; }
80 private:
81
82 ProjectionType m_projectionType;
83 bool m_projectionTypeHasBeenSet = false;
84
85 Aws::Vector<Aws::String> m_nonKeyAttributes;
86 bool m_nonKeyAttributesHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace DynamoDB
91} // namespace Aws
void SetProjectionType(const ProjectionType &value)
Definition Projection.h:56
void SetNonKeyAttributes(Aws::Vector< Aws::String > &&value)
Definition Projection.h:73
void SetNonKeyAttributes(const Aws::Vector< Aws::String > &value)
Definition Projection.h:72
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
Projection & WithNonKeyAttributes(const Aws::Vector< Aws::String > &value)
Definition Projection.h:74
Projection & WithNonKeyAttributes(Aws::Vector< Aws::String > &&value)
Definition Projection.h:75
bool NonKeyAttributesHasBeenSet() const
Definition Projection.h:71
const Aws::Vector< Aws::String > & GetNonKeyAttributes() const
Definition Projection.h:70
Projection & AddNonKeyAttributes(Aws::String &&value)
Definition Projection.h:77
AWS_DYNAMODB_API Projection & operator=(Aws::Utils::Json::JsonView jsonValue)
Projection & AddNonKeyAttributes(const Aws::String &value)
Definition Projection.h:76
AWS_DYNAMODB_API Projection(Aws::Utils::Json::JsonView jsonValue)
Projection & AddNonKeyAttributes(const char *value)
Definition Projection.h:78
const ProjectionType & GetProjectionType() const
Definition Projection.h:54
Projection & WithProjectionType(ProjectionType &&value)
Definition Projection.h:59
void SetProjectionType(ProjectionType &&value)
Definition Projection.h:57
Projection & WithProjectionType(const ProjectionType &value)
Definition Projection.h:58
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue