AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateLinkRequest.h
1
6#pragma once
7#include <aws/oam/OAM_EXPORTS.h>
8#include <aws/oam/OAMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/oam/model/LinkConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/oam/model/ResourceType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace OAM
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_OAM_API CreateLinkRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateLink"; }
35
36 AWS_OAM_API Aws::String SerializePayload() const override;
37
38
40
54 inline const Aws::String& GetLabelTemplate() const { return m_labelTemplate; }
55 inline bool LabelTemplateHasBeenSet() const { return m_labelTemplateHasBeenSet; }
56 template<typename LabelTemplateT = Aws::String>
57 void SetLabelTemplate(LabelTemplateT&& value) { m_labelTemplateHasBeenSet = true; m_labelTemplate = std::forward<LabelTemplateT>(value); }
58 template<typename LabelTemplateT = Aws::String>
59 CreateLinkRequest& WithLabelTemplate(LabelTemplateT&& value) { SetLabelTemplate(std::forward<LabelTemplateT>(value)); return *this;}
61
63
68 inline const LinkConfiguration& GetLinkConfiguration() const { return m_linkConfiguration; }
69 inline bool LinkConfigurationHasBeenSet() const { return m_linkConfigurationHasBeenSet; }
70 template<typename LinkConfigurationT = LinkConfiguration>
71 void SetLinkConfiguration(LinkConfigurationT&& value) { m_linkConfigurationHasBeenSet = true; m_linkConfiguration = std::forward<LinkConfigurationT>(value); }
72 template<typename LinkConfigurationT = LinkConfiguration>
73 CreateLinkRequest& WithLinkConfiguration(LinkConfigurationT&& value) { SetLinkConfiguration(std::forward<LinkConfigurationT>(value)); return *this;}
75
77
81 inline const Aws::Vector<ResourceType>& GetResourceTypes() const { return m_resourceTypes; }
82 inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; }
83 template<typename ResourceTypesT = Aws::Vector<ResourceType>>
84 void SetResourceTypes(ResourceTypesT&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = std::forward<ResourceTypesT>(value); }
85 template<typename ResourceTypesT = Aws::Vector<ResourceType>>
86 CreateLinkRequest& WithResourceTypes(ResourceTypesT&& value) { SetResourceTypes(std::forward<ResourceTypesT>(value)); return *this;}
87 inline CreateLinkRequest& AddResourceTypes(ResourceType value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; }
89
91
97 inline const Aws::String& GetSinkIdentifier() const { return m_sinkIdentifier; }
98 inline bool SinkIdentifierHasBeenSet() const { return m_sinkIdentifierHasBeenSet; }
99 template<typename SinkIdentifierT = Aws::String>
100 void SetSinkIdentifier(SinkIdentifierT&& value) { m_sinkIdentifierHasBeenSet = true; m_sinkIdentifier = std::forward<SinkIdentifierT>(value); }
101 template<typename SinkIdentifierT = Aws::String>
102 CreateLinkRequest& WithSinkIdentifier(SinkIdentifierT&& value) { SetSinkIdentifier(std::forward<SinkIdentifierT>(value)); return *this;}
104
106
115 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
116 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
117 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
118 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
119 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
120 CreateLinkRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
121 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
122 CreateLinkRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
123 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
124 }
126 private:
127
128 Aws::String m_labelTemplate;
129 bool m_labelTemplateHasBeenSet = false;
130
131 LinkConfiguration m_linkConfiguration;
132 bool m_linkConfigurationHasBeenSet = false;
133
134 Aws::Vector<ResourceType> m_resourceTypes;
135 bool m_resourceTypesHasBeenSet = false;
136
137 Aws::String m_sinkIdentifier;
138 bool m_sinkIdentifierHasBeenSet = false;
139
141 bool m_tagsHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace OAM
146} // namespace Aws
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector