AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
OperationSummary.h
1
6#pragma once
7#include <aws/apprunner/AppRunner_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/apprunner/model/OperationType.h>
10#include <aws/apprunner/model/OperationStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AppRunner
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_APPRUNNER_API OperationSummary() = default;
39 AWS_APPRUNNER_API OperationSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
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 OperationSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
56
58
61 inline OperationType GetType() const { return m_type; }
62 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
63 inline void SetType(OperationType value) { m_typeHasBeenSet = true; m_type = value; }
64 inline OperationSummary& WithType(OperationType value) { SetType(value); return *this;}
66
68
71 inline OperationStatus GetStatus() const { return m_status; }
72 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
73 inline void SetStatus(OperationStatus value) { m_statusHasBeenSet = true; m_status = value; }
74 inline OperationSummary& WithStatus(OperationStatus value) { SetStatus(value); return *this;}
76
78
82 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
83 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
84 template<typename TargetArnT = Aws::String>
85 void SetTargetArn(TargetArnT&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::forward<TargetArnT>(value); }
86 template<typename TargetArnT = Aws::String>
87 OperationSummary& WithTargetArn(TargetArnT&& value) { SetTargetArn(std::forward<TargetArnT>(value)); return *this;}
89
91
94 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
95 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
96 template<typename StartedAtT = Aws::Utils::DateTime>
97 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::forward<StartedAtT>(value); }
98 template<typename StartedAtT = Aws::Utils::DateTime>
99 OperationSummary& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
101
103
106 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
107 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
108 template<typename EndedAtT = Aws::Utils::DateTime>
109 void SetEndedAt(EndedAtT&& value) { m_endedAtHasBeenSet = true; m_endedAt = std::forward<EndedAtT>(value); }
110 template<typename EndedAtT = Aws::Utils::DateTime>
111 OperationSummary& WithEndedAt(EndedAtT&& value) { SetEndedAt(std::forward<EndedAtT>(value)); return *this;}
113
115
119 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
120 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
121 template<typename UpdatedAtT = Aws::Utils::DateTime>
122 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
123 template<typename UpdatedAtT = Aws::Utils::DateTime>
124 OperationSummary& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
126 private:
127
128 Aws::String m_id;
129 bool m_idHasBeenSet = false;
130
132 bool m_typeHasBeenSet = false;
133
135 bool m_statusHasBeenSet = false;
136
137 Aws::String m_targetArn;
138 bool m_targetArnHasBeenSet = false;
139
140 Aws::Utils::DateTime m_startedAt{};
141 bool m_startedAtHasBeenSet = false;
142
143 Aws::Utils::DateTime m_endedAt{};
144 bool m_endedAtHasBeenSet = false;
145
146 Aws::Utils::DateTime m_updatedAt{};
147 bool m_updatedAtHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace AppRunner
152} // namespace Aws
const Aws::String & GetTargetArn() const
const Aws::Utils::DateTime & GetEndedAt() const
OperationSummary & WithStatus(OperationStatus value)
OperationSummary & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
OperationSummary & WithId(IdT &&value)
OperationSummary & WithStartedAt(StartedAtT &&value)
OperationSummary & WithEndedAt(EndedAtT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
AWS_APPRUNNER_API OperationSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(OperationStatus value)
OperationSummary & WithTargetArn(TargetArnT &&value)
OperationSummary & WithType(OperationType value)
AWS_APPRUNNER_API OperationSummary()=default
AWS_APPRUNNER_API OperationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue