AWS SDK for C++

AWS SDK for C++ Version 1.11.875

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
70 inline const Aws::Utils::DateTime& GetRecordedAt() const { return m_recordedAt; }
71 inline bool RecordedAtHasBeenSet() const { return m_recordedAtHasBeenSet; }
72 template <typename RecordedAtT = Aws::Utils::DateTime>
73 void SetRecordedAt(RecordedAtT&& value) {
74 m_recordedAtHasBeenSet = true;
75 m_recordedAt = std::forward<RecordedAtT>(value);
76 }
77 template <typename RecordedAtT = Aws::Utils::DateTime>
78 Milestone& WithRecordedAt(RecordedAtT&& value) {
79 SetRecordedAt(std::forward<RecordedAtT>(value));
80 return *this;
81 }
83
85
86 inline const Workload& GetWorkload() const { return m_workload; }
87 inline bool WorkloadHasBeenSet() const { return m_workloadHasBeenSet; }
88 template <typename WorkloadT = Workload>
89 void SetWorkload(WorkloadT&& value) {
90 m_workloadHasBeenSet = true;
91 m_workload = std::forward<WorkloadT>(value);
92 }
93 template <typename WorkloadT = Workload>
94 Milestone& WithWorkload(WorkloadT&& value) {
95 SetWorkload(std::forward<WorkloadT>(value));
96 return *this;
97 }
99 private:
100 int m_milestoneNumber{0};
101
102 Aws::String m_milestoneName;
103
104 Aws::Utils::DateTime m_recordedAt{};
105
106 Workload m_workload;
107 bool m_milestoneNumberHasBeenSet = false;
108 bool m_milestoneNameHasBeenSet = false;
109 bool m_recordedAtHasBeenSet = false;
110 bool m_workloadHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace WellArchitected
115} // namespace Aws
const Aws::Utils::DateTime & GetRecordedAt() const
Definition Milestone.h:70
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:94
Milestone & WithMilestoneNumber(int value)
Definition Milestone.h:44
const Workload & GetWorkload() const
Definition Milestone.h:86
Milestone & WithRecordedAt(RecordedAtT &&value)
Definition Milestone.h:78
AWS_WELLARCHITECTED_API Milestone()=default
void SetRecordedAt(RecordedAtT &&value)
Definition Milestone.h:73
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:89
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue