AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
Milestone.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
10#include <aws/wellarchitected/model/Workload.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WellArchitected {
22namespace Model {
23
29class Milestone {
30 public:
31 AWS_WELLARCHITECTED_API Milestone() = default;
32 AWS_WELLARCHITECTED_API Milestone(Aws::Utils::Json::JsonView jsonValue);
33 AWS_WELLARCHITECTED_API Milestone& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline int GetMilestoneNumber() const { return m_milestoneNumber; }
39 inline bool MilestoneNumberHasBeenSet() const { return m_milestoneNumberHasBeenSet; }
40 inline void SetMilestoneNumber(int value) {
41 m_milestoneNumberHasBeenSet = true;
42 m_milestoneNumber = value;
43 }
44 inline Milestone& WithMilestoneNumber(int value) {
45 SetMilestoneNumber(value);
46 return *this;
47 }
49
51
52 inline const Aws::String& GetMilestoneName() const { return m_milestoneName; }
53 inline bool MilestoneNameHasBeenSet() const { return m_milestoneNameHasBeenSet; }
54 template <typename MilestoneNameT = Aws::String>
55 void SetMilestoneName(MilestoneNameT&& value) {
56 m_milestoneNameHasBeenSet = true;
57 m_milestoneName = std::forward<MilestoneNameT>(value);
58 }
59 template <typename MilestoneNameT = Aws::String>
60 Milestone& WithMilestoneName(MilestoneNameT&& value) {
61 SetMilestoneName(std::forward<MilestoneNameT>(value));
62 return *this;
63 }
65
67
68 inline const Aws::Utils::DateTime& GetRecordedAt() const { return m_recordedAt; }
69 inline bool RecordedAtHasBeenSet() const { return m_recordedAtHasBeenSet; }
70 template <typename RecordedAtT = Aws::Utils::DateTime>
71 void SetRecordedAt(RecordedAtT&& value) {
72 m_recordedAtHasBeenSet = true;
73 m_recordedAt = std::forward<RecordedAtT>(value);
74 }
75 template <typename RecordedAtT = Aws::Utils::DateTime>
76 Milestone& WithRecordedAt(RecordedAtT&& value) {
77 SetRecordedAt(std::forward<RecordedAtT>(value));
78 return *this;
79 }
81
83
84 inline const Workload& GetWorkload() const { return m_workload; }
85 inline bool WorkloadHasBeenSet() const { return m_workloadHasBeenSet; }
86 template <typename WorkloadT = Workload>
87 void SetWorkload(WorkloadT&& value) {
88 m_workloadHasBeenSet = true;
89 m_workload = std::forward<WorkloadT>(value);
90 }
91 template <typename WorkloadT = Workload>
92 Milestone& WithWorkload(WorkloadT&& value) {
93 SetWorkload(std::forward<WorkloadT>(value));
94 return *this;
95 }
97 private:
98 int m_milestoneNumber{0};
99
100 Aws::String m_milestoneName;
101
102 Aws::Utils::DateTime m_recordedAt{};
103
104 Workload m_workload;
105 bool m_milestoneNumberHasBeenSet = false;
106 bool m_milestoneNameHasBeenSet = false;
107 bool m_recordedAtHasBeenSet = false;
108 bool m_workloadHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace WellArchitected
113} // namespace Aws
const Aws::Utils::DateTime & GetRecordedAt() const
Definition Milestone.h:68
Milestone & WithMilestoneName(MilestoneNameT &&value)
Definition Milestone.h:60
AWS_WELLARCHITECTED_API Milestone(Aws::Utils::Json::JsonView jsonValue)
void SetMilestoneName(MilestoneNameT &&value)
Definition Milestone.h:55
const Aws::String & GetMilestoneName() const
Definition Milestone.h:52
Milestone & WithWorkload(WorkloadT &&value)
Definition Milestone.h:92
Milestone & WithMilestoneNumber(int value)
Definition Milestone.h:44
const Workload & GetWorkload() const
Definition Milestone.h:84
Milestone & WithRecordedAt(RecordedAtT &&value)
Definition Milestone.h:76
AWS_WELLARCHITECTED_API Milestone()=default
void SetRecordedAt(RecordedAtT &&value)
Definition Milestone.h:71
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WELLARCHITECTED_API Milestone & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetWorkload(WorkloadT &&value)
Definition Milestone.h:87
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue