AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
GetLinkAttributesRequest.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectoryRequest.h>
8#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
9#include <aws/clouddirectory/model/ConsistencyLevel.h>
10#include <aws/clouddirectory/model/TypedLinkSpecifier.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CloudDirectory {
18namespace Model {
19
23 public:
24 AWS_CLOUDDIRECTORY_API GetLinkAttributesRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetLinkAttributes"; }
31
32 AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override;
33
34 AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
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) {
47 m_directoryArnHasBeenSet = true;
48 m_directoryArn = std::forward<DirectoryArnT>(value);
49 }
50 template <typename DirectoryArnT = Aws::String>
52 SetDirectoryArn(std::forward<DirectoryArnT>(value));
53 return *this;
54 }
56
58
61 inline const TypedLinkSpecifier& GetTypedLinkSpecifier() const { return m_typedLinkSpecifier; }
62 inline bool TypedLinkSpecifierHasBeenSet() const { return m_typedLinkSpecifierHasBeenSet; }
63 template <typename TypedLinkSpecifierT = TypedLinkSpecifier>
64 void SetTypedLinkSpecifier(TypedLinkSpecifierT&& value) {
65 m_typedLinkSpecifierHasBeenSet = true;
66 m_typedLinkSpecifier = std::forward<TypedLinkSpecifierT>(value);
67 }
68 template <typename TypedLinkSpecifierT = TypedLinkSpecifier>
69 GetLinkAttributesRequest& WithTypedLinkSpecifier(TypedLinkSpecifierT&& value) {
70 SetTypedLinkSpecifier(std::forward<TypedLinkSpecifierT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<Aws::String>& GetAttributeNames() const { return m_attributeNames; }
80 inline bool AttributeNamesHasBeenSet() const { return m_attributeNamesHasBeenSet; }
81 template <typename AttributeNamesT = Aws::Vector<Aws::String>>
82 void SetAttributeNames(AttributeNamesT&& value) {
83 m_attributeNamesHasBeenSet = true;
84 m_attributeNames = std::forward<AttributeNamesT>(value);
85 }
86 template <typename AttributeNamesT = Aws::Vector<Aws::String>>
87 GetLinkAttributesRequest& WithAttributeNames(AttributeNamesT&& value) {
88 SetAttributeNames(std::forward<AttributeNamesT>(value));
89 return *this;
90 }
91 template <typename AttributeNamesT = Aws::String>
92 GetLinkAttributesRequest& AddAttributeNames(AttributeNamesT&& value) {
93 m_attributeNamesHasBeenSet = true;
94 m_attributeNames.emplace_back(std::forward<AttributeNamesT>(value));
95 return *this;
96 }
98
100
104 inline ConsistencyLevel GetConsistencyLevel() const { return m_consistencyLevel; }
105 inline bool ConsistencyLevelHasBeenSet() const { return m_consistencyLevelHasBeenSet; }
107 m_consistencyLevelHasBeenSet = true;
108 m_consistencyLevel = value;
109 }
111 SetConsistencyLevel(value);
112 return *this;
113 }
115 private:
116 Aws::String m_directoryArn;
117
118 TypedLinkSpecifier m_typedLinkSpecifier;
119
120 Aws::Vector<Aws::String> m_attributeNames;
121
123 bool m_directoryArnHasBeenSet = false;
124 bool m_typedLinkSpecifierHasBeenSet = false;
125 bool m_attributeNamesHasBeenSet = false;
126 bool m_consistencyLevelHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace CloudDirectory
131} // namespace Aws
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