AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateLinkRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/oam/OAMRequest.h>
10#include <aws/oam/OAM_EXPORTS.h>
11#include <aws/oam/model/LinkConfiguration.h>
12#include <aws/oam/model/ResourceType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace OAM {
18namespace Model {
19
23 public:
24 AWS_OAM_API UpdateLinkRequest() = 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 "UpdateLink"; }
31
32 AWS_OAM_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetIdentifier() const { return m_identifier; }
39 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
40 template <typename IdentifierT = Aws::String>
41 void SetIdentifier(IdentifierT&& value) {
42 m_identifierHasBeenSet = true;
43 m_identifier = std::forward<IdentifierT>(value);
44 }
45 template <typename IdentifierT = Aws::String>
46 UpdateLinkRequest& WithIdentifier(IdentifierT&& value) {
47 SetIdentifier(std::forward<IdentifierT>(value));
48 return *this;
49 }
51
53
62 inline bool GetIncludeTags() const { return m_includeTags; }
63 inline bool IncludeTagsHasBeenSet() const { return m_includeTagsHasBeenSet; }
64 inline void SetIncludeTags(bool value) {
65 m_includeTagsHasBeenSet = true;
66 m_includeTags = value;
67 }
68 inline UpdateLinkRequest& WithIncludeTags(bool value) {
69 SetIncludeTags(value);
70 return *this;
71 }
73
75
79 inline const LinkConfiguration& GetLinkConfiguration() const { return m_linkConfiguration; }
80 inline bool LinkConfigurationHasBeenSet() const { return m_linkConfigurationHasBeenSet; }
81 template <typename LinkConfigurationT = LinkConfiguration>
82 void SetLinkConfiguration(LinkConfigurationT&& value) {
83 m_linkConfigurationHasBeenSet = true;
84 m_linkConfiguration = std::forward<LinkConfigurationT>(value);
85 }
86 template <typename LinkConfigurationT = LinkConfiguration>
87 UpdateLinkRequest& WithLinkConfiguration(LinkConfigurationT&& value) {
88 SetLinkConfiguration(std::forward<LinkConfigurationT>(value));
89 return *this;
90 }
92
94
99 inline const Aws::Vector<ResourceType>& GetResourceTypes() const { return m_resourceTypes; }
100 inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; }
101 template <typename ResourceTypesT = Aws::Vector<ResourceType>>
102 void SetResourceTypes(ResourceTypesT&& value) {
103 m_resourceTypesHasBeenSet = true;
104 m_resourceTypes = std::forward<ResourceTypesT>(value);
105 }
106 template <typename ResourceTypesT = Aws::Vector<ResourceType>>
107 UpdateLinkRequest& WithResourceTypes(ResourceTypesT&& value) {
108 SetResourceTypes(std::forward<ResourceTypesT>(value));
109 return *this;
110 }
112 m_resourceTypesHasBeenSet = true;
113 m_resourceTypes.push_back(value);
114 return *this;
115 }
117 private:
118 Aws::String m_identifier;
119
120 bool m_includeTags{false};
121
122 LinkConfiguration m_linkConfiguration;
123
124 Aws::Vector<ResourceType> m_resourceTypes;
125 bool m_identifierHasBeenSet = false;
126 bool m_includeTagsHasBeenSet = false;
127 bool m_linkConfigurationHasBeenSet = false;
128 bool m_resourceTypesHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace OAM
133} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector