AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetObjectInformationRequest.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/clouddirectory/model/ConsistencyLevel.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CloudDirectory
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CLOUDDIRECTORY_API GetObjectInformationRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "GetObjectInformation"; }
33
34 AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override;
35
36 AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetDirectoryArn() const { return m_directoryArn; }
44 inline bool DirectoryArnHasBeenSet() const { return m_directoryArnHasBeenSet; }
45 template<typename DirectoryArnT = Aws::String>
46 void SetDirectoryArn(DirectoryArnT&& value) { m_directoryArnHasBeenSet = true; m_directoryArn = std::forward<DirectoryArnT>(value); }
47 template<typename DirectoryArnT = Aws::String>
48 GetObjectInformationRequest& WithDirectoryArn(DirectoryArnT&& value) { SetDirectoryArn(std::forward<DirectoryArnT>(value)); return *this;}
50
52
55 inline const ObjectReference& GetObjectReference() const { return m_objectReference; }
56 inline bool ObjectReferenceHasBeenSet() const { return m_objectReferenceHasBeenSet; }
57 template<typename ObjectReferenceT = ObjectReference>
58 void SetObjectReference(ObjectReferenceT&& value) { m_objectReferenceHasBeenSet = true; m_objectReference = std::forward<ObjectReferenceT>(value); }
59 template<typename ObjectReferenceT = ObjectReference>
60 GetObjectInformationRequest& WithObjectReference(ObjectReferenceT&& value) { SetObjectReference(std::forward<ObjectReferenceT>(value)); return *this;}
62
64
67 inline ConsistencyLevel GetConsistencyLevel() const { return m_consistencyLevel; }
68 inline bool ConsistencyLevelHasBeenSet() const { return m_consistencyLevelHasBeenSet; }
69 inline void SetConsistencyLevel(ConsistencyLevel value) { m_consistencyLevelHasBeenSet = true; m_consistencyLevel = value; }
72 private:
73
74 Aws::String m_directoryArn;
75 bool m_directoryArnHasBeenSet = false;
76
77 ObjectReference m_objectReference;
78 bool m_objectReferenceHasBeenSet = false;
79
81 bool m_consistencyLevelHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace CloudDirectory
86} // namespace Aws
AWS_CLOUDDIRECTORY_API GetObjectInformationRequest()=default
AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetObjectInformationRequest & WithObjectReference(ObjectReferenceT &&value)
GetObjectInformationRequest & WithDirectoryArn(DirectoryArnT &&value)
AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override
GetObjectInformationRequest & WithConsistencyLevel(ConsistencyLevel value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String