AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateLinkAttributesRequest.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/TypedLinkSpecifier.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/clouddirectory/model/LinkAttributeUpdate.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CloudDirectory
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CLOUDDIRECTORY_API UpdateLinkAttributesRequest() = default;
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 "UpdateLinkAttributes"; }
34
35 AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override;
36
37 AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
47 inline const Aws::String& GetDirectoryArn() const { return m_directoryArn; }
48 inline bool DirectoryArnHasBeenSet() const { return m_directoryArnHasBeenSet; }
49 template<typename DirectoryArnT = Aws::String>
50 void SetDirectoryArn(DirectoryArnT&& value) { m_directoryArnHasBeenSet = true; m_directoryArn = std::forward<DirectoryArnT>(value); }
51 template<typename DirectoryArnT = Aws::String>
52 UpdateLinkAttributesRequest& WithDirectoryArn(DirectoryArnT&& value) { SetDirectoryArn(std::forward<DirectoryArnT>(value)); return *this;}
54
56
59 inline const TypedLinkSpecifier& GetTypedLinkSpecifier() const { return m_typedLinkSpecifier; }
60 inline bool TypedLinkSpecifierHasBeenSet() const { return m_typedLinkSpecifierHasBeenSet; }
61 template<typename TypedLinkSpecifierT = TypedLinkSpecifier>
62 void SetTypedLinkSpecifier(TypedLinkSpecifierT&& value) { m_typedLinkSpecifierHasBeenSet = true; m_typedLinkSpecifier = std::forward<TypedLinkSpecifierT>(value); }
63 template<typename TypedLinkSpecifierT = TypedLinkSpecifier>
64 UpdateLinkAttributesRequest& WithTypedLinkSpecifier(TypedLinkSpecifierT&& value) { SetTypedLinkSpecifier(std::forward<TypedLinkSpecifierT>(value)); return *this;}
66
68
71 inline const Aws::Vector<LinkAttributeUpdate>& GetAttributeUpdates() const { return m_attributeUpdates; }
72 inline bool AttributeUpdatesHasBeenSet() const { return m_attributeUpdatesHasBeenSet; }
73 template<typename AttributeUpdatesT = Aws::Vector<LinkAttributeUpdate>>
74 void SetAttributeUpdates(AttributeUpdatesT&& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates = std::forward<AttributeUpdatesT>(value); }
75 template<typename AttributeUpdatesT = Aws::Vector<LinkAttributeUpdate>>
76 UpdateLinkAttributesRequest& WithAttributeUpdates(AttributeUpdatesT&& value) { SetAttributeUpdates(std::forward<AttributeUpdatesT>(value)); return *this;}
77 template<typename AttributeUpdatesT = LinkAttributeUpdate>
78 UpdateLinkAttributesRequest& AddAttributeUpdates(AttributeUpdatesT&& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates.emplace_back(std::forward<AttributeUpdatesT>(value)); return *this; }
80 private:
81
82 Aws::String m_directoryArn;
83 bool m_directoryArnHasBeenSet = false;
84
85 TypedLinkSpecifier m_typedLinkSpecifier;
86 bool m_typedLinkSpecifierHasBeenSet = false;
87
88 Aws::Vector<LinkAttributeUpdate> m_attributeUpdates;
89 bool m_attributeUpdatesHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace CloudDirectory
94} // 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