AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
S3Location.h
1
6#pragma once
7#include <aws/applicationcostprofiler/ApplicationCostProfiler_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 ApplicationCostProfiler {
20namespace Model {
21
30 public:
31 AWS_APPLICATIONCOSTPROFILER_API S3Location() = default;
32 AWS_APPLICATIONCOSTPROFILER_API S3Location(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPLICATIONCOSTPROFILER_API S3Location& 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 S3Location& WithBucket(BucketT&& value) {
49 SetBucket(std::forward<BucketT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetPrefix() const { return m_prefix; }
59 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
60 template <typename PrefixT = Aws::String>
61 void SetPrefix(PrefixT&& value) {
62 m_prefixHasBeenSet = true;
63 m_prefix = std::forward<PrefixT>(value);
64 }
65 template <typename PrefixT = Aws::String>
66 S3Location& WithPrefix(PrefixT&& value) {
67 SetPrefix(std::forward<PrefixT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_bucket;
73
74 Aws::String m_prefix;
75 bool m_bucketHasBeenSet = false;
76 bool m_prefixHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace ApplicationCostProfiler
81} // namespace Aws
AWS_APPLICATIONCOSTPROFILER_API S3Location()=default
S3Location & WithPrefix(PrefixT &&value)
Definition S3Location.h:66
AWS_APPLICATIONCOSTPROFILER_API S3Location(Aws::Utils::Json::JsonView jsonValue)
S3Location & WithBucket(BucketT &&value)
Definition S3Location.h:48
AWS_APPLICATIONCOSTPROFILER_API S3Location & 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