AWS SDK for C++  0.12.9
AWS SDK for C++
RepositoryMetadata.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace CodeCommit
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  RepositoryMetadata& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetAccountId() const{ return m_accountId; }
49 
53  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
54 
58  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
59 
63  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
64 
68  inline RepositoryMetadata& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
69 
73  inline RepositoryMetadata& WithAccountId(Aws::String&& value) { SetAccountId(value); return *this;}
74 
78  inline RepositoryMetadata& WithAccountId(const char* value) { SetAccountId(value); return *this;}
79 
83  inline const Aws::String& GetRepositoryId() const{ return m_repositoryId; }
84 
88  inline void SetRepositoryId(const Aws::String& value) { m_repositoryIdHasBeenSet = true; m_repositoryId = value; }
89 
93  inline void SetRepositoryId(Aws::String&& value) { m_repositoryIdHasBeenSet = true; m_repositoryId = value; }
94 
98  inline void SetRepositoryId(const char* value) { m_repositoryIdHasBeenSet = true; m_repositoryId.assign(value); }
99 
103  inline RepositoryMetadata& WithRepositoryId(const Aws::String& value) { SetRepositoryId(value); return *this;}
104 
108  inline RepositoryMetadata& WithRepositoryId(Aws::String&& value) { SetRepositoryId(value); return *this;}
109 
113  inline RepositoryMetadata& WithRepositoryId(const char* value) { SetRepositoryId(value); return *this;}
114 
118  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
119 
123  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
124 
128  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
129 
133  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
134 
138  inline RepositoryMetadata& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
139 
143  inline RepositoryMetadata& WithRepositoryName(Aws::String&& value) { SetRepositoryName(value); return *this;}
144 
148  inline RepositoryMetadata& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
149 
153  inline const Aws::String& GetRepositoryDescription() const{ return m_repositoryDescription; }
154 
158  inline void SetRepositoryDescription(const Aws::String& value) { m_repositoryDescriptionHasBeenSet = true; m_repositoryDescription = value; }
159 
163  inline void SetRepositoryDescription(Aws::String&& value) { m_repositoryDescriptionHasBeenSet = true; m_repositoryDescription = value; }
164 
168  inline void SetRepositoryDescription(const char* value) { m_repositoryDescriptionHasBeenSet = true; m_repositoryDescription.assign(value); }
169 
173  inline RepositoryMetadata& WithRepositoryDescription(const Aws::String& value) { SetRepositoryDescription(value); return *this;}
174 
178  inline RepositoryMetadata& WithRepositoryDescription(Aws::String&& value) { SetRepositoryDescription(value); return *this;}
179 
183  inline RepositoryMetadata& WithRepositoryDescription(const char* value) { SetRepositoryDescription(value); return *this;}
184 
188  inline const Aws::String& GetDefaultBranch() const{ return m_defaultBranch; }
189 
193  inline void SetDefaultBranch(const Aws::String& value) { m_defaultBranchHasBeenSet = true; m_defaultBranch = value; }
194 
198  inline void SetDefaultBranch(Aws::String&& value) { m_defaultBranchHasBeenSet = true; m_defaultBranch = value; }
199 
203  inline void SetDefaultBranch(const char* value) { m_defaultBranchHasBeenSet = true; m_defaultBranch.assign(value); }
204 
208  inline RepositoryMetadata& WithDefaultBranch(const Aws::String& value) { SetDefaultBranch(value); return *this;}
209 
213  inline RepositoryMetadata& WithDefaultBranch(Aws::String&& value) { SetDefaultBranch(value); return *this;}
214 
218  inline RepositoryMetadata& WithDefaultBranch(const char* value) { SetDefaultBranch(value); return *this;}
219 
223  inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
224 
228  inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
229 
233  inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
234 
238  inline RepositoryMetadata& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;}
239 
243  inline RepositoryMetadata& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(value); return *this;}
244 
248  inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
249 
253  inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
254 
258  inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
259 
263  inline RepositoryMetadata& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
264 
268  inline RepositoryMetadata& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(value); return *this;}
269 
273  inline const Aws::String& GetCloneUrlHttp() const{ return m_cloneUrlHttp; }
274 
278  inline void SetCloneUrlHttp(const Aws::String& value) { m_cloneUrlHttpHasBeenSet = true; m_cloneUrlHttp = value; }
279 
283  inline void SetCloneUrlHttp(Aws::String&& value) { m_cloneUrlHttpHasBeenSet = true; m_cloneUrlHttp = value; }
284 
288  inline void SetCloneUrlHttp(const char* value) { m_cloneUrlHttpHasBeenSet = true; m_cloneUrlHttp.assign(value); }
289 
293  inline RepositoryMetadata& WithCloneUrlHttp(const Aws::String& value) { SetCloneUrlHttp(value); return *this;}
294 
298  inline RepositoryMetadata& WithCloneUrlHttp(Aws::String&& value) { SetCloneUrlHttp(value); return *this;}
299 
303  inline RepositoryMetadata& WithCloneUrlHttp(const char* value) { SetCloneUrlHttp(value); return *this;}
304 
308  inline const Aws::String& GetCloneUrlSsh() const{ return m_cloneUrlSsh; }
309 
313  inline void SetCloneUrlSsh(const Aws::String& value) { m_cloneUrlSshHasBeenSet = true; m_cloneUrlSsh = value; }
314 
318  inline void SetCloneUrlSsh(Aws::String&& value) { m_cloneUrlSshHasBeenSet = true; m_cloneUrlSsh = value; }
319 
323  inline void SetCloneUrlSsh(const char* value) { m_cloneUrlSshHasBeenSet = true; m_cloneUrlSsh.assign(value); }
324 
328  inline RepositoryMetadata& WithCloneUrlSsh(const Aws::String& value) { SetCloneUrlSsh(value); return *this;}
329 
333  inline RepositoryMetadata& WithCloneUrlSsh(Aws::String&& value) { SetCloneUrlSsh(value); return *this;}
334 
338  inline RepositoryMetadata& WithCloneUrlSsh(const char* value) { SetCloneUrlSsh(value); return *this;}
339 
343  inline const Aws::String& GetArn() const{ return m_arn; }
344 
348  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
349 
353  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = value; }
354 
358  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
359 
363  inline RepositoryMetadata& WithArn(const Aws::String& value) { SetArn(value); return *this;}
364 
368  inline RepositoryMetadata& WithArn(Aws::String&& value) { SetArn(value); return *this;}
369 
373  inline RepositoryMetadata& WithArn(const char* value) { SetArn(value); return *this;}
374 
375  private:
376  Aws::String m_accountId;
377  bool m_accountIdHasBeenSet;
378  Aws::String m_repositoryId;
379  bool m_repositoryIdHasBeenSet;
380  Aws::String m_repositoryName;
381  bool m_repositoryNameHasBeenSet;
382  Aws::String m_repositoryDescription;
383  bool m_repositoryDescriptionHasBeenSet;
384  Aws::String m_defaultBranch;
385  bool m_defaultBranchHasBeenSet;
386  Aws::Utils::DateTime m_lastModifiedDate;
387  bool m_lastModifiedDateHasBeenSet;
388  Aws::Utils::DateTime m_creationDate;
389  bool m_creationDateHasBeenSet;
390  Aws::String m_cloneUrlHttp;
391  bool m_cloneUrlHttpHasBeenSet;
392  Aws::String m_cloneUrlSsh;
393  bool m_cloneUrlSshHasBeenSet;
394  Aws::String m_arn;
395  bool m_arnHasBeenSet;
396  };
397 
398 } // namespace Model
399 } // namespace CodeCommit
400 } // namespace Aws
void SetRepositoryId(const Aws::String &value)
void SetRepositoryDescription(Aws::String &&value)
RepositoryMetadata & WithRepositoryId(Aws::String &&value)
RepositoryMetadata & WithCloneUrlSsh(const Aws::String &value)
RepositoryMetadata & WithLastModifiedDate(const Aws::Utils::DateTime &value)
RepositoryMetadata & WithDefaultBranch(const char *value)
RepositoryMetadata & WithCloneUrlHttp(const Aws::String &value)
RepositoryMetadata & WithAccountId(const char *value)
RepositoryMetadata & WithRepositoryDescription(const char *value)
void SetCreationDate(const Aws::Utils::DateTime &value)
void SetCreationDate(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetCreationDate() const
RepositoryMetadata & WithAccountId(const Aws::String &value)
RepositoryMetadata & WithCreationDate(Aws::Utils::DateTime &&value)
RepositoryMetadata & WithCreationDate(const Aws::Utils::DateTime &value)
RepositoryMetadata & WithArn(const char *value)
void SetRepositoryName(const Aws::String &value)
RepositoryMetadata & WithDefaultBranch(const Aws::String &value)
const Aws::String & GetCloneUrlSsh() const
RepositoryMetadata & WithRepositoryName(Aws::String &&value)
const Aws::String & GetRepositoryId() const
RepositoryMetadata & WithAccountId(Aws::String &&value)
void SetAccountId(const Aws::String &value)
RepositoryMetadata & WithRepositoryId(const Aws::String &value)
RepositoryMetadata & WithRepositoryName(const Aws::String &value)
#define AWS_CODECOMMIT_API
RepositoryMetadata & WithRepositoryDescription(const Aws::String &value)
void SetLastModifiedDate(Aws::Utils::DateTime &&value)
void SetCloneUrlHttp(const Aws::String &value)
RepositoryMetadata & WithArn(Aws::String &&value)
RepositoryMetadata & WithRepositoryName(const char *value)
const Aws::String & GetRepositoryName() const
RepositoryMetadata & WithCloneUrlSsh(const char *value)
RepositoryMetadata & WithCloneUrlSsh(Aws::String &&value)
RepositoryMetadata & WithRepositoryId(const char *value)
void SetRepositoryDescription(const Aws::String &value)
RepositoryMetadata & WithLastModifiedDate(Aws::Utils::DateTime &&value)
void SetLastModifiedDate(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RepositoryMetadata & WithCloneUrlHttp(Aws::String &&value)
RepositoryMetadata & WithRepositoryDescription(Aws::String &&value)
const Aws::String & GetAccountId() const
const Aws::String & GetRepositoryDescription() const
void SetDefaultBranch(const Aws::String &value)
const Aws::String & GetCloneUrlHttp() const
void SetCloneUrlSsh(const Aws::String &value)
RepositoryMetadata & WithCloneUrlHttp(const char *value)
RepositoryMetadata & WithArn(const Aws::String &value)
RepositoryMetadata & WithDefaultBranch(Aws::String &&value)
JSON (JavaScript Object Notation).
const Aws::Utils::DateTime & GetLastModifiedDate() const
const Aws::String & GetDefaultBranch() const