1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/codestar/CodeStar_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.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 CodeStar
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p>The Amazon S3 location where the source code files provided with the project
28    * request are stored.</p><p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/S3Location">AWS
30    * API Reference</a></p>
31    */
32   class AWS_CODESTAR_API S3Location
33   {
34   public:
35     S3Location();
36     S3Location(Aws::Utils::Json::JsonView jsonValue);
37     S3Location& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41     /**
42      * <p>The Amazon S3 bucket name where the source code files provided with the
43      * project request are stored.</p>
44      */
GetBucketName()45     inline const Aws::String& GetBucketName() const{ return m_bucketName; }
46 
47     /**
48      * <p>The Amazon S3 bucket name where the source code files provided with the
49      * project request are stored.</p>
50      */
BucketNameHasBeenSet()51     inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
52 
53     /**
54      * <p>The Amazon S3 bucket name where the source code files provided with the
55      * project request are stored.</p>
56      */
SetBucketName(const Aws::String & value)57     inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
58 
59     /**
60      * <p>The Amazon S3 bucket name where the source code files provided with the
61      * project request are stored.</p>
62      */
SetBucketName(Aws::String && value)63     inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
64 
65     /**
66      * <p>The Amazon S3 bucket name where the source code files provided with the
67      * project request are stored.</p>
68      */
SetBucketName(const char * value)69     inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
70 
71     /**
72      * <p>The Amazon S3 bucket name where the source code files provided with the
73      * project request are stored.</p>
74      */
WithBucketName(const Aws::String & value)75     inline S3Location& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
76 
77     /**
78      * <p>The Amazon S3 bucket name where the source code files provided with the
79      * project request are stored.</p>
80      */
WithBucketName(Aws::String && value)81     inline S3Location& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
82 
83     /**
84      * <p>The Amazon S3 bucket name where the source code files provided with the
85      * project request are stored.</p>
86      */
WithBucketName(const char * value)87     inline S3Location& WithBucketName(const char* value) { SetBucketName(value); return *this;}
88 
89 
90     /**
91      * <p>The Amazon S3 object key where the source code files provided with the
92      * project request are stored.</p>
93      */
GetBucketKey()94     inline const Aws::String& GetBucketKey() const{ return m_bucketKey; }
95 
96     /**
97      * <p>The Amazon S3 object key where the source code files provided with the
98      * project request are stored.</p>
99      */
BucketKeyHasBeenSet()100     inline bool BucketKeyHasBeenSet() const { return m_bucketKeyHasBeenSet; }
101 
102     /**
103      * <p>The Amazon S3 object key where the source code files provided with the
104      * project request are stored.</p>
105      */
SetBucketKey(const Aws::String & value)106     inline void SetBucketKey(const Aws::String& value) { m_bucketKeyHasBeenSet = true; m_bucketKey = value; }
107 
108     /**
109      * <p>The Amazon S3 object key where the source code files provided with the
110      * project request are stored.</p>
111      */
SetBucketKey(Aws::String && value)112     inline void SetBucketKey(Aws::String&& value) { m_bucketKeyHasBeenSet = true; m_bucketKey = std::move(value); }
113 
114     /**
115      * <p>The Amazon S3 object key where the source code files provided with the
116      * project request are stored.</p>
117      */
SetBucketKey(const char * value)118     inline void SetBucketKey(const char* value) { m_bucketKeyHasBeenSet = true; m_bucketKey.assign(value); }
119 
120     /**
121      * <p>The Amazon S3 object key where the source code files provided with the
122      * project request are stored.</p>
123      */
WithBucketKey(const Aws::String & value)124     inline S3Location& WithBucketKey(const Aws::String& value) { SetBucketKey(value); return *this;}
125 
126     /**
127      * <p>The Amazon S3 object key where the source code files provided with the
128      * project request are stored.</p>
129      */
WithBucketKey(Aws::String && value)130     inline S3Location& WithBucketKey(Aws::String&& value) { SetBucketKey(std::move(value)); return *this;}
131 
132     /**
133      * <p>The Amazon S3 object key where the source code files provided with the
134      * project request are stored.</p>
135      */
WithBucketKey(const char * value)136     inline S3Location& WithBucketKey(const char* value) { SetBucketKey(value); return *this;}
137 
138   private:
139 
140     Aws::String m_bucketName;
141     bool m_bucketNameHasBeenSet;
142 
143     Aws::String m_bucketKey;
144     bool m_bucketKeyHasBeenSet;
145   };
146 
147 } // namespace Model
148 } // namespace CodeStar
149 } // namespace Aws
150