AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CodeDeploy {
20namespace Model {
21
29 public:
30 AWS_CODEDEPLOY_API GitHubLocation() = default;
31 AWS_CODEDEPLOY_API GitHubLocation(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CODEDEPLOY_API GitHubLocation& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline const Aws::String& GetRepository() const { return m_repository; }
42 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
43 template <typename RepositoryT = Aws::String>
44 void SetRepository(RepositoryT&& value) {
45 m_repositoryHasBeenSet = true;
46 m_repository = std::forward<RepositoryT>(value);
47 }
48 template <typename RepositoryT = Aws::String>
49 GitHubLocation& WithRepository(RepositoryT&& value) {
50 SetRepository(std::forward<RepositoryT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetCommitId() const { return m_commitId; }
61 inline bool CommitIdHasBeenSet() const { return m_commitIdHasBeenSet; }
62 template <typename CommitIdT = Aws::String>
63 void SetCommitId(CommitIdT&& value) {
64 m_commitIdHasBeenSet = true;
65 m_commitId = std::forward<CommitIdT>(value);
66 }
67 template <typename CommitIdT = Aws::String>
68 GitHubLocation& WithCommitId(CommitIdT&& value) {
69 SetCommitId(std::forward<CommitIdT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_repository;
75
76 Aws::String m_commitId;
77 bool m_repositoryHasBeenSet = false;
78 bool m_commitIdHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace CodeDeploy
83} // namespace Aws
void SetRepository(RepositoryT &&value)
AWS_CODEDEPLOY_API GitHubLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
GitHubLocation & WithRepository(RepositoryT &&value)
GitHubLocation & WithCommitId(CommitIdT &&value)
AWS_CODEDEPLOY_API GitHubLocation(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCommitId() const
AWS_CODEDEPLOY_API GitHubLocation()=default
const Aws::String & GetRepository() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue