AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
S3DestinationConfig.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ComputeOptimizer {
20namespace Model {
21
38 public:
39 AWS_COMPUTEOPTIMIZER_API S3DestinationConfig() = default;
40 AWS_COMPUTEOPTIMIZER_API S3DestinationConfig(Aws::Utils::Json::JsonView jsonValue);
41 AWS_COMPUTEOPTIMIZER_API S3DestinationConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
49 inline const Aws::String& GetBucket() const { return m_bucket; }
50 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
51 template <typename BucketT = Aws::String>
52 void SetBucket(BucketT&& value) {
53 m_bucketHasBeenSet = true;
54 m_bucket = std::forward<BucketT>(value);
55 }
56 template <typename BucketT = Aws::String>
57 S3DestinationConfig& WithBucket(BucketT&& value) {
58 SetBucket(std::forward<BucketT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetKeyPrefix() const { return m_keyPrefix; }
68 inline bool KeyPrefixHasBeenSet() const { return m_keyPrefixHasBeenSet; }
69 template <typename KeyPrefixT = Aws::String>
70 void SetKeyPrefix(KeyPrefixT&& value) {
71 m_keyPrefixHasBeenSet = true;
72 m_keyPrefix = std::forward<KeyPrefixT>(value);
73 }
74 template <typename KeyPrefixT = Aws::String>
75 S3DestinationConfig& WithKeyPrefix(KeyPrefixT&& value) {
76 SetKeyPrefix(std::forward<KeyPrefixT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_bucket;
82
83 Aws::String m_keyPrefix;
84 bool m_bucketHasBeenSet = false;
85 bool m_keyPrefixHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace ComputeOptimizer
90} // namespace Aws
AWS_COMPUTEOPTIMIZER_API S3DestinationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPUTEOPTIMIZER_API S3DestinationConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZER_API S3DestinationConfig()=default
S3DestinationConfig & WithKeyPrefix(KeyPrefixT &&value)
S3DestinationConfig & WithBucket(BucketT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue