AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SandboxSessionPhase.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codebuild/model/StatusType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/codebuild/model/PhaseContext.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CodeBuild
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_CODEBUILD_API SandboxSessionPhase() = default;
39 AWS_CODEBUILD_API SandboxSessionPhase(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetPhaseType() const { return m_phaseType; }
49 inline bool PhaseTypeHasBeenSet() const { return m_phaseTypeHasBeenSet; }
50 template<typename PhaseTypeT = Aws::String>
51 void SetPhaseType(PhaseTypeT&& value) { m_phaseTypeHasBeenSet = true; m_phaseType = std::forward<PhaseTypeT>(value); }
52 template<typename PhaseTypeT = Aws::String>
53 SandboxSessionPhase& WithPhaseType(PhaseTypeT&& value) { SetPhaseType(std::forward<PhaseTypeT>(value)); return *this;}
55
57
65 inline StatusType GetPhaseStatus() const { return m_phaseStatus; }
66 inline bool PhaseStatusHasBeenSet() const { return m_phaseStatusHasBeenSet; }
67 inline void SetPhaseStatus(StatusType value) { m_phaseStatusHasBeenSet = true; m_phaseStatus = value; }
68 inline SandboxSessionPhase& WithPhaseStatus(StatusType value) { SetPhaseStatus(value); return *this;}
70
72
75 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
76 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
77 template<typename StartTimeT = Aws::Utils::DateTime>
78 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
79 template<typename StartTimeT = Aws::Utils::DateTime>
80 SandboxSessionPhase& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
82
84
87 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
88 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
89 template<typename EndTimeT = Aws::Utils::DateTime>
90 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
91 template<typename EndTimeT = Aws::Utils::DateTime>
92 SandboxSessionPhase& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
94
96
100 inline long long GetDurationInSeconds() const { return m_durationInSeconds; }
101 inline bool DurationInSecondsHasBeenSet() const { return m_durationInSecondsHasBeenSet; }
102 inline void SetDurationInSeconds(long long value) { m_durationInSecondsHasBeenSet = true; m_durationInSeconds = value; }
103 inline SandboxSessionPhase& WithDurationInSeconds(long long value) { SetDurationInSeconds(value); return *this;}
105
107
110 inline const Aws::Vector<PhaseContext>& GetContexts() const { return m_contexts; }
111 inline bool ContextsHasBeenSet() const { return m_contextsHasBeenSet; }
112 template<typename ContextsT = Aws::Vector<PhaseContext>>
113 void SetContexts(ContextsT&& value) { m_contextsHasBeenSet = true; m_contexts = std::forward<ContextsT>(value); }
114 template<typename ContextsT = Aws::Vector<PhaseContext>>
115 SandboxSessionPhase& WithContexts(ContextsT&& value) { SetContexts(std::forward<ContextsT>(value)); return *this;}
116 template<typename ContextsT = PhaseContext>
117 SandboxSessionPhase& AddContexts(ContextsT&& value) { m_contextsHasBeenSet = true; m_contexts.emplace_back(std::forward<ContextsT>(value)); return *this; }
119 private:
120
121 Aws::String m_phaseType;
122 bool m_phaseTypeHasBeenSet = false;
123
124 StatusType m_phaseStatus{StatusType::NOT_SET};
125 bool m_phaseStatusHasBeenSet = false;
126
127 Aws::Utils::DateTime m_startTime{};
128 bool m_startTimeHasBeenSet = false;
129
130 Aws::Utils::DateTime m_endTime{};
131 bool m_endTimeHasBeenSet = false;
132
133 long long m_durationInSeconds{0};
134 bool m_durationInSecondsHasBeenSet = false;
135
136 Aws::Vector<PhaseContext> m_contexts;
137 bool m_contextsHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace CodeBuild
142} // namespace Aws
AWS_CODEBUILD_API SandboxSessionPhase()=default
SandboxSessionPhase & AddContexts(ContextsT &&value)
SandboxSessionPhase & WithEndTime(EndTimeT &&value)
const Aws::Utils::DateTime & GetEndTime() const
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
SandboxSessionPhase & WithPhaseType(PhaseTypeT &&value)
AWS_CODEBUILD_API SandboxSessionPhase(Aws::Utils::Json::JsonView jsonValue)
SandboxSessionPhase & WithStartTime(StartTimeT &&value)
AWS_CODEBUILD_API SandboxSessionPhase & operator=(Aws::Utils::Json::JsonView jsonValue)
SandboxSessionPhase & WithContexts(ContextsT &&value)
const Aws::Vector< PhaseContext > & GetContexts() const
const Aws::Utils::DateTime & GetStartTime() const
SandboxSessionPhase & WithPhaseStatus(StatusType value)
SandboxSessionPhase & WithDurationInSeconds(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue