AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
AppGitHubSourceRequest.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_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 AmplifyGen3 {
20namespace Model {
21
29 public:
30 AWS_AMPLIFYGEN3_API AppGitHubSourceRequest() = default;
31 AWS_AMPLIFYGEN3_API AppGitHubSourceRequest(Aws::Utils::Json::JsonView jsonValue);
33 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetRepositoryUrl() const { return m_repositoryUrl; }
40 inline bool RepositoryUrlHasBeenSet() const { return m_repositoryUrlHasBeenSet; }
41 template <typename RepositoryUrlT = Aws::String>
42 void SetRepositoryUrl(RepositoryUrlT&& value) {
43 m_repositoryUrlHasBeenSet = true;
44 m_repositoryUrl = std::forward<RepositoryUrlT>(value);
45 }
46 template <typename RepositoryUrlT = Aws::String>
47 AppGitHubSourceRequest& WithRepositoryUrl(RepositoryUrlT&& value) {
48 SetRepositoryUrl(std::forward<RepositoryUrlT>(value));
49 return *this;
50 }
52
54
60 inline const Aws::String& GetProductionBranch() const { return m_productionBranch; }
61 inline bool ProductionBranchHasBeenSet() const { return m_productionBranchHasBeenSet; }
62 template <typename ProductionBranchT = Aws::String>
63 void SetProductionBranch(ProductionBranchT&& value) {
64 m_productionBranchHasBeenSet = true;
65 m_productionBranch = std::forward<ProductionBranchT>(value);
66 }
67 template <typename ProductionBranchT = Aws::String>
68 AppGitHubSourceRequest& WithProductionBranch(ProductionBranchT&& value) {
69 SetProductionBranch(std::forward<ProductionBranchT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_repositoryUrl;
75
76 Aws::String m_productionBranch;
77 bool m_repositoryUrlHasBeenSet = false;
78 bool m_productionBranchHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace AmplifyGen3
83} // namespace Aws
AWS_AMPLIFYGEN3_API AppGitHubSourceRequest()=default
AppGitHubSourceRequest & WithProductionBranch(ProductionBranchT &&value)
AWS_AMPLIFYGEN3_API AppGitHubSourceRequest(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYGEN3_API AppGitHubSourceRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
AppGitHubSourceRequest & WithRepositoryUrl(RepositoryUrlT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue