AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
BatchUpdateLinkAttributes.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/model/LinkAttributeUpdate.h>
9#include <aws/clouddirectory/model/TypedLinkSpecifier.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudDirectory {
22namespace Model {
23
34 public:
35 AWS_CLOUDDIRECTORY_API BatchUpdateLinkAttributes() = default;
36 AWS_CLOUDDIRECTORY_API BatchUpdateLinkAttributes(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const TypedLinkSpecifier& GetTypedLinkSpecifier() const { return m_typedLinkSpecifier; }
45 inline bool TypedLinkSpecifierHasBeenSet() const { return m_typedLinkSpecifierHasBeenSet; }
46 template <typename TypedLinkSpecifierT = TypedLinkSpecifier>
47 void SetTypedLinkSpecifier(TypedLinkSpecifierT&& value) {
48 m_typedLinkSpecifierHasBeenSet = true;
49 m_typedLinkSpecifier = std::forward<TypedLinkSpecifierT>(value);
50 }
51 template <typename TypedLinkSpecifierT = TypedLinkSpecifier>
52 BatchUpdateLinkAttributes& WithTypedLinkSpecifier(TypedLinkSpecifierT&& value) {
53 SetTypedLinkSpecifier(std::forward<TypedLinkSpecifierT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Vector<LinkAttributeUpdate>& GetAttributeUpdates() const { return m_attributeUpdates; }
63 inline bool AttributeUpdatesHasBeenSet() const { return m_attributeUpdatesHasBeenSet; }
64 template <typename AttributeUpdatesT = Aws::Vector<LinkAttributeUpdate>>
65 void SetAttributeUpdates(AttributeUpdatesT&& value) {
66 m_attributeUpdatesHasBeenSet = true;
67 m_attributeUpdates = std::forward<AttributeUpdatesT>(value);
68 }
69 template <typename AttributeUpdatesT = Aws::Vector<LinkAttributeUpdate>>
70 BatchUpdateLinkAttributes& WithAttributeUpdates(AttributeUpdatesT&& value) {
71 SetAttributeUpdates(std::forward<AttributeUpdatesT>(value));
72 return *this;
73 }
74 template <typename AttributeUpdatesT = LinkAttributeUpdate>
75 BatchUpdateLinkAttributes& AddAttributeUpdates(AttributeUpdatesT&& value) {
76 m_attributeUpdatesHasBeenSet = true;
77 m_attributeUpdates.emplace_back(std::forward<AttributeUpdatesT>(value));
78 return *this;
79 }
81 private:
82 TypedLinkSpecifier m_typedLinkSpecifier;
83
84 Aws::Vector<LinkAttributeUpdate> m_attributeUpdates;
85 bool m_typedLinkSpecifierHasBeenSet = false;
86 bool m_attributeUpdatesHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace CloudDirectory
91} // namespace Aws
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue