AWS SDK for C++  1.9.125
AWS SDK for C++
S3Destination.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace IoT
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetBucket() const{ return m_bucket; }
45 
49  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
50 
54  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
55 
59  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
60 
64  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
65 
69  inline S3Destination& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
70 
74  inline S3Destination& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
75 
79  inline S3Destination& WithBucket(const char* value) { SetBucket(value); return *this;}
80 
81 
85  inline const Aws::String& GetPrefix() const{ return m_prefix; }
86 
90  inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
91 
95  inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
96 
100  inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
101 
105  inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
106 
110  inline S3Destination& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
111 
115  inline S3Destination& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
116 
120  inline S3Destination& WithPrefix(const char* value) { SetPrefix(value); return *this;}
121 
122  private:
123 
124  Aws::String m_bucket;
125  bool m_bucketHasBeenSet;
126 
127  Aws::String m_prefix;
128  bool m_prefixHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace IoT
133 } // namespace Aws
Aws::IoT::Model::S3Destination::SetPrefix
void SetPrefix(Aws::String &&value)
Definition: S3Destination.h:100
Aws::IoT::Model::S3Destination::S3Destination
S3Destination()
Aws::IoT::Model::S3Destination::WithBucket
S3Destination & WithBucket(const Aws::String &value)
Definition: S3Destination.h:69
Aws::IoT::Model::S3Destination::SetPrefix
void SetPrefix(const char *value)
Definition: S3Destination.h:105
Aws::IoT::Model::S3Destination::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: S3Destination.h:49
Aws::IoT::Model::S3Destination::SetBucket
void SetBucket(const char *value)
Definition: S3Destination.h:64
Aws::IoT::Model::S3Destination::WithPrefix
S3Destination & WithPrefix(Aws::String &&value)
Definition: S3Destination.h:115
Aws::IoT::Model::S3Destination::SetBucket
void SetBucket(const Aws::String &value)
Definition: S3Destination.h:54
Aws::IoT::Model::S3Destination::WithPrefix
S3Destination & WithPrefix(const Aws::String &value)
Definition: S3Destination.h:110
Aws::IoT::Model::S3Destination::GetPrefix
const Aws::String & GetPrefix() const
Definition: S3Destination.h:85
Aws::IoT::Model::S3Destination::operator=
S3Destination & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::S3Destination::WithPrefix
S3Destination & WithPrefix(const char *value)
Definition: S3Destination.h:120
Aws::IoT::Model::S3Destination
Definition: S3Destination.h:33
Aws::IoT::Model::S3Destination::SetBucket
void SetBucket(Aws::String &&value)
Definition: S3Destination.h:59
Aws::IoT::Model::S3Destination::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::S3Destination::GetBucket
const Aws::String & GetBucket() const
Definition: S3Destination.h:44
Aws::IoT::Model::S3Destination::WithBucket
S3Destination & WithBucket(Aws::String &&value)
Definition: S3Destination.h:74
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::IoT::Model::S3Destination::WithBucket
S3Destination & WithBucket(const char *value)
Definition: S3Destination.h:79
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::S3Destination::SetPrefix
void SetPrefix(const Aws::String &value)
Definition: S3Destination.h:95
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::S3Destination::PrefixHasBeenSet
bool PrefixHasBeenSet() const
Definition: S3Destination.h:90
Aws::IoT::Model::S3Destination::S3Destination
S3Destination(Aws::Utils::Json::JsonView jsonValue)
IoT_EXPORTS.h