AWS SDK for C++  1.9.108
AWS SDK for C++
S3ArtifactLocation.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& GetBucketName() const{ return m_bucketName; }
45 
49  inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
50 
54  inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
55 
59  inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
60 
64  inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
65 
69  inline S3ArtifactLocation& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
70 
74  inline S3ArtifactLocation& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
75 
79  inline S3ArtifactLocation& WithBucketName(const char* value) { SetBucketName(value); return *this;}
80 
81 
86  inline const Aws::String& GetObjectKey() const{ return m_objectKey; }
87 
92  inline bool ObjectKeyHasBeenSet() const { return m_objectKeyHasBeenSet; }
93 
98  inline void SetObjectKey(const Aws::String& value) { m_objectKeyHasBeenSet = true; m_objectKey = value; }
99 
104  inline void SetObjectKey(Aws::String&& value) { m_objectKeyHasBeenSet = true; m_objectKey = std::move(value); }
105 
110  inline void SetObjectKey(const char* value) { m_objectKeyHasBeenSet = true; m_objectKey.assign(value); }
111 
116  inline S3ArtifactLocation& WithObjectKey(const Aws::String& value) { SetObjectKey(value); return *this;}
117 
122  inline S3ArtifactLocation& WithObjectKey(Aws::String&& value) { SetObjectKey(std::move(value)); return *this;}
123 
128  inline S3ArtifactLocation& WithObjectKey(const char* value) { SetObjectKey(value); return *this;}
129 
130  private:
131 
132  Aws::String m_bucketName;
133  bool m_bucketNameHasBeenSet;
134 
135  Aws::String m_objectKey;
136  bool m_objectKeyHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace CodePipeline
141 } // namespace Aws
Aws::CodePipeline::Model::S3ArtifactLocation::S3ArtifactLocation
S3ArtifactLocation(Aws::Utils::Json::JsonView jsonValue)
Aws::CodePipeline::Model::S3ArtifactLocation::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodePipeline::Model::S3ArtifactLocation::ObjectKeyHasBeenSet
bool ObjectKeyHasBeenSet() const
Definition: S3ArtifactLocation.h:92
Aws::CodePipeline::Model::S3ArtifactLocation::WithBucketName
S3ArtifactLocation & WithBucketName(const Aws::String &value)
Definition: S3ArtifactLocation.h:69
AWS_CODEPIPELINE_API
#define AWS_CODEPIPELINE_API
Definition: CodePipeline_EXPORTS.h:28
Aws::CodePipeline::Model::S3ArtifactLocation::WithBucketName
S3ArtifactLocation & WithBucketName(const char *value)
Definition: S3ArtifactLocation.h:79
Aws::CodePipeline::Model::S3ArtifactLocation::WithBucketName
S3ArtifactLocation & WithBucketName(Aws::String &&value)
Definition: S3ArtifactLocation.h:74
Aws::CodePipeline::Model::S3ArtifactLocation
Definition: S3ArtifactLocation.h:33
Aws::CodePipeline::Model::S3ArtifactLocation::S3ArtifactLocation
S3ArtifactLocation()
Aws::CodePipeline::Model::S3ArtifactLocation::SetBucketName
void SetBucketName(Aws::String &&value)
Definition: S3ArtifactLocation.h:59
Aws::CodePipeline::Model::S3ArtifactLocation::SetObjectKey
void SetObjectKey(const char *value)
Definition: S3ArtifactLocation.h:110
Aws::CodePipeline::Model::S3ArtifactLocation::WithObjectKey
S3ArtifactLocation & WithObjectKey(const char *value)
Definition: S3ArtifactLocation.h:128
CodePipeline_EXPORTS.h
Aws::CodePipeline::Model::S3ArtifactLocation::SetBucketName
void SetBucketName(const char *value)
Definition: S3ArtifactLocation.h:64
Aws::CodePipeline::Model::S3ArtifactLocation::GetBucketName
const Aws::String & GetBucketName() const
Definition: S3ArtifactLocation.h:44
Aws::CodePipeline::Model::S3ArtifactLocation::SetBucketName
void SetBucketName(const Aws::String &value)
Definition: S3ArtifactLocation.h:54
Aws::CodePipeline::Model::S3ArtifactLocation::SetObjectKey
void SetObjectKey(const Aws::String &value)
Definition: S3ArtifactLocation.h:98
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::CodePipeline::Model::S3ArtifactLocation::WithObjectKey
S3ArtifactLocation & WithObjectKey(const Aws::String &value)
Definition: S3ArtifactLocation.h:116
Aws::CodePipeline::Model::S3ArtifactLocation::WithObjectKey
S3ArtifactLocation & WithObjectKey(Aws::String &&value)
Definition: S3ArtifactLocation.h:122
Aws::CodePipeline::Model::S3ArtifactLocation::BucketNameHasBeenSet
bool BucketNameHasBeenSet() const
Definition: S3ArtifactLocation.h:49
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::S3ArtifactLocation::SetObjectKey
void SetObjectKey(Aws::String &&value)
Definition: S3ArtifactLocation.h:104
Aws::CodePipeline::Model::S3ArtifactLocation::operator=
S3ArtifactLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodePipeline::Model::S3ArtifactLocation::GetObjectKey
const Aws::String & GetObjectKey() const
Definition: S3ArtifactLocation.h:86