AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateExtendedSourceServerRequest.h
1
6#pragma once
7#include <aws/drs/Drs_EXPORTS.h>
8#include <aws/drs/DrsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace drs
16{
17namespace Model
18{
19
23 {
24 public:
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateExtendedSourceServer"; }
32
33 AWS_DRS_API Aws::String SerializePayload() const override;
34
35
37
41 inline const Aws::String& GetSourceServerArn() const{ return m_sourceServerArn; }
42 inline bool SourceServerArnHasBeenSet() const { return m_sourceServerArnHasBeenSet; }
43 inline void SetSourceServerArn(const Aws::String& value) { m_sourceServerArnHasBeenSet = true; m_sourceServerArn = value; }
44 inline void SetSourceServerArn(Aws::String&& value) { m_sourceServerArnHasBeenSet = true; m_sourceServerArn = std::move(value); }
45 inline void SetSourceServerArn(const char* value) { m_sourceServerArnHasBeenSet = true; m_sourceServerArn.assign(value); }
47 inline CreateExtendedSourceServerRequest& WithSourceServerArn(Aws::String&& value) { SetSourceServerArn(std::move(value)); return *this;}
48 inline CreateExtendedSourceServerRequest& WithSourceServerArn(const char* value) { SetSourceServerArn(value); return *this;}
50
52
55 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
56 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
57 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
58 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
60 inline CreateExtendedSourceServerRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
61 inline CreateExtendedSourceServerRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
62 inline CreateExtendedSourceServerRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
63 inline CreateExtendedSourceServerRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
64 inline CreateExtendedSourceServerRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
65 inline CreateExtendedSourceServerRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
66 inline CreateExtendedSourceServerRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
67 inline CreateExtendedSourceServerRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
69 private:
70
71 Aws::String m_sourceServerArn;
72 bool m_sourceServerArnHasBeenSet = false;
73
75 bool m_tagsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace drs
80} // namespace Aws
CreateExtendedSourceServerRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_DRS_API Aws::String SerializePayload() const override
CreateExtendedSourceServerRequest & AddTags(const Aws::String &key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateExtendedSourceServerRequest & AddTags(Aws::String &&key, const char *value)
CreateExtendedSourceServerRequest & WithSourceServerArn(const char *value)
CreateExtendedSourceServerRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateExtendedSourceServerRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateExtendedSourceServerRequest & WithSourceServerArn(Aws::String &&value)
CreateExtendedSourceServerRequest & AddTags(const char *key, const char *value)
CreateExtendedSourceServerRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateExtendedSourceServerRequest & AddTags(const char *key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateExtendedSourceServerRequest & WithSourceServerArn(const Aws::String &value)
CreateExtendedSourceServerRequest & AddTags(const Aws::String &key, Aws::String &&value)
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