AWS SDK for C++

AWS SDK for C++ Version 1.11.935

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 <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace CodeDeploy {
20namespace Model {
21
29 public:
30 AWS_CODEDEPLOY_API GitHubLocation() = default;
31 AWS_CODEDEPLOY_API GitHubLocation(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_CODEDEPLOY_API GitHubLocation& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CODEDEPLOY_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) 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=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CODEDEPLOY_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
GitHubLocation & WithRepository(RepositoryT &&value)
GitHubLocation & WithCommitId(CommitIdT &&value)
AWS_CODEDEPLOY_API GitHubLocation(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
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