AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BatchUpdateObjectAttributes.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/model/ObjectReference.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/clouddirectory/model/ObjectAttributeUpdate.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 CloudDirectory
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CLOUDDIRECTORY_API BatchUpdateObjectAttributes() = default;
40 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const ObjectReference& GetObjectReference() const { return m_objectReference; }
48 inline bool ObjectReferenceHasBeenSet() const { return m_objectReferenceHasBeenSet; }
49 template<typename ObjectReferenceT = ObjectReference>
50 void SetObjectReference(ObjectReferenceT&& value) { m_objectReferenceHasBeenSet = true; m_objectReference = std::forward<ObjectReferenceT>(value); }
51 template<typename ObjectReferenceT = ObjectReference>
52 BatchUpdateObjectAttributes& WithObjectReference(ObjectReferenceT&& value) { SetObjectReference(std::forward<ObjectReferenceT>(value)); return *this;}
54
56
59 inline const Aws::Vector<ObjectAttributeUpdate>& GetAttributeUpdates() const { return m_attributeUpdates; }
60 inline bool AttributeUpdatesHasBeenSet() const { return m_attributeUpdatesHasBeenSet; }
61 template<typename AttributeUpdatesT = Aws::Vector<ObjectAttributeUpdate>>
62 void SetAttributeUpdates(AttributeUpdatesT&& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates = std::forward<AttributeUpdatesT>(value); }
63 template<typename AttributeUpdatesT = Aws::Vector<ObjectAttributeUpdate>>
64 BatchUpdateObjectAttributes& WithAttributeUpdates(AttributeUpdatesT&& value) { SetAttributeUpdates(std::forward<AttributeUpdatesT>(value)); return *this;}
65 template<typename AttributeUpdatesT = ObjectAttributeUpdate>
66 BatchUpdateObjectAttributes& AddAttributeUpdates(AttributeUpdatesT&& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates.emplace_back(std::forward<AttributeUpdatesT>(value)); return *this; }
68 private:
69
70 ObjectReference m_objectReference;
71 bool m_objectReferenceHasBeenSet = false;
72
73 Aws::Vector<ObjectAttributeUpdate> m_attributeUpdates;
74 bool m_attributeUpdatesHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace CloudDirectory
79} // namespace Aws
AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const
BatchUpdateObjectAttributes & AddAttributeUpdates(AttributeUpdatesT &&value)
BatchUpdateObjectAttributes & WithAttributeUpdates(AttributeUpdatesT &&value)
AWS_CLOUDDIRECTORY_API BatchUpdateObjectAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ObjectAttributeUpdate > & GetAttributeUpdates() const
BatchUpdateObjectAttributes & WithObjectReference(ObjectReferenceT &&value)
AWS_CLOUDDIRECTORY_API BatchUpdateObjectAttributes(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDDIRECTORY_API BatchUpdateObjectAttributes()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue