AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
DeleteObjectRequest.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectoryRequest.h>
8#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
9#include <aws/clouddirectory/model/ObjectReference.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CloudDirectory {
16namespace Model {
17
21 public:
22 AWS_CLOUDDIRECTORY_API DeleteObjectRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DeleteObject"; }
29
30 AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override;
31
32 AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
39 inline const Aws::String& GetDirectoryArn() const { return m_directoryArn; }
40 inline bool DirectoryArnHasBeenSet() const { return m_directoryArnHasBeenSet; }
41 template <typename DirectoryArnT = Aws::String>
42 void SetDirectoryArn(DirectoryArnT&& value) {
43 m_directoryArnHasBeenSet = true;
44 m_directoryArn = std::forward<DirectoryArnT>(value);
45 }
46 template <typename DirectoryArnT = Aws::String>
47 DeleteObjectRequest& WithDirectoryArn(DirectoryArnT&& value) {
48 SetDirectoryArn(std::forward<DirectoryArnT>(value));
49 return *this;
50 }
52
54
57 inline const ObjectReference& GetObjectReference() const { return m_objectReference; }
58 inline bool ObjectReferenceHasBeenSet() const { return m_objectReferenceHasBeenSet; }
59 template <typename ObjectReferenceT = ObjectReference>
60 void SetObjectReference(ObjectReferenceT&& value) {
61 m_objectReferenceHasBeenSet = true;
62 m_objectReference = std::forward<ObjectReferenceT>(value);
63 }
64 template <typename ObjectReferenceT = ObjectReference>
65 DeleteObjectRequest& WithObjectReference(ObjectReferenceT&& value) {
66 SetObjectReference(std::forward<ObjectReferenceT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_directoryArn;
72
73 ObjectReference m_objectReference;
74 bool m_directoryArnHasBeenSet = false;
75 bool m_objectReferenceHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace CloudDirectory
80} // namespace Aws
virtual const char * GetServiceRequestName() const override
DeleteObjectRequest & WithObjectReference(ObjectReferenceT &&value)
const ObjectReference & GetObjectReference() const
AWS_CLOUDDIRECTORY_API DeleteObjectRequest()=default
AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override
DeleteObjectRequest & WithDirectoryArn(DirectoryArnT &&value)
AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String