AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
30 public:
31 AWS_IMAGEBUILDER_API S3ExportConfiguration() = default;
32 AWS_IMAGEBUILDER_API S3ExportConfiguration(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetRoleName() const { return m_roleName; }
42 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
43 template <typename RoleNameT = Aws::String>
44 void SetRoleName(RoleNameT&& value) {
45 m_roleNameHasBeenSet = true;
46 m_roleName = std::forward<RoleNameT>(value);
47 }
48 template <typename RoleNameT = Aws::String>
49 S3ExportConfiguration& WithRoleName(RoleNameT&& value) {
50 SetRoleName(std::forward<RoleNameT>(value));
51 return *this;
52 }
54
56
64 inline DiskImageFormat GetDiskImageFormat() const { return m_diskImageFormat; }
65 inline bool DiskImageFormatHasBeenSet() const { return m_diskImageFormatHasBeenSet; }
67 m_diskImageFormatHasBeenSet = true;
68 m_diskImageFormat = value;
69 }
71 SetDiskImageFormat(value);
72 return *this;
73 }
75
77
80 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
81 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
82 template <typename S3BucketT = Aws::String>
83 void SetS3Bucket(S3BucketT&& value) {
84 m_s3BucketHasBeenSet = true;
85 m_s3Bucket = std::forward<S3BucketT>(value);
86 }
87 template <typename S3BucketT = Aws::String>
88 S3ExportConfiguration& WithS3Bucket(S3BucketT&& value) {
89 SetS3Bucket(std::forward<S3BucketT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetS3Prefix() const { return m_s3Prefix; }
100 inline bool S3PrefixHasBeenSet() const { return m_s3PrefixHasBeenSet; }
101 template <typename S3PrefixT = Aws::String>
102 void SetS3Prefix(S3PrefixT&& value) {
103 m_s3PrefixHasBeenSet = true;
104 m_s3Prefix = std::forward<S3PrefixT>(value);
105 }
106 template <typename S3PrefixT = Aws::String>
108 SetS3Prefix(std::forward<S3PrefixT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_roleName;
114
115 DiskImageFormat m_diskImageFormat{DiskImageFormat::NOT_SET};
116
117 Aws::String m_s3Bucket;
118
119 Aws::String m_s3Prefix;
120 bool m_roleNameHasBeenSet = false;
121 bool m_diskImageFormatHasBeenSet = false;
122 bool m_s3BucketHasBeenSet = false;
123 bool m_s3PrefixHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace imagebuilder
128} // 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