AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateConnectionAliasRequest.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/workspaces/WorkSpacesRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/workspaces/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WorkSpaces
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_WORKSPACES_API CreateConnectionAliasRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateConnectionAlias"; }
33
34 AWS_WORKSPACES_API Aws::String SerializePayload() const override;
35
37
38
40
48 inline const Aws::String& GetConnectionString() const { return m_connectionString; }
49 inline bool ConnectionStringHasBeenSet() const { return m_connectionStringHasBeenSet; }
50 template<typename ConnectionStringT = Aws::String>
51 void SetConnectionString(ConnectionStringT&& value) { m_connectionStringHasBeenSet = true; m_connectionString = std::forward<ConnectionStringT>(value); }
52 template<typename ConnectionStringT = Aws::String>
53 CreateConnectionAliasRequest& WithConnectionString(ConnectionStringT&& value) { SetConnectionString(std::forward<ConnectionStringT>(value)); return *this;}
55
57
60 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
61 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
62 template<typename TagsT = Aws::Vector<Tag>>
63 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
64 template<typename TagsT = Aws::Vector<Tag>>
65 CreateConnectionAliasRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
66 template<typename TagsT = Tag>
67 CreateConnectionAliasRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
69 private:
70
71 Aws::String m_connectionString;
72 bool m_connectionStringHasBeenSet = false;
73
74 Aws::Vector<Tag> m_tags;
75 bool m_tagsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace WorkSpaces
80} // 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