AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
StructValue.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/rds-data/RDSDataService_EXPORTS.h>
9#include <aws/rds-data/model/Value.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace RDSDataService {
21namespace Model {
22class Value;
23
33 public:
34 AWS_RDSDATASERVICE_API StructValue() = default;
35 AWS_RDSDATASERVICE_API StructValue(Aws::Utils::Json::JsonView jsonValue);
36 AWS_RDSDATASERVICE_API StructValue& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_RDSDATASERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Vector<Value>& GetAttributes() const { return m_attributes; }
44 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
45 template <typename AttributesT = Aws::Vector<Value>>
46 void SetAttributes(AttributesT&& value) {
47 m_attributesHasBeenSet = true;
48 m_attributes = std::forward<AttributesT>(value);
49 }
50 template <typename AttributesT = Aws::Vector<Value>>
51 StructValue& WithAttributes(AttributesT&& value) {
52 SetAttributes(std::forward<AttributesT>(value));
53 return *this;
54 }
55 template <typename AttributesT = Value>
56 StructValue& AddAttributes(AttributesT&& value) {
57 m_attributesHasBeenSet = true;
58 m_attributes.emplace_back(std::forward<AttributesT>(value));
59 return *this;
60 }
62 private:
63 Aws::Vector<Value> m_attributes;
64 bool m_attributesHasBeenSet = false;
65};
66
67} // namespace Model
68} // namespace RDSDataService
69} // namespace Aws
void SetAttributes(AttributesT &&value)
Definition StructValue.h:46
StructValue & AddAttributes(AttributesT &&value)
Definition StructValue.h:56
AWS_RDSDATASERVICE_API StructValue & operator=(Aws::Utils::Json::JsonView jsonValue)
StructValue & WithAttributes(AttributesT &&value)
Definition StructValue.h:51
const Aws::Vector< Value > & GetAttributes() const
Definition StructValue.h:43
AWS_RDSDATASERVICE_API StructValue()=default
AWS_RDSDATASERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_RDSDATASERVICE_API StructValue(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue