AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GitHubConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
9#include <aws/devops-agent/model/GithubRepoOwnerType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DevOpsAgent {
21namespace Model {
22
30 public:
31 AWS_DEVOPSAGENT_API GitHubConfiguration() = default;
32 AWS_DEVOPSAGENT_API GitHubConfiguration(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetRepoName() const { return m_repoName; }
41 inline bool RepoNameHasBeenSet() const { return m_repoNameHasBeenSet; }
42 template <typename RepoNameT = Aws::String>
43 void SetRepoName(RepoNameT&& value) {
44 m_repoNameHasBeenSet = true;
45 m_repoName = std::forward<RepoNameT>(value);
46 }
47 template <typename RepoNameT = Aws::String>
48 GitHubConfiguration& WithRepoName(RepoNameT&& value) {
49 SetRepoName(std::forward<RepoNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetRepoId() const { return m_repoId; }
59 inline bool RepoIdHasBeenSet() const { return m_repoIdHasBeenSet; }
60 template <typename RepoIdT = Aws::String>
61 void SetRepoId(RepoIdT&& value) {
62 m_repoIdHasBeenSet = true;
63 m_repoId = std::forward<RepoIdT>(value);
64 }
65 template <typename RepoIdT = Aws::String>
66 GitHubConfiguration& WithRepoId(RepoIdT&& value) {
67 SetRepoId(std::forward<RepoIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetOwner() const { return m_owner; }
77 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
78 template <typename OwnerT = Aws::String>
79 void SetOwner(OwnerT&& value) {
80 m_ownerHasBeenSet = true;
81 m_owner = std::forward<OwnerT>(value);
82 }
83 template <typename OwnerT = Aws::String>
84 GitHubConfiguration& WithOwner(OwnerT&& value) {
85 SetOwner(std::forward<OwnerT>(value));
86 return *this;
87 }
89
91
92 inline GithubRepoOwnerType GetOwnerType() const { return m_ownerType; }
93 inline bool OwnerTypeHasBeenSet() const { return m_ownerTypeHasBeenSet; }
94 inline void SetOwnerType(GithubRepoOwnerType value) {
95 m_ownerTypeHasBeenSet = true;
96 m_ownerType = value;
97 }
99 SetOwnerType(value);
100 return *this;
101 }
103
105
108 inline const Aws::String& GetInstanceIdentifier() const { return m_instanceIdentifier; }
109 inline bool InstanceIdentifierHasBeenSet() const { return m_instanceIdentifierHasBeenSet; }
110 template <typename InstanceIdentifierT = Aws::String>
111 void SetInstanceIdentifier(InstanceIdentifierT&& value) {
112 m_instanceIdentifierHasBeenSet = true;
113 m_instanceIdentifier = std::forward<InstanceIdentifierT>(value);
114 }
115 template <typename InstanceIdentifierT = Aws::String>
116 GitHubConfiguration& WithInstanceIdentifier(InstanceIdentifierT&& value) {
117 SetInstanceIdentifier(std::forward<InstanceIdentifierT>(value));
118 return *this;
119 }
121 private:
122 Aws::String m_repoName;
123
124 Aws::String m_repoId;
125
126 Aws::String m_owner;
127
129
130 Aws::String m_instanceIdentifier;
131 bool m_repoNameHasBeenSet = false;
132 bool m_repoIdHasBeenSet = false;
133 bool m_ownerHasBeenSet = false;
134 bool m_ownerTypeHasBeenSet = false;
135 bool m_instanceIdentifierHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace DevOpsAgent
140} // namespace Aws
AWS_DEVOPSAGENT_API GitHubConfiguration()=default
void SetOwnerType(GithubRepoOwnerType value)
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
GitHubConfiguration & WithOwner(OwnerT &&value)
GitHubConfiguration & WithOwnerType(GithubRepoOwnerType value)
void SetInstanceIdentifier(InstanceIdentifierT &&value)
GitHubConfiguration & WithRepoName(RepoNameT &&value)
GitHubConfiguration & WithInstanceIdentifier(InstanceIdentifierT &&value)
GitHubConfiguration & WithRepoId(RepoIdT &&value)
AWS_DEVOPSAGENT_API GitHubConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSAGENT_API GitHubConfiguration(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue