AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SandboxSession.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codebuild/model/LogsLocation.h>
12#include <aws/codebuild/model/NetworkInterface.h>
13#include <aws/codebuild/model/SandboxSessionPhase.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace CodeBuild
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_CODEBUILD_API SandboxSession() = default;
40 AWS_CODEBUILD_API SandboxSession(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetId() const { return m_id; }
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 template<typename IdT = Aws::String>
52 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
53 template<typename IdT = Aws::String>
54 SandboxSession& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
56
58
61 inline const Aws::String& GetStatus() const { return m_status; }
62 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
63 template<typename StatusT = Aws::String>
64 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
65 template<typename StatusT = Aws::String>
66 SandboxSession& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
68
70
73 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
74 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
75 template<typename StartTimeT = Aws::Utils::DateTime>
76 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
77 template<typename StartTimeT = Aws::Utils::DateTime>
78 SandboxSession& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
80
82
85 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
86 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
87 template<typename EndTimeT = Aws::Utils::DateTime>
88 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
89 template<typename EndTimeT = Aws::Utils::DateTime>
90 SandboxSession& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
92
94
97 inline const Aws::String& GetCurrentPhase() const { return m_currentPhase; }
98 inline bool CurrentPhaseHasBeenSet() const { return m_currentPhaseHasBeenSet; }
99 template<typename CurrentPhaseT = Aws::String>
100 void SetCurrentPhase(CurrentPhaseT&& value) { m_currentPhaseHasBeenSet = true; m_currentPhase = std::forward<CurrentPhaseT>(value); }
101 template<typename CurrentPhaseT = Aws::String>
102 SandboxSession& WithCurrentPhase(CurrentPhaseT&& value) { SetCurrentPhase(std::forward<CurrentPhaseT>(value)); return *this;}
104
106
109 inline const Aws::Vector<SandboxSessionPhase>& GetPhases() const { return m_phases; }
110 inline bool PhasesHasBeenSet() const { return m_phasesHasBeenSet; }
111 template<typename PhasesT = Aws::Vector<SandboxSessionPhase>>
112 void SetPhases(PhasesT&& value) { m_phasesHasBeenSet = true; m_phases = std::forward<PhasesT>(value); }
113 template<typename PhasesT = Aws::Vector<SandboxSessionPhase>>
114 SandboxSession& WithPhases(PhasesT&& value) { SetPhases(std::forward<PhasesT>(value)); return *this;}
115 template<typename PhasesT = SandboxSessionPhase>
116 SandboxSession& AddPhases(PhasesT&& value) { m_phasesHasBeenSet = true; m_phases.emplace_back(std::forward<PhasesT>(value)); return *this; }
118
120
123 inline const Aws::String& GetResolvedSourceVersion() const { return m_resolvedSourceVersion; }
124 inline bool ResolvedSourceVersionHasBeenSet() const { return m_resolvedSourceVersionHasBeenSet; }
125 template<typename ResolvedSourceVersionT = Aws::String>
126 void SetResolvedSourceVersion(ResolvedSourceVersionT&& value) { m_resolvedSourceVersionHasBeenSet = true; m_resolvedSourceVersion = std::forward<ResolvedSourceVersionT>(value); }
127 template<typename ResolvedSourceVersionT = Aws::String>
128 SandboxSession& WithResolvedSourceVersion(ResolvedSourceVersionT&& value) { SetResolvedSourceVersion(std::forward<ResolvedSourceVersionT>(value)); return *this;}
130
132
133 inline const LogsLocation& GetLogs() const { return m_logs; }
134 inline bool LogsHasBeenSet() const { return m_logsHasBeenSet; }
135 template<typename LogsT = LogsLocation>
136 void SetLogs(LogsT&& value) { m_logsHasBeenSet = true; m_logs = std::forward<LogsT>(value); }
137 template<typename LogsT = LogsLocation>
138 SandboxSession& WithLogs(LogsT&& value) { SetLogs(std::forward<LogsT>(value)); return *this;}
140
142
143 inline const NetworkInterface& GetNetworkInterface() const { return m_networkInterface; }
144 inline bool NetworkInterfaceHasBeenSet() const { return m_networkInterfaceHasBeenSet; }
145 template<typename NetworkInterfaceT = NetworkInterface>
146 void SetNetworkInterface(NetworkInterfaceT&& value) { m_networkInterfaceHasBeenSet = true; m_networkInterface = std::forward<NetworkInterfaceT>(value); }
147 template<typename NetworkInterfaceT = NetworkInterface>
148 SandboxSession& WithNetworkInterface(NetworkInterfaceT&& value) { SetNetworkInterface(std::forward<NetworkInterfaceT>(value)); return *this;}
150 private:
151
152 Aws::String m_id;
153 bool m_idHasBeenSet = false;
154
155 Aws::String m_status;
156 bool m_statusHasBeenSet = false;
157
158 Aws::Utils::DateTime m_startTime{};
159 bool m_startTimeHasBeenSet = false;
160
161 Aws::Utils::DateTime m_endTime{};
162 bool m_endTimeHasBeenSet = false;
163
164 Aws::String m_currentPhase;
165 bool m_currentPhaseHasBeenSet = false;
166
168 bool m_phasesHasBeenSet = false;
169
170 Aws::String m_resolvedSourceVersion;
171 bool m_resolvedSourceVersionHasBeenSet = false;
172
173 LogsLocation m_logs;
174 bool m_logsHasBeenSet = false;
175
176 NetworkInterface m_networkInterface;
177 bool m_networkInterfaceHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace CodeBuild
182} // namespace Aws
const Aws::Utils::DateTime & GetStartTime() const
const Aws::String & GetId() const
SandboxSession & WithPhases(PhasesT &&value)
SandboxSession & WithLogs(LogsT &&value)
AWS_CODEBUILD_API SandboxSession & operator=(Aws::Utils::Json::JsonView jsonValue)
SandboxSession & WithNetworkInterface(NetworkInterfaceT &&value)
void SetCurrentPhase(CurrentPhaseT &&value)
void SetNetworkInterface(NetworkInterfaceT &&value)
SandboxSession & WithStartTime(StartTimeT &&value)
const LogsLocation & GetLogs() const
const Aws::String & GetResolvedSourceVersion() const
SandboxSession & WithStatus(StatusT &&value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetStatus() const
const Aws::Vector< SandboxSessionPhase > & GetPhases() const
AWS_CODEBUILD_API SandboxSession()=default
SandboxSession & WithCurrentPhase(CurrentPhaseT &&value)
const Aws::String & GetCurrentPhase() const
SandboxSession & WithEndTime(EndTimeT &&value)
void SetResolvedSourceVersion(ResolvedSourceVersionT &&value)
const NetworkInterface & GetNetworkInterface() const
AWS_CODEBUILD_API SandboxSession(Aws::Utils::Json::JsonView jsonValue)
SandboxSession & WithId(IdT &&value)
SandboxSession & WithResolvedSourceVersion(ResolvedSourceVersionT &&value)
SandboxSession & AddPhases(PhasesT &&value)
void SetStartTime(StartTimeT &&value)
const Aws::Utils::DateTime & GetEndTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue