AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
StartImportRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mgn/MgnRequest.h>
11#include <aws/mgn/Mgn_EXPORTS.h>
12#include <aws/mgn/model/S3BucketSource.h>
13
14#include <utility>
15
16namespace Aws {
17namespace mgn {
18namespace Model {
19
26 public:
27 AWS_MGN_API StartImportRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "StartImport"; }
34
35 AWS_MGN_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetClientToken() const { return m_clientToken; }
42 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
43 template <typename ClientTokenT = Aws::String>
44 void SetClientToken(ClientTokenT&& value) {
45 m_clientTokenHasBeenSet = true;
46 m_clientToken = std::forward<ClientTokenT>(value);
47 }
48 template <typename ClientTokenT = Aws::String>
49 StartImportRequest& WithClientToken(ClientTokenT&& value) {
50 SetClientToken(std::forward<ClientTokenT>(value));
51 return *this;
52 }
54
56
59 inline const S3BucketSource& GetS3BucketSource() const { return m_s3BucketSource; }
60 inline bool S3BucketSourceHasBeenSet() const { return m_s3BucketSourceHasBeenSet; }
61 template <typename S3BucketSourceT = S3BucketSource>
62 void SetS3BucketSource(S3BucketSourceT&& value) {
63 m_s3BucketSourceHasBeenSet = true;
64 m_s3BucketSource = std::forward<S3BucketSourceT>(value);
65 }
66 template <typename S3BucketSourceT = S3BucketSource>
67 StartImportRequest& WithS3BucketSource(S3BucketSourceT&& value) {
68 SetS3BucketSource(std::forward<S3BucketSourceT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
78 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
79 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
80 void SetTags(TagsT&& value) {
81 m_tagsHasBeenSet = true;
82 m_tags = std::forward<TagsT>(value);
83 }
84 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
85 StartImportRequest& WithTags(TagsT&& value) {
86 SetTags(std::forward<TagsT>(value));
87 return *this;
88 }
89 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
90 StartImportRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
91 m_tagsHasBeenSet = true;
92 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
93 return *this;
94 }
96 private:
98
99 S3BucketSource m_s3BucketSource;
100
102 bool m_clientTokenHasBeenSet = true;
103 bool m_s3BucketSourceHasBeenSet = false;
104 bool m_tagsHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace mgn
109} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
void SetClientToken(ClientTokenT &&value)
AWS_MGN_API StartImportRequest()=default
const Aws::String & GetClientToken() const
StartImportRequest & WithS3BucketSource(S3BucketSourceT &&value)
const S3BucketSource & GetS3BucketSource() const
StartImportRequest & WithTags(TagsT &&value)
void SetS3BucketSource(S3BucketSourceT &&value)
AWS_MGN_API Aws::String SerializePayload() const override
StartImportRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
StartImportRequest & WithClientToken(ClientTokenT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
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