AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Milestone.h
1
6#pragma once
7#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/wellarchitected/model/Workload.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WellArchitected
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_WELLARCHITECTED_API Milestone() = default;
37 AWS_WELLARCHITECTED_API Milestone(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WELLARCHITECTED_API Milestone& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
44 inline int GetMilestoneNumber() const { return m_milestoneNumber; }
45 inline bool MilestoneNumberHasBeenSet() const { return m_milestoneNumberHasBeenSet; }
46 inline void SetMilestoneNumber(int value) { m_milestoneNumberHasBeenSet = true; m_milestoneNumber = value; }
47 inline Milestone& WithMilestoneNumber(int value) { SetMilestoneNumber(value); return *this;}
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) { m_milestoneNameHasBeenSet = true; m_milestoneName = std::forward<MilestoneNameT>(value); }
56 template<typename MilestoneNameT = Aws::String>
57 Milestone& WithMilestoneName(MilestoneNameT&& value) { SetMilestoneName(std::forward<MilestoneNameT>(value)); return *this;}
59
61
62 inline const Aws::Utils::DateTime& GetRecordedAt() const { return m_recordedAt; }
63 inline bool RecordedAtHasBeenSet() const { return m_recordedAtHasBeenSet; }
64 template<typename RecordedAtT = Aws::Utils::DateTime>
65 void SetRecordedAt(RecordedAtT&& value) { m_recordedAtHasBeenSet = true; m_recordedAt = std::forward<RecordedAtT>(value); }
66 template<typename RecordedAtT = Aws::Utils::DateTime>
67 Milestone& WithRecordedAt(RecordedAtT&& value) { SetRecordedAt(std::forward<RecordedAtT>(value)); return *this;}
69
71
72 inline const Workload& GetWorkload() const { return m_workload; }
73 inline bool WorkloadHasBeenSet() const { return m_workloadHasBeenSet; }
74 template<typename WorkloadT = Workload>
75 void SetWorkload(WorkloadT&& value) { m_workloadHasBeenSet = true; m_workload = std::forward<WorkloadT>(value); }
76 template<typename WorkloadT = Workload>
77 Milestone& WithWorkload(WorkloadT&& value) { SetWorkload(std::forward<WorkloadT>(value)); return *this;}
79 private:
80
81 int m_milestoneNumber{0};
82 bool m_milestoneNumberHasBeenSet = false;
83
84 Aws::String m_milestoneName;
85 bool m_milestoneNameHasBeenSet = false;
86
87 Aws::Utils::DateTime m_recordedAt{};
88 bool m_recordedAtHasBeenSet = false;
89
90 Workload m_workload;
91 bool m_workloadHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace WellArchitected
96} // namespace Aws
const Aws::Utils::DateTime & GetRecordedAt() const
Definition Milestone.h:62
Milestone & WithMilestoneName(MilestoneNameT &&value)
Definition Milestone.h:57
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:77
Milestone & WithMilestoneNumber(int value)
Definition Milestone.h:47
const Workload & GetWorkload() const
Definition Milestone.h:72
Milestone & WithRecordedAt(RecordedAtT &&value)
Definition Milestone.h:67
AWS_WELLARCHITECTED_API Milestone()=default
void SetRecordedAt(RecordedAtT &&value)
Definition Milestone.h:65
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:75
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue