AWS SDK for C++

AWS SDK for C++ Version 1.11.870

Loading...
Searching...
No Matches
SearchSchemaElement.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/dynamodb/DynamoDB_EXPORTS.h>
9#include <aws/dynamodb/model/SearchSchemaElementType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DynamoDB {
21namespace Model {
22
30 public:
31 AWS_DYNAMODB_API SearchSchemaElement() = default;
34 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
41 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
42 template <typename AttributeNameT = Aws::String>
43 void SetAttributeName(AttributeNameT&& value) {
44 m_attributeNameHasBeenSet = true;
45 m_attributeName = std::forward<AttributeNameT>(value);
46 }
47 template <typename AttributeNameT = Aws::String>
48 SearchSchemaElement& WithAttributeName(AttributeNameT&& value) {
49 SetAttributeName(std::forward<AttributeNameT>(value));
50 return *this;
51 }
53
55
64 inline SearchSchemaElementType GetSearchSchemaElementType() const { return m_searchSchemaElementType; }
65 inline bool SearchSchemaElementTypeHasBeenSet() const { return m_searchSchemaElementTypeHasBeenSet; }
67 m_searchSchemaElementTypeHasBeenSet = true;
68 m_searchSchemaElementType = value;
69 }
72 return *this;
73 }
75 private:
76 Aws::String m_attributeName;
77
79 bool m_attributeNameHasBeenSet = false;
80 bool m_searchSchemaElementTypeHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace DynamoDB
85} // namespace Aws
AWS_DYNAMODB_API SearchSchemaElement(Aws::Utils::Json::JsonView jsonValue)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
SearchSchemaElementType GetSearchSchemaElementType() const
SearchSchemaElement & WithSearchSchemaElementType(SearchSchemaElementType value)
AWS_DYNAMODB_API SearchSchemaElement()=default
void SetSearchSchemaElementType(SearchSchemaElementType value)
SearchSchemaElement & WithAttributeName(AttributeNameT &&value)
void SetAttributeName(AttributeNameT &&value)
AWS_DYNAMODB_API SearchSchemaElement & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue