AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#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
42 {
43 public:
44 AWS_COMPUTEOPTIMIZER_API S3DestinationConfig() = default;
45 AWS_COMPUTEOPTIMIZER_API S3DestinationConfig(Aws::Utils::Json::JsonView jsonValue);
46 AWS_COMPUTEOPTIMIZER_API S3DestinationConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
55 inline const Aws::String& GetBucket() const { return m_bucket; }
56 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
57 template<typename BucketT = Aws::String>
58 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
59 template<typename BucketT = Aws::String>
60 S3DestinationConfig& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
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) { m_keyPrefixHasBeenSet = true; m_keyPrefix = std::forward<KeyPrefixT>(value); }
71 template<typename KeyPrefixT = Aws::String>
72 S3DestinationConfig& WithKeyPrefix(KeyPrefixT&& value) { SetKeyPrefix(std::forward<KeyPrefixT>(value)); return *this;}
74 private:
75
76 Aws::String m_bucket;
77 bool m_bucketHasBeenSet = false;
78
79 Aws::String m_keyPrefix;
80 bool m_keyPrefixHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace ComputeOptimizer
85} // 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