AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AnomalyInstance.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codeguruprofiler/model/UserFeedback.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 CodeGuruProfiler
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CODEGURUPROFILER_API AnomalyInstance() = default;
38 AWS_CODEGURUPROFILER_API AnomalyInstance(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEGURUPROFILER_API AnomalyInstance& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
50 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
51 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
52 template<typename EndTimeT = Aws::Utils::DateTime>
53 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
54 template<typename EndTimeT = Aws::Utils::DateTime>
55 AnomalyInstance& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
57
59
63 inline const Aws::String& GetId() const { return m_id; }
64 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
65 template<typename IdT = Aws::String>
66 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
67 template<typename IdT = Aws::String>
68 AnomalyInstance& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
70
72
78 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
79 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
80 template<typename StartTimeT = Aws::Utils::DateTime>
81 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
82 template<typename StartTimeT = Aws::Utils::DateTime>
83 AnomalyInstance& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
85
87
90 inline const UserFeedback& GetUserFeedback() const { return m_userFeedback; }
91 inline bool UserFeedbackHasBeenSet() const { return m_userFeedbackHasBeenSet; }
92 template<typename UserFeedbackT = UserFeedback>
93 void SetUserFeedback(UserFeedbackT&& value) { m_userFeedbackHasBeenSet = true; m_userFeedback = std::forward<UserFeedbackT>(value); }
94 template<typename UserFeedbackT = UserFeedback>
95 AnomalyInstance& WithUserFeedback(UserFeedbackT&& value) { SetUserFeedback(std::forward<UserFeedbackT>(value)); return *this;}
97 private:
98
99 Aws::Utils::DateTime m_endTime{};
100 bool m_endTimeHasBeenSet = false;
101
102 Aws::String m_id;
103 bool m_idHasBeenSet = false;
104
105 Aws::Utils::DateTime m_startTime{};
106 bool m_startTimeHasBeenSet = false;
107
108 UserFeedback m_userFeedback;
109 bool m_userFeedbackHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace CodeGuruProfiler
114} // namespace Aws
AWS_CODEGURUPROFILER_API AnomalyInstance & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetStartTime() const
AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEGURUPROFILER_API AnomalyInstance(Aws::Utils::Json::JsonView jsonValue)
AnomalyInstance & WithStartTime(StartTimeT &&value)
AnomalyInstance & WithUserFeedback(UserFeedbackT &&value)
const Aws::Utils::DateTime & GetEndTime() const
const UserFeedback & GetUserFeedback() const
AWS_CODEGURUPROFILER_API AnomalyInstance()=default
AnomalyInstance & WithEndTime(EndTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue