AWS SDK for C++

AWS SDK for C++ Version 1.11.922

Loading...
Searching...
No Matches
GitLabConfiguration.h
1
6#pragma once
7#include <aws/continuum/Continuum_EXPORTS.h>
8#include <aws/continuum/model/GitLabTargetType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Continuum {
21namespace Model {
22
30 public:
31 AWS_CONTINUUM_API GitLabConfiguration() = default;
32 AWS_CONTINUUM_API GitLabConfiguration(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetInstanceUrl() const { return m_instanceUrl; }
41 inline bool InstanceUrlHasBeenSet() const { return m_instanceUrlHasBeenSet; }
42 template <typename InstanceUrlT = Aws::String>
43 void SetInstanceUrl(InstanceUrlT&& value) {
44 m_instanceUrlHasBeenSet = true;
45 m_instanceUrl = std::forward<InstanceUrlT>(value);
46 }
47 template <typename InstanceUrlT = Aws::String>
48 GitLabConfiguration& WithInstanceUrl(InstanceUrlT&& value) {
49 SetInstanceUrl(std::forward<InstanceUrlT>(value));
50 return *this;
51 }
53
55
58 inline GitLabTargetType GetTargetType() const { return m_targetType; }
59 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
60 inline void SetTargetType(GitLabTargetType value) {
61 m_targetTypeHasBeenSet = true;
62 m_targetType = value;
63 }
65 SetTargetType(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetTargetPath() const { return m_targetPath; }
75 inline bool TargetPathHasBeenSet() const { return m_targetPathHasBeenSet; }
76 template <typename TargetPathT = Aws::String>
77 void SetTargetPath(TargetPathT&& value) {
78 m_targetPathHasBeenSet = true;
79 m_targetPath = std::forward<TargetPathT>(value);
80 }
81 template <typename TargetPathT = Aws::String>
82 GitLabConfiguration& WithTargetPath(TargetPathT&& value) {
83 SetTargetPath(std::forward<TargetPathT>(value));
84 return *this;
85 }
87
89
94 inline const Aws::String& GetAccessToken() const { return m_accessToken; }
95 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
96 template <typename AccessTokenT = Aws::String>
97 void SetAccessToken(AccessTokenT&& value) {
98 m_accessTokenHasBeenSet = true;
99 m_accessToken = std::forward<AccessTokenT>(value);
100 }
101 template <typename AccessTokenT = Aws::String>
102 GitLabConfiguration& WithAccessToken(AccessTokenT&& value) {
103 SetAccessToken(std::forward<AccessTokenT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_instanceUrl;
109
111
112 Aws::String m_targetPath;
113
114 Aws::String m_accessToken;
115 bool m_instanceUrlHasBeenSet = false;
116 bool m_targetTypeHasBeenSet = false;
117 bool m_targetPathHasBeenSet = false;
118 bool m_accessTokenHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace Continuum
123} // namespace Aws
GitLabConfiguration & WithInstanceUrl(InstanceUrlT &&value)
AWS_CONTINUUM_API GitLabConfiguration()=default
GitLabConfiguration & WithTargetType(GitLabTargetType value)
GitLabConfiguration & WithTargetPath(TargetPathT &&value)
AWS_CONTINUUM_API GitLabConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
GitLabConfiguration & WithAccessToken(AccessTokenT &&value)
AWS_CONTINUUM_API GitLabConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue