AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GitHubLocation.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
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:
35 AWS_CODEDEPLOY_API GitHubLocation();
36 AWS_CODEDEPLOY_API GitHubLocation(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODEDEPLOY_API GitHubLocation& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline const Aws::String& GetRepository() const{ return m_repository; }
48 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
49 inline void SetRepository(const Aws::String& value) { m_repositoryHasBeenSet = true; m_repository = value; }
50 inline void SetRepository(Aws::String&& value) { m_repositoryHasBeenSet = true; m_repository = std::move(value); }
51 inline void SetRepository(const char* value) { m_repositoryHasBeenSet = true; m_repository.assign(value); }
52 inline GitHubLocation& WithRepository(const Aws::String& value) { SetRepository(value); return *this;}
53 inline GitHubLocation& WithRepository(Aws::String&& value) { SetRepository(std::move(value)); return *this;}
54 inline GitHubLocation& WithRepository(const char* value) { SetRepository(value); return *this;}
56
58
62 inline const Aws::String& GetCommitId() const{ return m_commitId; }
63 inline bool CommitIdHasBeenSet() const { return m_commitIdHasBeenSet; }
64 inline void SetCommitId(const Aws::String& value) { m_commitIdHasBeenSet = true; m_commitId = value; }
65 inline void SetCommitId(Aws::String&& value) { m_commitIdHasBeenSet = true; m_commitId = std::move(value); }
66 inline void SetCommitId(const char* value) { m_commitIdHasBeenSet = true; m_commitId.assign(value); }
67 inline GitHubLocation& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;}
68 inline GitHubLocation& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;}
69 inline GitHubLocation& WithCommitId(const char* value) { SetCommitId(value); return *this;}
71 private:
72
73 Aws::String m_repository;
74 bool m_repositoryHasBeenSet = false;
75
76 Aws::String m_commitId;
77 bool m_commitIdHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace CodeDeploy
82} // namespace Aws
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
Aws::Utils::Json::JsonValue JsonValue