AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
CreateConnectionAliasRequest.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/workspaces/WorkSpacesRequest.h>
10#include <aws/workspaces/WorkSpaces_EXPORTS.h>
11#include <aws/workspaces/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace WorkSpaces {
17namespace Model {
18
22 public:
23 AWS_WORKSPACES_API CreateConnectionAliasRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateConnectionAlias"; }
30
31 AWS_WORKSPACES_API Aws::String SerializePayload() const override;
32
34
36
44 inline const Aws::String& GetConnectionString() const { return m_connectionString; }
45 inline bool ConnectionStringHasBeenSet() const { return m_connectionStringHasBeenSet; }
46 template <typename ConnectionStringT = Aws::String>
47 void SetConnectionString(ConnectionStringT&& value) {
48 m_connectionStringHasBeenSet = true;
49 m_connectionString = std::forward<ConnectionStringT>(value);
50 }
51 template <typename ConnectionStringT = Aws::String>
53 SetConnectionString(std::forward<ConnectionStringT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
63 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
64 template <typename TagsT = Aws::Vector<Tag>>
65 void SetTags(TagsT&& value) {
66 m_tagsHasBeenSet = true;
67 m_tags = std::forward<TagsT>(value);
68 }
69 template <typename TagsT = Aws::Vector<Tag>>
71 SetTags(std::forward<TagsT>(value));
72 return *this;
73 }
74 template <typename TagsT = Tag>
76 m_tagsHasBeenSet = true;
77 m_tags.emplace_back(std::forward<TagsT>(value));
78 return *this;
79 }
81 private:
82 Aws::String m_connectionString;
83
84 Aws::Vector<Tag> m_tags;
85 bool m_connectionStringHasBeenSet = false;
86 bool m_tagsHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace WorkSpaces
91} // namespace Aws
CreateConnectionAliasRequest & WithConnectionString(ConnectionStringT &&value)
AWS_WORKSPACES_API CreateConnectionAliasRequest()=default
AWS_WORKSPACES_API Aws::String SerializePayload() const override
CreateConnectionAliasRequest & AddTags(TagsT &&value)
AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateConnectionAliasRequest & WithTags(TagsT &&value)
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