AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
SourceS3Location.h
1
6#pragma once
7#include <aws/applicationcostprofiler/ApplicationCostProfiler_EXPORTS.h>
8#include <aws/applicationcostprofiler/model/S3BucketRegion.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ApplicationCostProfiler {
21namespace Model {
22
30 public:
31 AWS_APPLICATIONCOSTPROFILER_API SourceS3Location() = default;
32 AWS_APPLICATIONCOSTPROFILER_API SourceS3Location(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPLICATIONCOSTPROFILER_API SourceS3Location& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPLICATIONCOSTPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetBucket() const { return m_bucket; }
41 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
42 template <typename BucketT = Aws::String>
43 void SetBucket(BucketT&& value) {
44 m_bucketHasBeenSet = true;
45 m_bucket = std::forward<BucketT>(value);
46 }
47 template <typename BucketT = Aws::String>
48 SourceS3Location& WithBucket(BucketT&& value) {
49 SetBucket(std::forward<BucketT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetKey() const { return m_key; }
59 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
60 template <typename KeyT = Aws::String>
61 void SetKey(KeyT&& value) {
62 m_keyHasBeenSet = true;
63 m_key = std::forward<KeyT>(value);
64 }
65 template <typename KeyT = Aws::String>
66 SourceS3Location& WithKey(KeyT&& value) {
67 SetKey(std::forward<KeyT>(value));
68 return *this;
69 }
71
73
79 inline S3BucketRegion GetRegion() const { return m_region; }
80 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
81 inline void SetRegion(S3BucketRegion value) {
82 m_regionHasBeenSet = true;
83 m_region = value;
84 }
86 SetRegion(value);
87 return *this;
88 }
90 private:
91 Aws::String m_bucket;
92
93 Aws::String m_key;
94
96 bool m_bucketHasBeenSet = false;
97 bool m_keyHasBeenSet = false;
98 bool m_regionHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace ApplicationCostProfiler
103} // namespace Aws
AWS_APPLICATIONCOSTPROFILER_API SourceS3Location()=default
SourceS3Location & WithRegion(S3BucketRegion value)
AWS_APPLICATIONCOSTPROFILER_API SourceS3Location(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONCOSTPROFILER_API SourceS3Location & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONCOSTPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue