AWS SDK for C++  1.9.2
AWS SDK for C++
S3Path.h
Go to the documentation of this file.
1 
6 #pragma once
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 kendra
22 {
23 namespace Model
24 {
25 
33  {
34  public:
35  S3Path();
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 S3Path& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
70 
74  inline S3Path& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
75 
79  inline S3Path& WithBucket(const char* value) { SetBucket(value); return *this;}
80 
81 
85  inline const Aws::String& GetKey() const{ return m_key; }
86 
90  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
91 
95  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
96 
100  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
101 
105  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
106 
110  inline S3Path& WithKey(const Aws::String& value) { SetKey(value); return *this;}
111 
115  inline S3Path& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
116 
120  inline S3Path& WithKey(const char* value) { SetKey(value); return *this;}
121 
122  private:
123 
124  Aws::String m_bucket;
125  bool m_bucketHasBeenSet;
126 
127  Aws::String m_key;
128  bool m_keyHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace kendra
133 } // namespace Aws
Aws::kendra::Model::S3Path::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::kendra::Model::S3Path::WithKey
S3Path & WithKey(const char *value)
Definition: S3Path.h:120
Aws::kendra::Model::S3Path::WithKey
S3Path & WithKey(const Aws::String &value)
Definition: S3Path.h:110
Aws::kendra::Model::S3Path::SetKey
void SetKey(const Aws::String &value)
Definition: S3Path.h:95
Aws::kendra::Model::S3Path::WithKey
S3Path & WithKey(Aws::String &&value)
Definition: S3Path.h:115
Aws::kendra::Model::S3Path
Definition: S3Path.h:33
Aws::kendra::Model::S3Path::WithBucket
S3Path & WithBucket(Aws::String &&value)
Definition: S3Path.h:74
Aws::kendra::Model::S3Path::GetKey
const Aws::String & GetKey() const
Definition: S3Path.h:85
Kendra_EXPORTS.h
Aws::kendra::Model::S3Path::SetBucket
void SetBucket(const Aws::String &value)
Definition: S3Path.h:54
Aws::kendra::Model::S3Path::SetKey
void SetKey(const char *value)
Definition: S3Path.h:105
Aws::kendra::Model::S3Path::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: S3Path.h:90
Aws::kendra::Model::S3Path::S3Path
S3Path(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::kendra::Model::S3Path::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: S3Path.h:49
Aws::kendra::Model::S3Path::S3Path
S3Path()
Aws::kendra::Model::S3Path::SetKey
void SetKey(Aws::String &&value)
Definition: S3Path.h:100
Aws
Definition: AccessManagementClient.h:15
Aws::kendra::Model::S3Path::operator=
S3Path & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::kendra::Model::S3Path::GetBucket
const Aws::String & GetBucket() const
Definition: S3Path.h:44
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::kendra::Model::S3Path::WithBucket
S3Path & WithBucket(const Aws::String &value)
Definition: S3Path.h:69
AWS_KENDRA_API
#define AWS_KENDRA_API
Definition: Kendra_EXPORTS.h:28
Aws::kendra::Model::S3Path::WithBucket
S3Path & WithBucket(const char *value)
Definition: S3Path.h:79
Aws::kendra::Model::S3Path::SetBucket
void SetBucket(Aws::String &&value)
Definition: S3Path.h:59
Aws::kendra::Model::S3Path::SetBucket
void SetBucket(const char *value)
Definition: S3Path.h:64