AWS SDK for C++  1.9.66
AWS SDK for C++
CreateConnectionAliasRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace WorkSpaces
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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::String SerializePayload() const override;
35 
37 
38 
47  inline const Aws::String& GetConnectionString() const{ return m_connectionString; }
48 
57  inline bool ConnectionStringHasBeenSet() const { return m_connectionStringHasBeenSet; }
58 
67  inline void SetConnectionString(const Aws::String& value) { m_connectionStringHasBeenSet = true; m_connectionString = value; }
68 
77  inline void SetConnectionString(Aws::String&& value) { m_connectionStringHasBeenSet = true; m_connectionString = std::move(value); }
78 
87  inline void SetConnectionString(const char* value) { m_connectionStringHasBeenSet = true; m_connectionString.assign(value); }
88 
97  inline CreateConnectionAliasRequest& WithConnectionString(const Aws::String& value) { SetConnectionString(value); return *this;}
98 
107  inline CreateConnectionAliasRequest& WithConnectionString(Aws::String&& value) { SetConnectionString(std::move(value)); return *this;}
108 
117  inline CreateConnectionAliasRequest& WithConnectionString(const char* value) { SetConnectionString(value); return *this;}
118 
119 
123  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
124 
128  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
129 
133  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
134 
138  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
139 
143  inline CreateConnectionAliasRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
144 
148  inline CreateConnectionAliasRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
149 
153  inline CreateConnectionAliasRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
154 
158  inline CreateConnectionAliasRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
159 
160  private:
161 
162  Aws::String m_connectionString;
163  bool m_connectionStringHasBeenSet;
164 
165  Aws::Vector<Tag> m_tags;
166  bool m_tagsHasBeenSet;
167  };
168 
169 } // namespace Model
170 } // namespace WorkSpaces
171 } // namespace Aws
WorkSpaces_EXPORTS.h
Aws::WorkSpaces::Model::CreateConnectionAliasRequest::SetConnectionString
void SetConnectionString(const char *value)
Definition: CreateConnectionAliasRequest.h:87
Aws::WorkSpaces::Model::CreateConnectionAliasRequest::SetConnectionString
void SetConnectionString(Aws::String &&value)
Definition: CreateConnectionAliasRequest.h:77
Aws::WorkSpaces::Model::CreateConnectionAliasRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateConnectionAliasRequest.h:138
Aws::WorkSpaces::WorkSpacesRequest
Definition: WorkSpacesRequest.h:17
AWS_WORKSPACES_API
#define AWS_WORKSPACES_API
Definition: WorkSpaces_EXPORTS.h:28
Aws::WorkSpaces::Model::CreateConnectionAliasRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateConnectionAliasRequest.h:32
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
WorkSpacesRequest.h
Tag.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WorkSpaces::Model::CreateConnectionAliasRequest::AddTags
CreateConnectionAliasRequest & AddTags(Tag &&value)
Definition: CreateConnectionAliasRequest.h:158
Aws::WorkSpaces::Model::CreateConnectionAliasRequest::CreateConnectionAliasRequest
CreateConnectionAliasRequest()
Aws::WorkSpaces::Model::CreateConnectionAliasRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateConnectionAliasRequest.h:128
Aws::WorkSpaces::Model::CreateConnectionAliasRequest::GetConnectionString
const Aws::String & GetConnectionString() const
Definition: CreateConnectionAliasRequest.h:47
AWSVector.h
Aws::WorkSpaces::Model::CreateConnectionAliasRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateConnectionAliasRequest.h:123
Aws::WorkSpaces::Model::CreateConnectionAliasRequest::SetConnectionString
void SetConnectionString(const Aws::String &value)
Definition: CreateConnectionAliasRequest.h:67
Aws::WorkSpaces::Model::CreateConnectionAliasRequest::WithConnectionString
CreateConnectionAliasRequest & WithConnectionString(const char *value)
Definition: CreateConnectionAliasRequest.h:117
Aws::WorkSpaces::Model::CreateConnectionAliasRequest::WithTags
CreateConnectionAliasRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateConnectionAliasRequest.h:143
Aws::WorkSpaces::Model::CreateConnectionAliasRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSString.h
Aws::WorkSpaces::Model::CreateConnectionAliasRequest::AddTags
CreateConnectionAliasRequest & AddTags(const Tag &value)
Definition: CreateConnectionAliasRequest.h:153
Aws::WorkSpaces::Model::CreateConnectionAliasRequest::WithConnectionString
CreateConnectionAliasRequest & WithConnectionString(Aws::String &&value)
Definition: CreateConnectionAliasRequest.h:107
Aws::WorkSpaces::Model::CreateConnectionAliasRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WorkSpaces::Model::CreateConnectionAliasRequest
Definition: CreateConnectionAliasRequest.h:24
Aws::WorkSpaces::Model::CreateConnectionAliasRequest::ConnectionStringHasBeenSet
bool ConnectionStringHasBeenSet() const
Definition: CreateConnectionAliasRequest.h:57
Aws::WorkSpaces::Model::CreateConnectionAliasRequest::WithTags
CreateConnectionAliasRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateConnectionAliasRequest.h:148
Aws::WorkSpaces::Model::CreateConnectionAliasRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateConnectionAliasRequest.h:133
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkSpaces::Model::Tag
Definition: Tag.h:32
Aws::WorkSpaces::Model::CreateConnectionAliasRequest::WithConnectionString
CreateConnectionAliasRequest & WithConnectionString(const Aws::String &value)
Definition: CreateConnectionAliasRequest.h:97