AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetObjectReference(const ObjectReference& value) { m_objectReferenceHasBeenSet = true; m_objectReference = value; }
50 inline void SetObjectReference(ObjectReference&& value) { m_objectReferenceHasBeenSet = true; m_objectReference = std::move(value); }
52 inline BatchUpdateObjectAttributes& WithObjectReference(ObjectReference&& value) { SetObjectReference(std::move(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 inline void SetAttributeUpdates(const Aws::Vector<ObjectAttributeUpdate>& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates = value; }
62 inline void SetAttributeUpdates(Aws::Vector<ObjectAttributeUpdate>&& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates = std::move(value); }
65 inline BatchUpdateObjectAttributes& AddAttributeUpdates(const ObjectAttributeUpdate& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates.push_back(value); return *this; }
66 inline BatchUpdateObjectAttributes& AddAttributeUpdates(ObjectAttributeUpdate&& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates.push_back(std::move(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 & WithAttributeUpdates(Aws::Vector< ObjectAttributeUpdate > &&value)
BatchUpdateObjectAttributes & WithObjectReference(ObjectReference &&value)
AWS_CLOUDDIRECTORY_API BatchUpdateObjectAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAttributeUpdates(Aws::Vector< ObjectAttributeUpdate > &&value)
BatchUpdateObjectAttributes & WithObjectReference(const ObjectReference &value)
const Aws::Vector< ObjectAttributeUpdate > & GetAttributeUpdates() const
BatchUpdateObjectAttributes & AddAttributeUpdates(const ObjectAttributeUpdate &value)
BatchUpdateObjectAttributes & AddAttributeUpdates(ObjectAttributeUpdate &&value)
AWS_CLOUDDIRECTORY_API BatchUpdateObjectAttributes(Aws::Utils::Json::JsonView jsonValue)
BatchUpdateObjectAttributes & WithAttributeUpdates(const Aws::Vector< ObjectAttributeUpdate > &value)
void SetAttributeUpdates(const Aws::Vector< ObjectAttributeUpdate > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue