AWS SDK for C++

AWS SDK for C++ Version 1.11.902

Loading...
Searching...
No Matches
S3ExportConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
9#include <aws/imagebuilder/model/DiskImageFormat.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace imagebuilder {
21namespace Model {
22
31 public:
32 AWS_IMAGEBUILDER_API S3ExportConfiguration() = default;
33 AWS_IMAGEBUILDER_API S3ExportConfiguration(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetRoleName() const { return m_roleName; }
43 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
44 template <typename RoleNameT = Aws::String>
45 void SetRoleName(RoleNameT&& value) {
46 m_roleNameHasBeenSet = true;
47 m_roleName = std::forward<RoleNameT>(value);
48 }
49 template <typename RoleNameT = Aws::String>
50 S3ExportConfiguration& WithRoleName(RoleNameT&& value) {
51 SetRoleName(std::forward<RoleNameT>(value));
52 return *this;
53 }
55
57
65 inline DiskImageFormat GetDiskImageFormat() const { return m_diskImageFormat; }
66 inline bool DiskImageFormatHasBeenSet() const { return m_diskImageFormatHasBeenSet; }
68 m_diskImageFormatHasBeenSet = true;
69 m_diskImageFormat = value;
70 }
72 SetDiskImageFormat(value);
73 return *this;
74 }
76
78
81 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
82 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
83 template <typename S3BucketT = Aws::String>
84 void SetS3Bucket(S3BucketT&& value) {
85 m_s3BucketHasBeenSet = true;
86 m_s3Bucket = std::forward<S3BucketT>(value);
87 }
88 template <typename S3BucketT = Aws::String>
89 S3ExportConfiguration& WithS3Bucket(S3BucketT&& value) {
90 SetS3Bucket(std::forward<S3BucketT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetS3Prefix() const { return m_s3Prefix; }
101 inline bool S3PrefixHasBeenSet() const { return m_s3PrefixHasBeenSet; }
102 template <typename S3PrefixT = Aws::String>
103 void SetS3Prefix(S3PrefixT&& value) {
104 m_s3PrefixHasBeenSet = true;
105 m_s3Prefix = std::forward<S3PrefixT>(value);
106 }
107 template <typename S3PrefixT = Aws::String>
109 SetS3Prefix(std::forward<S3PrefixT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_roleName;
115
116 DiskImageFormat m_diskImageFormat{DiskImageFormat::NOT_SET};
117
118 Aws::String m_s3Bucket;
119
120 Aws::String m_s3Prefix;
121 bool m_roleNameHasBeenSet = false;
122 bool m_diskImageFormatHasBeenSet = false;
123 bool m_s3BucketHasBeenSet = false;
124 bool m_s3PrefixHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace imagebuilder
129} // namespace Aws
S3ExportConfiguration & WithRoleName(RoleNameT &&value)
S3ExportConfiguration & WithDiskImageFormat(DiskImageFormat value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
S3ExportConfiguration & WithS3Prefix(S3PrefixT &&value)
AWS_IMAGEBUILDER_API S3ExportConfiguration()=default
AWS_IMAGEBUILDER_API S3ExportConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IMAGEBUILDER_API S3ExportConfiguration(Aws::Utils::Json::JsonView jsonValue)
S3ExportConfiguration & WithS3Bucket(S3BucketT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue