AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
StartExportRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mgn/MgnRequest.h>
10#include <aws/mgn/Mgn_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace mgn {
16namespace Model {
17
24 public:
25 AWS_MGN_API StartExportRequest() = default;
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 "StartExport"; }
32
33 AWS_MGN_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
40 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
41 template <typename S3BucketT = Aws::String>
42 void SetS3Bucket(S3BucketT&& value) {
43 m_s3BucketHasBeenSet = true;
44 m_s3Bucket = std::forward<S3BucketT>(value);
45 }
46 template <typename S3BucketT = Aws::String>
47 StartExportRequest& WithS3Bucket(S3BucketT&& value) {
48 SetS3Bucket(std::forward<S3BucketT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetS3Key() const { return m_s3Key; }
58 inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
59 template <typename S3KeyT = Aws::String>
60 void SetS3Key(S3KeyT&& value) {
61 m_s3KeyHasBeenSet = true;
62 m_s3Key = std::forward<S3KeyT>(value);
63 }
64 template <typename S3KeyT = Aws::String>
65 StartExportRequest& WithS3Key(S3KeyT&& value) {
66 SetS3Key(std::forward<S3KeyT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetS3BucketOwner() const { return m_s3BucketOwner; }
76 inline bool S3BucketOwnerHasBeenSet() const { return m_s3BucketOwnerHasBeenSet; }
77 template <typename S3BucketOwnerT = Aws::String>
78 void SetS3BucketOwner(S3BucketOwnerT&& value) {
79 m_s3BucketOwnerHasBeenSet = true;
80 m_s3BucketOwner = std::forward<S3BucketOwnerT>(value);
81 }
82 template <typename S3BucketOwnerT = Aws::String>
83 StartExportRequest& WithS3BucketOwner(S3BucketOwnerT&& value) {
84 SetS3BucketOwner(std::forward<S3BucketOwnerT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
96 void SetTags(TagsT&& value) {
97 m_tagsHasBeenSet = true;
98 m_tags = std::forward<TagsT>(value);
99 }
100 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
101 StartExportRequest& WithTags(TagsT&& value) {
102 SetTags(std::forward<TagsT>(value));
103 return *this;
104 }
105 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
106 StartExportRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
107 m_tagsHasBeenSet = true;
108 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_s3Bucket;
114
115 Aws::String m_s3Key;
116
117 Aws::String m_s3BucketOwner;
118
120 bool m_s3BucketHasBeenSet = false;
121 bool m_s3KeyHasBeenSet = false;
122 bool m_s3BucketOwnerHasBeenSet = false;
123 bool m_tagsHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace mgn
128} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetS3BucketOwner() const
StartExportRequest & WithS3Bucket(S3BucketT &&value)
StartExportRequest & WithS3BucketOwner(S3BucketOwnerT &&value)
virtual const char * GetServiceRequestName() const override
StartExportRequest & WithS3Key(S3KeyT &&value)
const Aws::String & GetS3Bucket() const
StartExportRequest & WithTags(TagsT &&value)
StartExportRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetS3BucketOwner(S3BucketOwnerT &&value)
const Aws::String & GetS3Key() const
AWS_MGN_API Aws::String SerializePayload() const override
AWS_MGN_API StartExportRequest()=default
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