AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
GitHubLocation.h
Go to the documentation of this file.
1
6#pragma once
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeDeploy
22{
23namespace Model
24{
25
33 {
34 public:
39
40
46 inline const Aws::String& GetRepository() const{ return m_repository; }
47
53 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
54
60 inline void SetRepository(const Aws::String& value) { m_repositoryHasBeenSet = true; m_repository = value; }
61
67 inline void SetRepository(Aws::String&& value) { m_repositoryHasBeenSet = true; m_repository = std::move(value); }
68
74 inline void SetRepository(const char* value) { m_repositoryHasBeenSet = true; m_repository.assign(value); }
75
81 inline GitHubLocation& WithRepository(const Aws::String& value) { SetRepository(value); return *this;}
82
88 inline GitHubLocation& WithRepository(Aws::String&& value) { SetRepository(std::move(value)); return *this;}
89
95 inline GitHubLocation& WithRepository(const char* value) { SetRepository(value); return *this;}
96
97
102 inline const Aws::String& GetCommitId() const{ return m_commitId; }
103
108 inline bool CommitIdHasBeenSet() const { return m_commitIdHasBeenSet; }
109
114 inline void SetCommitId(const Aws::String& value) { m_commitIdHasBeenSet = true; m_commitId = value; }
115
120 inline void SetCommitId(Aws::String&& value) { m_commitIdHasBeenSet = true; m_commitId = std::move(value); }
121
126 inline void SetCommitId(const char* value) { m_commitIdHasBeenSet = true; m_commitId.assign(value); }
127
132 inline GitHubLocation& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;}
133
138 inline GitHubLocation& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;}
139
144 inline GitHubLocation& WithCommitId(const char* value) { SetCommitId(value); return *this;}
145
146 private:
147
148 Aws::String m_repository;
149 bool m_repositoryHasBeenSet = false;
150
151 Aws::String m_commitId;
152 bool m_commitIdHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace CodeDeploy
157} // namespace Aws
#define AWS_CODEDEPLOY_API
AWS_CODEDEPLOY_API GitHubLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
GitHubLocation & WithRepository(Aws::String &&value)
GitHubLocation & WithRepository(const char *value)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRepository(const char *value)
GitHubLocation & WithCommitId(const char *value)
GitHubLocation & WithCommitId(const Aws::String &value)
void SetRepository(const Aws::String &value)
GitHubLocation & WithCommitId(Aws::String &&value)
AWS_CODEDEPLOY_API GitHubLocation(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCommitId() const
void SetCommitId(Aws::String &&value)
void SetCommitId(const Aws::String &value)
const Aws::String & GetRepository() const
void SetRepository(Aws::String &&value)
GitHubLocation & WithRepository(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String