AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
ReportDeliveryChannel.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Backup {
21namespace Model {
22
31 public:
32 AWS_BACKUP_API ReportDeliveryChannel() = default;
35 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetS3BucketName() const { return m_s3BucketName; }
42 inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
43 template <typename S3BucketNameT = Aws::String>
44 void SetS3BucketName(S3BucketNameT&& value) {
45 m_s3BucketNameHasBeenSet = true;
46 m_s3BucketName = std::forward<S3BucketNameT>(value);
47 }
48 template <typename S3BucketNameT = Aws::String>
49 ReportDeliveryChannel& WithS3BucketName(S3BucketNameT&& value) {
50 SetS3BucketName(std::forward<S3BucketNameT>(value));
51 return *this;
52 }
54
56
62 inline const Aws::String& GetS3KeyPrefix() const { return m_s3KeyPrefix; }
63 inline bool S3KeyPrefixHasBeenSet() const { return m_s3KeyPrefixHasBeenSet; }
64 template <typename S3KeyPrefixT = Aws::String>
65 void SetS3KeyPrefix(S3KeyPrefixT&& value) {
66 m_s3KeyPrefixHasBeenSet = true;
67 m_s3KeyPrefix = std::forward<S3KeyPrefixT>(value);
68 }
69 template <typename S3KeyPrefixT = Aws::String>
70 ReportDeliveryChannel& WithS3KeyPrefix(S3KeyPrefixT&& value) {
71 SetS3KeyPrefix(std::forward<S3KeyPrefixT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::Vector<Aws::String>& GetFormats() const { return m_formats; }
82 inline bool FormatsHasBeenSet() const { return m_formatsHasBeenSet; }
83 template <typename FormatsT = Aws::Vector<Aws::String>>
84 void SetFormats(FormatsT&& value) {
85 m_formatsHasBeenSet = true;
86 m_formats = std::forward<FormatsT>(value);
87 }
88 template <typename FormatsT = Aws::Vector<Aws::String>>
90 SetFormats(std::forward<FormatsT>(value));
91 return *this;
92 }
93 template <typename FormatsT = Aws::String>
94 ReportDeliveryChannel& AddFormats(FormatsT&& value) {
95 m_formatsHasBeenSet = true;
96 m_formats.emplace_back(std::forward<FormatsT>(value));
97 return *this;
98 }
100 private:
101 Aws::String m_s3BucketName;
102
103 Aws::String m_s3KeyPrefix;
104
105 Aws::Vector<Aws::String> m_formats;
106 bool m_s3BucketNameHasBeenSet = false;
107 bool m_s3KeyPrefixHasBeenSet = false;
108 bool m_formatsHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace Backup
113} // namespace Aws
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BACKUP_API ReportDeliveryChannel(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetFormats() const
ReportDeliveryChannel & WithS3BucketName(S3BucketNameT &&value)
AWS_BACKUP_API ReportDeliveryChannel()=default
ReportDeliveryChannel & WithFormats(FormatsT &&value)
ReportDeliveryChannel & AddFormats(FormatsT &&value)
AWS_BACKUP_API ReportDeliveryChannel & operator=(Aws::Utils::Json::JsonView jsonValue)
ReportDeliveryChannel & WithS3KeyPrefix(S3KeyPrefixT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue