AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateStoreImageTaskRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/S3ObjectTag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_EC2_API CreateStoreImageTaskRequest() = 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 "CreateStoreImageTask"; }
33
34 AWS_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
45 inline const Aws::String& GetImageId() const { return m_imageId; }
46 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
47 template<typename ImageIdT = Aws::String>
48 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet = true; m_imageId = std::forward<ImageIdT>(value); }
49 template<typename ImageIdT = Aws::String>
50 CreateStoreImageTaskRequest& WithImageId(ImageIdT&& value) { SetImageId(std::forward<ImageIdT>(value)); return *this;}
52
54
59 inline const Aws::String& GetBucket() const { return m_bucket; }
60 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
61 template<typename BucketT = Aws::String>
62 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
63 template<typename BucketT = Aws::String>
64 CreateStoreImageTaskRequest& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
66
68
72 inline const Aws::Vector<S3ObjectTag>& GetS3ObjectTags() const { return m_s3ObjectTags; }
73 inline bool S3ObjectTagsHasBeenSet() const { return m_s3ObjectTagsHasBeenSet; }
74 template<typename S3ObjectTagsT = Aws::Vector<S3ObjectTag>>
75 void SetS3ObjectTags(S3ObjectTagsT&& value) { m_s3ObjectTagsHasBeenSet = true; m_s3ObjectTags = std::forward<S3ObjectTagsT>(value); }
76 template<typename S3ObjectTagsT = Aws::Vector<S3ObjectTag>>
77 CreateStoreImageTaskRequest& WithS3ObjectTags(S3ObjectTagsT&& value) { SetS3ObjectTags(std::forward<S3ObjectTagsT>(value)); return *this;}
78 template<typename S3ObjectTagsT = S3ObjectTag>
79 CreateStoreImageTaskRequest& AddS3ObjectTags(S3ObjectTagsT&& value) { m_s3ObjectTagsHasBeenSet = true; m_s3ObjectTags.emplace_back(std::forward<S3ObjectTagsT>(value)); return *this; }
81
83
89 inline bool GetDryRun() const { return m_dryRun; }
90 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
91 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
92 inline CreateStoreImageTaskRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
94 private:
95
96 Aws::String m_imageId;
97 bool m_imageIdHasBeenSet = false;
98
99 Aws::String m_bucket;
100 bool m_bucketHasBeenSet = false;
101
102 Aws::Vector<S3ObjectTag> m_s3ObjectTags;
103 bool m_s3ObjectTagsHasBeenSet = false;
104
105 bool m_dryRun{false};
106 bool m_dryRunHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace EC2
111} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< S3ObjectTag > & GetS3ObjectTags() const
CreateStoreImageTaskRequest & AddS3ObjectTags(S3ObjectTagsT &&value)
AWS_EC2_API CreateStoreImageTaskRequest()=default
CreateStoreImageTaskRequest & WithDryRun(bool value)
CreateStoreImageTaskRequest & WithBucket(BucketT &&value)
CreateStoreImageTaskRequest & WithImageId(ImageIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_EC2_API Aws::String SerializePayload() const override
CreateStoreImageTaskRequest & WithS3ObjectTags(S3ObjectTagsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector