AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
50 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
51 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
52 inline S3Destination& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
53 inline S3Destination& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
54 inline S3Destination& WithBucket(const char* value) { SetBucket(value); return *this;}
56
58
62 inline const Aws::String& GetKey() const{ return m_key; }
63 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
64 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
65 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
66 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
67 inline S3Destination& WithKey(const Aws::String& value) { SetKey(value); return *this;}
68 inline S3Destination& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
69 inline S3Destination& WithKey(const char* value) { SetKey(value); return *this;}
71
73
77 inline const Aws::String& GetMetadataKey() const{ return m_metadataKey; }
78 inline bool MetadataKeyHasBeenSet() const { return m_metadataKeyHasBeenSet; }
79 inline void SetMetadataKey(const Aws::String& value) { m_metadataKeyHasBeenSet = true; m_metadataKey = value; }
80 inline void SetMetadataKey(Aws::String&& value) { m_metadataKeyHasBeenSet = true; m_metadataKey = std::move(value); }
81 inline void SetMetadataKey(const char* value) { m_metadataKeyHasBeenSet = true; m_metadataKey.assign(value); }
82 inline S3Destination& WithMetadataKey(const Aws::String& value) { SetMetadataKey(value); return *this;}
83 inline S3Destination& WithMetadataKey(Aws::String&& value) { SetMetadataKey(std::move(value)); return *this;}
84 inline S3Destination& WithMetadataKey(const char* value) { SetMetadataKey(value); return *this;}
86 private:
87
88 Aws::String m_bucket;
89 bool m_bucketHasBeenSet = false;
90
91 Aws::String m_key;
92 bool m_keyHasBeenSet = false;
93
94 Aws::String m_metadataKey;
95 bool m_metadataKeyHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace ComputeOptimizer
100} // namespace Aws
S3Destination & WithKey(Aws::String &&value)
S3Destination & WithMetadataKey(const Aws::String &value)
AWS_COMPUTEOPTIMIZER_API S3Destination()
S3Destination & WithBucket(const Aws::String &value)
AWS_COMPUTEOPTIMIZER_API S3Destination(Aws::Utils::Json::JsonView jsonValue)
void SetKey(const Aws::String &value)
S3Destination & WithMetadataKey(Aws::String &&value)
S3Destination & WithKey(const Aws::String &value)
S3Destination & WithKey(const char *value)
const Aws::String & GetMetadataKey() const
const Aws::String & GetBucket() const
S3Destination & WithMetadataKey(const char *value)
S3Destination & WithBucket(const char *value)
void SetMetadataKey(const Aws::String &value)
S3Destination & WithBucket(Aws::String &&value)
AWS_COMPUTEOPTIMIZER_API S3Destination & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetBucket(const Aws::String &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