AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
GitLabDetails.h
1
6#pragma once
7#include <aws/continuum/Continuum_EXPORTS.h>
8#include <aws/continuum/model/GitLabTargetType.h>
9#include <aws/continuum/model/GitLabTokenRotation.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Continuum {
23namespace Model {
24
31 public:
32 AWS_CONTINUUM_API GitLabDetails() = default;
33 AWS_CONTINUUM_API GitLabDetails(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONTINUUM_API GitLabDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetInstanceUrl() const { return m_instanceUrl; }
42 inline bool InstanceUrlHasBeenSet() const { return m_instanceUrlHasBeenSet; }
43 template <typename InstanceUrlT = Aws::String>
44 void SetInstanceUrl(InstanceUrlT&& value) {
45 m_instanceUrlHasBeenSet = true;
46 m_instanceUrl = std::forward<InstanceUrlT>(value);
47 }
48 template <typename InstanceUrlT = Aws::String>
49 GitLabDetails& WithInstanceUrl(InstanceUrlT&& value) {
50 SetInstanceUrl(std::forward<InstanceUrlT>(value));
51 return *this;
52 }
54
56
59 inline GitLabTargetType GetTargetType() const { return m_targetType; }
60 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
61 inline void SetTargetType(GitLabTargetType value) {
62 m_targetTypeHasBeenSet = true;
63 m_targetType = value;
64 }
66 SetTargetType(value);
67 return *this;
68 }
70
72
75 inline const Aws::String& GetTargetPath() const { return m_targetPath; }
76 inline bool TargetPathHasBeenSet() const { return m_targetPathHasBeenSet; }
77 template <typename TargetPathT = Aws::String>
78 void SetTargetPath(TargetPathT&& value) {
79 m_targetPathHasBeenSet = true;
80 m_targetPath = std::forward<TargetPathT>(value);
81 }
82 template <typename TargetPathT = Aws::String>
83 GitLabDetails& WithTargetPath(TargetPathT&& value) {
84 SetTargetPath(std::forward<TargetPathT>(value));
85 return *this;
86 }
88
90
95 inline GitLabTokenRotation GetTokenRotation() const { return m_tokenRotation; }
96 inline bool TokenRotationHasBeenSet() const { return m_tokenRotationHasBeenSet; }
98 m_tokenRotationHasBeenSet = true;
99 m_tokenRotation = value;
100 }
102 SetTokenRotation(value);
103 return *this;
104 }
106
108
113 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
114 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
115 template <typename ExpiresAtT = Aws::Utils::DateTime>
116 void SetExpiresAt(ExpiresAtT&& value) {
117 m_expiresAtHasBeenSet = true;
118 m_expiresAt = std::forward<ExpiresAtT>(value);
119 }
120 template <typename ExpiresAtT = Aws::Utils::DateTime>
121 GitLabDetails& WithExpiresAt(ExpiresAtT&& value) {
122 SetExpiresAt(std::forward<ExpiresAtT>(value));
123 return *this;
124 }
126 private:
127 Aws::String m_instanceUrl;
128
130
131 Aws::String m_targetPath;
132
134
135 Aws::Utils::DateTime m_expiresAt{};
136 bool m_instanceUrlHasBeenSet = false;
137 bool m_targetTypeHasBeenSet = false;
138 bool m_targetPathHasBeenSet = false;
139 bool m_tokenRotationHasBeenSet = false;
140 bool m_expiresAtHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace Continuum
145} // namespace Aws
void SetTokenRotation(GitLabTokenRotation value)
GitLabTargetType GetTargetType() const
AWS_CONTINUUM_API GitLabDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetInstanceUrl(InstanceUrlT &&value)
GitLabDetails & WithExpiresAt(ExpiresAtT &&value)
AWS_CONTINUUM_API GitLabDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetInstanceUrl() const
void SetExpiresAt(ExpiresAtT &&value)
GitLabDetails & WithTargetType(GitLabTargetType value)
GitLabDetails & WithInstanceUrl(InstanceUrlT &&value)
void SetTargetPath(TargetPathT &&value)
GitLabTokenRotation GetTokenRotation() const
GitLabDetails & WithTokenRotation(GitLabTokenRotation value)
AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const
GitLabDetails & WithTargetPath(TargetPathT &&value)
void SetTargetType(GitLabTargetType value)
const Aws::Utils::DateTime & GetExpiresAt() const
const Aws::String & GetTargetPath() const
AWS_CONTINUUM_API GitLabDetails()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue