AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
S3Destination.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ComputeOptimizer
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_COMPUTEOPTIMIZER_API S3Destination() = default;
37 AWS_COMPUTEOPTIMIZER_API S3Destination(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COMPUTEOPTIMIZER_API S3Destination& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetBucket() const { return m_bucket; }
48 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
49 template<typename BucketT = Aws::String>
50 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
51 template<typename BucketT = Aws::String>
52 S3Destination& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
54
56
60 inline const Aws::String& GetKey() const { return m_key; }
61 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
62 template<typename KeyT = Aws::String>
63 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
64 template<typename KeyT = Aws::String>
65 S3Destination& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
67
69
73 inline const Aws::String& GetMetadataKey() const { return m_metadataKey; }
74 inline bool MetadataKeyHasBeenSet() const { return m_metadataKeyHasBeenSet; }
75 template<typename MetadataKeyT = Aws::String>
76 void SetMetadataKey(MetadataKeyT&& value) { m_metadataKeyHasBeenSet = true; m_metadataKey = std::forward<MetadataKeyT>(value); }
77 template<typename MetadataKeyT = Aws::String>
78 S3Destination& WithMetadataKey(MetadataKeyT&& value) { SetMetadataKey(std::forward<MetadataKeyT>(value)); return *this;}
80 private:
81
82 Aws::String m_bucket;
83 bool m_bucketHasBeenSet = false;
84
85 Aws::String m_key;
86 bool m_keyHasBeenSet = false;
87
88 Aws::String m_metadataKey;
89 bool m_metadataKeyHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace ComputeOptimizer
94} // namespace Aws
AWS_COMPUTEOPTIMIZER_API S3Destination()=default
S3Destination & WithKey(KeyT &&value)
AWS_COMPUTEOPTIMIZER_API S3Destination(Aws::Utils::Json::JsonView jsonValue)
S3Destination & WithBucket(BucketT &&value)
const Aws::String & GetMetadataKey() const
const Aws::String & GetBucket() const
AWS_COMPUTEOPTIMIZER_API S3Destination & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMetadataKey(MetadataKeyT &&value)
S3Destination & WithMetadataKey(MetadataKeyT &&value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue