AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateObjectAttributesRequest.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/CloudDirectoryRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/clouddirectory/model/ObjectReference.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/clouddirectory/model/ObjectAttributeUpdate.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CloudDirectory
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CLOUDDIRECTORY_API UpdateObjectAttributesRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateObjectAttributes"; }
34
35 AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override;
36
37 AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
45 inline const Aws::String& GetDirectoryArn() const{ return m_directoryArn; }
46 inline bool DirectoryArnHasBeenSet() const { return m_directoryArnHasBeenSet; }
47 inline void SetDirectoryArn(const Aws::String& value) { m_directoryArnHasBeenSet = true; m_directoryArn = value; }
48 inline void SetDirectoryArn(Aws::String&& value) { m_directoryArnHasBeenSet = true; m_directoryArn = std::move(value); }
49 inline void SetDirectoryArn(const char* value) { m_directoryArnHasBeenSet = true; m_directoryArn.assign(value); }
50 inline UpdateObjectAttributesRequest& WithDirectoryArn(const Aws::String& value) { SetDirectoryArn(value); return *this;}
51 inline UpdateObjectAttributesRequest& WithDirectoryArn(Aws::String&& value) { SetDirectoryArn(std::move(value)); return *this;}
52 inline UpdateObjectAttributesRequest& WithDirectoryArn(const char* value) { SetDirectoryArn(value); return *this;}
54
56
59 inline const ObjectReference& GetObjectReference() const{ return m_objectReference; }
60 inline bool ObjectReferenceHasBeenSet() const { return m_objectReferenceHasBeenSet; }
61 inline void SetObjectReference(const ObjectReference& value) { m_objectReferenceHasBeenSet = true; m_objectReference = value; }
62 inline void SetObjectReference(ObjectReference&& value) { m_objectReferenceHasBeenSet = true; m_objectReference = std::move(value); }
64 inline UpdateObjectAttributesRequest& WithObjectReference(ObjectReference&& value) { SetObjectReference(std::move(value)); return *this;}
66
68
71 inline const Aws::Vector<ObjectAttributeUpdate>& GetAttributeUpdates() const{ return m_attributeUpdates; }
72 inline bool AttributeUpdatesHasBeenSet() const { return m_attributeUpdatesHasBeenSet; }
73 inline void SetAttributeUpdates(const Aws::Vector<ObjectAttributeUpdate>& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates = value; }
74 inline void SetAttributeUpdates(Aws::Vector<ObjectAttributeUpdate>&& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates = std::move(value); }
77 inline UpdateObjectAttributesRequest& AddAttributeUpdates(const ObjectAttributeUpdate& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates.push_back(value); return *this; }
78 inline UpdateObjectAttributesRequest& AddAttributeUpdates(ObjectAttributeUpdate&& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates.push_back(std::move(value)); return *this; }
80 private:
81
82 Aws::String m_directoryArn;
83 bool m_directoryArnHasBeenSet = false;
84
85 ObjectReference m_objectReference;
86 bool m_objectReferenceHasBeenSet = false;
87
88 Aws::Vector<ObjectAttributeUpdate> m_attributeUpdates;
89 bool m_attributeUpdatesHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace CloudDirectory
94} // namespace Aws
AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< ObjectAttributeUpdate > & GetAttributeUpdates() const
UpdateObjectAttributesRequest & WithDirectoryArn(Aws::String &&value)
AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override
UpdateObjectAttributesRequest & AddAttributeUpdates(ObjectAttributeUpdate &&value)
void SetAttributeUpdates(const Aws::Vector< ObjectAttributeUpdate > &value)
UpdateObjectAttributesRequest & WithDirectoryArn(const Aws::String &value)
UpdateObjectAttributesRequest & WithAttributeUpdates(const Aws::Vector< ObjectAttributeUpdate > &value)
UpdateObjectAttributesRequest & WithObjectReference(ObjectReference &&value)
UpdateObjectAttributesRequest & WithObjectReference(const ObjectReference &value)
UpdateObjectAttributesRequest & WithAttributeUpdates(Aws::Vector< ObjectAttributeUpdate > &&value)
void SetAttributeUpdates(Aws::Vector< ObjectAttributeUpdate > &&value)
UpdateObjectAttributesRequest & AddAttributeUpdates(const ObjectAttributeUpdate &value)
UpdateObjectAttributesRequest & WithDirectoryArn(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector