AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
48 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
49 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
50 inline CreateStoreImageTaskRequest& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
51 inline CreateStoreImageTaskRequest& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
52 inline CreateStoreImageTaskRequest& WithImageId(const char* value) { SetImageId(value); return *this;}
54
56
61 inline const Aws::String& GetBucket() const{ return m_bucket; }
62 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
63 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
64 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
65 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
66 inline CreateStoreImageTaskRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
67 inline CreateStoreImageTaskRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
68 inline CreateStoreImageTaskRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
70
72
76 inline const Aws::Vector<S3ObjectTag>& GetS3ObjectTags() const{ return m_s3ObjectTags; }
77 inline bool S3ObjectTagsHasBeenSet() const { return m_s3ObjectTagsHasBeenSet; }
78 inline void SetS3ObjectTags(const Aws::Vector<S3ObjectTag>& value) { m_s3ObjectTagsHasBeenSet = true; m_s3ObjectTags = value; }
79 inline void SetS3ObjectTags(Aws::Vector<S3ObjectTag>&& value) { m_s3ObjectTagsHasBeenSet = true; m_s3ObjectTags = std::move(value); }
81 inline CreateStoreImageTaskRequest& WithS3ObjectTags(Aws::Vector<S3ObjectTag>&& value) { SetS3ObjectTags(std::move(value)); return *this;}
82 inline CreateStoreImageTaskRequest& AddS3ObjectTags(const S3ObjectTag& value) { m_s3ObjectTagsHasBeenSet = true; m_s3ObjectTags.push_back(value); return *this; }
83 inline CreateStoreImageTaskRequest& AddS3ObjectTags(S3ObjectTag&& value) { m_s3ObjectTagsHasBeenSet = true; m_s3ObjectTags.push_back(std::move(value)); return *this; }
85
87
93 inline bool GetDryRun() const{ return m_dryRun; }
94 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
95 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
96 inline CreateStoreImageTaskRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
98 private:
99
100 Aws::String m_imageId;
101 bool m_imageIdHasBeenSet = false;
102
103 Aws::String m_bucket;
104 bool m_bucketHasBeenSet = false;
105
106 Aws::Vector<S3ObjectTag> m_s3ObjectTags;
107 bool m_s3ObjectTagsHasBeenSet = false;
108
109 bool m_dryRun;
110 bool m_dryRunHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace EC2
115} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< S3ObjectTag > & GetS3ObjectTags() const
CreateStoreImageTaskRequest & WithBucket(const Aws::String &value)
CreateStoreImageTaskRequest & AddS3ObjectTags(const S3ObjectTag &value)
CreateStoreImageTaskRequest & WithDryRun(bool value)
CreateStoreImageTaskRequest & WithImageId(const char *value)
CreateStoreImageTaskRequest & WithS3ObjectTags(const Aws::Vector< S3ObjectTag > &value)
virtual const char * GetServiceRequestName() const override
void SetS3ObjectTags(Aws::Vector< S3ObjectTag > &&value)
CreateStoreImageTaskRequest & WithBucket(const char *value)
CreateStoreImageTaskRequest & AddS3ObjectTags(S3ObjectTag &&value)
CreateStoreImageTaskRequest & WithBucket(Aws::String &&value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateStoreImageTaskRequest & WithImageId(const Aws::String &value)
void SetS3ObjectTags(const Aws::Vector< S3ObjectTag > &value)
CreateStoreImageTaskRequest & WithImageId(Aws::String &&value)
CreateStoreImageTaskRequest & WithS3ObjectTags(Aws::Vector< S3ObjectTag > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector