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/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <aws/codeguru-reviewer/model/CodeArtifacts.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18   class JsonValue;
19   class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace CodeGuruReviewer
23 {
24 namespace Model
25 {
26 
27   /**
28    * <p> Specifies the name of an S3 bucket and a <code>CodeArtifacts</code> object
29    * that contains the S3 object keys for a source code .zip file and for a build
30    * artifacts .zip file that contains .jar or .class files. </p><p><h3>See
31    * Also:</h3>   <a
32    * href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/S3RepositoryDetails">AWS
33    * API Reference</a></p>
34    */
35   class AWS_CODEGURUREVIEWER_API S3RepositoryDetails
36   {
37   public:
38     S3RepositoryDetails();
39     S3RepositoryDetails(Aws::Utils::Json::JsonView jsonValue);
40     S3RepositoryDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
41     Aws::Utils::Json::JsonValue Jsonize() const;
42 
43 
44     /**
45      * <p>The name of the S3 bucket used for associating a new S3 repository. It must
46      * begin with <code>codeguru-reviewer-</code>. </p>
47      */
GetBucketName()48     inline const Aws::String& GetBucketName() const{ return m_bucketName; }
49 
50     /**
51      * <p>The name of the S3 bucket used for associating a new S3 repository. It must
52      * begin with <code>codeguru-reviewer-</code>. </p>
53      */
BucketNameHasBeenSet()54     inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
55 
56     /**
57      * <p>The name of the S3 bucket used for associating a new S3 repository. It must
58      * begin with <code>codeguru-reviewer-</code>. </p>
59      */
SetBucketName(const Aws::String & value)60     inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
61 
62     /**
63      * <p>The name of the S3 bucket used for associating a new S3 repository. It must
64      * begin with <code>codeguru-reviewer-</code>. </p>
65      */
SetBucketName(Aws::String && value)66     inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
67 
68     /**
69      * <p>The name of the S3 bucket used for associating a new S3 repository. It must
70      * begin with <code>codeguru-reviewer-</code>. </p>
71      */
SetBucketName(const char * value)72     inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
73 
74     /**
75      * <p>The name of the S3 bucket used for associating a new S3 repository. It must
76      * begin with <code>codeguru-reviewer-</code>. </p>
77      */
WithBucketName(const Aws::String & value)78     inline S3RepositoryDetails& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
79 
80     /**
81      * <p>The name of the S3 bucket used for associating a new S3 repository. It must
82      * begin with <code>codeguru-reviewer-</code>. </p>
83      */
WithBucketName(Aws::String && value)84     inline S3RepositoryDetails& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
85 
86     /**
87      * <p>The name of the S3 bucket used for associating a new S3 repository. It must
88      * begin with <code>codeguru-reviewer-</code>. </p>
89      */
WithBucketName(const char * value)90     inline S3RepositoryDetails& WithBucketName(const char* value) { SetBucketName(value); return *this;}
91 
92 
93     /**
94      * <p> A <code>CodeArtifacts</code> object. The <code>CodeArtifacts</code> object
95      * includes the S3 object key for a source code .zip file and for a build artifacts
96      * .zip file that contains .jar or .class files. </p>
97      */
GetCodeArtifacts()98     inline const CodeArtifacts& GetCodeArtifacts() const{ return m_codeArtifacts; }
99 
100     /**
101      * <p> A <code>CodeArtifacts</code> object. The <code>CodeArtifacts</code> object
102      * includes the S3 object key for a source code .zip file and for a build artifacts
103      * .zip file that contains .jar or .class files. </p>
104      */
CodeArtifactsHasBeenSet()105     inline bool CodeArtifactsHasBeenSet() const { return m_codeArtifactsHasBeenSet; }
106 
107     /**
108      * <p> A <code>CodeArtifacts</code> object. The <code>CodeArtifacts</code> object
109      * includes the S3 object key for a source code .zip file and for a build artifacts
110      * .zip file that contains .jar or .class files. </p>
111      */
SetCodeArtifacts(const CodeArtifacts & value)112     inline void SetCodeArtifacts(const CodeArtifacts& value) { m_codeArtifactsHasBeenSet = true; m_codeArtifacts = value; }
113 
114     /**
115      * <p> A <code>CodeArtifacts</code> object. The <code>CodeArtifacts</code> object
116      * includes the S3 object key for a source code .zip file and for a build artifacts
117      * .zip file that contains .jar or .class files. </p>
118      */
SetCodeArtifacts(CodeArtifacts && value)119     inline void SetCodeArtifacts(CodeArtifacts&& value) { m_codeArtifactsHasBeenSet = true; m_codeArtifacts = std::move(value); }
120 
121     /**
122      * <p> A <code>CodeArtifacts</code> object. The <code>CodeArtifacts</code> object
123      * includes the S3 object key for a source code .zip file and for a build artifacts
124      * .zip file that contains .jar or .class files. </p>
125      */
WithCodeArtifacts(const CodeArtifacts & value)126     inline S3RepositoryDetails& WithCodeArtifacts(const CodeArtifacts& value) { SetCodeArtifacts(value); return *this;}
127 
128     /**
129      * <p> A <code>CodeArtifacts</code> object. The <code>CodeArtifacts</code> object
130      * includes the S3 object key for a source code .zip file and for a build artifacts
131      * .zip file that contains .jar or .class files. </p>
132      */
WithCodeArtifacts(CodeArtifacts && value)133     inline S3RepositoryDetails& WithCodeArtifacts(CodeArtifacts&& value) { SetCodeArtifacts(std::move(value)); return *this;}
134 
135   private:
136 
137     Aws::String m_bucketName;
138     bool m_bucketNameHasBeenSet;
139 
140     CodeArtifacts m_codeArtifacts;
141     bool m_codeArtifactsHasBeenSet;
142   };
143 
144 } // namespace Model
145 } // namespace CodeGuruReviewer
146 } // namespace Aws
147