AWS SDK for C++  0.12.9
AWS SDK for C++
GitHubLocation.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 CodeDeploy
29 {
30 namespace Model
31 {
32 
37  {
38  public:
41  GitHubLocation& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
49  inline const Aws::String& GetRepository() const{ return m_repository; }
50 
56  inline void SetRepository(const Aws::String& value) { m_repositoryHasBeenSet = true; m_repository = value; }
57 
63  inline void SetRepository(Aws::String&& value) { m_repositoryHasBeenSet = true; m_repository = value; }
64 
70  inline void SetRepository(const char* value) { m_repositoryHasBeenSet = true; m_repository.assign(value); }
71 
77  inline GitHubLocation& WithRepository(const Aws::String& value) { SetRepository(value); return *this;}
78 
84  inline GitHubLocation& WithRepository(Aws::String&& value) { SetRepository(value); return *this;}
85 
91  inline GitHubLocation& WithRepository(const char* value) { SetRepository(value); return *this;}
92 
97  inline const Aws::String& GetCommitId() const{ return m_commitId; }
98 
103  inline void SetCommitId(const Aws::String& value) { m_commitIdHasBeenSet = true; m_commitId = value; }
104 
109  inline void SetCommitId(Aws::String&& value) { m_commitIdHasBeenSet = true; m_commitId = value; }
110 
115  inline void SetCommitId(const char* value) { m_commitIdHasBeenSet = true; m_commitId.assign(value); }
116 
121  inline GitHubLocation& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;}
122 
127  inline GitHubLocation& WithCommitId(Aws::String&& value) { SetCommitId(value); return *this;}
128 
133  inline GitHubLocation& WithCommitId(const char* value) { SetCommitId(value); return *this;}
134 
135  private:
136  Aws::String m_repository;
137  bool m_repositoryHasBeenSet;
138  Aws::String m_commitId;
139  bool m_commitIdHasBeenSet;
140  };
141 
142 } // namespace Model
143 } // namespace CodeDeploy
144 } // namespace Aws
GitHubLocation & WithCommitId(const char *value)
GitHubLocation & WithRepository(const char *value)
void SetRepository(const char *value)
void SetCommitId(Aws::String &&value)
GitHubLocation & WithCommitId(Aws::String &&value)
void SetRepository(Aws::String &&value)
#define AWS_CODEDEPLOY_API
GitHubLocation & WithRepository(Aws::String &&value)
const Aws::String & GetCommitId() const
void SetCommitId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetRepository(const Aws::String &value)
const Aws::String & GetRepository() const
GitHubLocation & WithRepository(const Aws::String &value)
GitHubLocation & WithCommitId(const Aws::String &value)
JSON (JavaScript Object Notation).