AWS SDK for C++  0.14.3
AWS SDK for C++
S3ArtifactLocation.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace CodePipeline
29 {
30 namespace Model
31 {
32 
37  {
38  public:
41  S3ArtifactLocation& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
47  inline const Aws::String& GetBucketName() const{ return m_bucketName; }
48 
52  inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
53 
57  inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
58 
62  inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
63 
67  inline S3ArtifactLocation& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
68 
72  inline S3ArtifactLocation& WithBucketName(Aws::String&& value) { SetBucketName(value); return *this;}
73 
77  inline S3ArtifactLocation& WithBucketName(const char* value) { SetBucketName(value); return *this;}
78 
83  inline const Aws::String& GetObjectKey() const{ return m_objectKey; }
84 
89  inline void SetObjectKey(const Aws::String& value) { m_objectKeyHasBeenSet = true; m_objectKey = value; }
90 
95  inline void SetObjectKey(Aws::String&& value) { m_objectKeyHasBeenSet = true; m_objectKey = value; }
96 
101  inline void SetObjectKey(const char* value) { m_objectKeyHasBeenSet = true; m_objectKey.assign(value); }
102 
107  inline S3ArtifactLocation& WithObjectKey(const Aws::String& value) { SetObjectKey(value); return *this;}
108 
113  inline S3ArtifactLocation& WithObjectKey(Aws::String&& value) { SetObjectKey(value); return *this;}
114 
119  inline S3ArtifactLocation& WithObjectKey(const char* value) { SetObjectKey(value); return *this;}
120 
121  private:
122  Aws::String m_bucketName;
123  bool m_bucketNameHasBeenSet;
124  Aws::String m_objectKey;
125  bool m_objectKeyHasBeenSet;
126  };
127 
128 } // namespace Model
129 } // namespace CodePipeline
130 } // namespace Aws
S3ArtifactLocation & WithObjectKey(const char *value)
S3ArtifactLocation & WithBucketName(const char *value)
S3ArtifactLocation & WithObjectKey(Aws::String &&value)
void SetObjectKey(const Aws::String &value)
#define AWS_CODEPIPELINE_API
S3ArtifactLocation & WithBucketName(Aws::String &&value)
S3ArtifactLocation & WithBucketName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
S3ArtifactLocation & WithObjectKey(const Aws::String &value)
void SetBucketName(const Aws::String &value)
JSON (JavaScript Object Notation).