AWS SDK for C++  1.9.108
AWS SDK for C++
S3Location.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 CodePipeline
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 S3Location& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
70 
74  inline S3Location& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
75 
79  inline S3Location& 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 S3Location& WithKey(const Aws::String& value) { SetKey(value); return *this;}
111 
115  inline S3Location& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
116 
120  inline S3Location& 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 CodePipeline
133 } // namespace Aws
Aws::CodePipeline::Model::S3Location
Definition: S3Location.h:33
AWS_CODEPIPELINE_API
#define AWS_CODEPIPELINE_API
Definition: CodePipeline_EXPORTS.h:28
Aws::CodePipeline::Model::S3Location::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: S3Location.h:90
Aws::CodePipeline::Model::S3Location::SetKey
void SetKey(const char *value)
Definition: S3Location.h:105
Aws::CodePipeline::Model::S3Location::WithBucket
S3Location & WithBucket(Aws::String &&value)
Definition: S3Location.h:74
Aws::CodePipeline::Model::S3Location::SetBucket
void SetBucket(const Aws::String &value)
Definition: S3Location.h:54
Aws::CodePipeline::Model::S3Location::WithBucket
S3Location & WithBucket(const char *value)
Definition: S3Location.h:79
Aws::CodePipeline::Model::S3Location::SetBucket
void SetBucket(Aws::String &&value)
Definition: S3Location.h:59
Aws::CodePipeline::Model::S3Location::S3Location
S3Location()
CodePipeline_EXPORTS.h
Aws::CodePipeline::Model::S3Location::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodePipeline::Model::S3Location::GetBucket
const Aws::String & GetBucket() const
Definition: S3Location.h:44
Aws::CodePipeline::Model::S3Location::WithKey
S3Location & WithKey(Aws::String &&value)
Definition: S3Location.h:115
Aws::CodePipeline::Model::S3Location::S3Location
S3Location(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::CodePipeline::Model::S3Location::SetBucket
void SetBucket(const char *value)
Definition: S3Location.h:64
Aws::CodePipeline::Model::S3Location::SetKey
void SetKey(Aws::String &&value)
Definition: S3Location.h:100
Aws::CodePipeline::Model::S3Location::WithBucket
S3Location & WithBucket(const Aws::String &value)
Definition: S3Location.h:69
Aws::CodePipeline::Model::S3Location::WithKey
S3Location & WithKey(const char *value)
Definition: S3Location.h:120
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodePipeline::Model::S3Location::WithKey
S3Location & WithKey(const Aws::String &value)
Definition: S3Location.h:110
Aws::CodePipeline::Model::S3Location::operator=
S3Location & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodePipeline::Model::S3Location::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: S3Location.h:49
Aws::CodePipeline::Model::S3Location::GetKey
const Aws::String & GetKey() const
Definition: S3Location.h:85
Aws::CodePipeline::Model::S3Location::SetKey
void SetKey(const Aws::String &value)
Definition: S3Location.h:95