AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
58 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
59 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
60 inline S3DestinationConfig& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
61 inline S3DestinationConfig& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
62 inline S3DestinationConfig& WithBucket(const char* value) { SetBucket(value); return *this;}
64
66
69 inline const Aws::String& GetKeyPrefix() const{ return m_keyPrefix; }
70 inline bool KeyPrefixHasBeenSet() const { return m_keyPrefixHasBeenSet; }
71 inline void SetKeyPrefix(const Aws::String& value) { m_keyPrefixHasBeenSet = true; m_keyPrefix = value; }
72 inline void SetKeyPrefix(Aws::String&& value) { m_keyPrefixHasBeenSet = true; m_keyPrefix = std::move(value); }
73 inline void SetKeyPrefix(const char* value) { m_keyPrefixHasBeenSet = true; m_keyPrefix.assign(value); }
74 inline S3DestinationConfig& WithKeyPrefix(const Aws::String& value) { SetKeyPrefix(value); return *this;}
75 inline S3DestinationConfig& WithKeyPrefix(Aws::String&& value) { SetKeyPrefix(std::move(value)); return *this;}
76 inline S3DestinationConfig& WithKeyPrefix(const char* value) { SetKeyPrefix(value); return *this;}
78 private:
79
80 Aws::String m_bucket;
81 bool m_bucketHasBeenSet = false;
82
83 Aws::String m_keyPrefix;
84 bool m_keyPrefixHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace ComputeOptimizer
89} // namespace Aws
S3DestinationConfig & WithKeyPrefix(const char *value)
AWS_COMPUTEOPTIMIZER_API S3DestinationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
S3DestinationConfig & WithBucket(const char *value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPUTEOPTIMIZER_API S3DestinationConfig(Aws::Utils::Json::JsonView jsonValue)
S3DestinationConfig & WithKeyPrefix(Aws::String &&value)
S3DestinationConfig & WithKeyPrefix(const Aws::String &value)
S3DestinationConfig & WithBucket(const Aws::String &value)
S3DestinationConfig & WithBucket(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue