AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename RepositoryT = Aws::String>
50 void SetRepository(RepositoryT&& value) { m_repositoryHasBeenSet = true; m_repository = std::forward<RepositoryT>(value); }
51 template<typename RepositoryT = Aws::String>
52 GitHubLocation& WithRepository(RepositoryT&& value) { SetRepository(std::forward<RepositoryT>(value)); return *this;}
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) { m_commitIdHasBeenSet = true; m_commitId = std::forward<CommitIdT>(value); }
64 template<typename CommitIdT = Aws::String>
65 GitHubLocation& WithCommitId(CommitIdT&& value) { SetCommitId(std::forward<CommitIdT>(value)); return *this;}
67 private:
68
69 Aws::String m_repository;
70 bool m_repositoryHasBeenSet = false;
71
72 Aws::String m_commitId;
73 bool m_commitIdHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace CodeDeploy
78} // 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