AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
53 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
54 inline AnomalyInstance& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
55 inline AnomalyInstance& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
57
59
63 inline const Aws::String& GetId() const{ return m_id; }
64 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
65 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
66 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
67 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
68 inline AnomalyInstance& WithId(const Aws::String& value) { SetId(value); return *this;}
69 inline AnomalyInstance& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
70 inline AnomalyInstance& WithId(const char* value) { SetId(value); return *this;}
72
74
80 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
81 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
82 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
83 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
84 inline AnomalyInstance& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
85 inline AnomalyInstance& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
87
89
92 inline const UserFeedback& GetUserFeedback() const{ return m_userFeedback; }
93 inline bool UserFeedbackHasBeenSet() const { return m_userFeedbackHasBeenSet; }
94 inline void SetUserFeedback(const UserFeedback& value) { m_userFeedbackHasBeenSet = true; m_userFeedback = value; }
95 inline void SetUserFeedback(UserFeedback&& value) { m_userFeedbackHasBeenSet = true; m_userFeedback = std::move(value); }
96 inline AnomalyInstance& WithUserFeedback(const UserFeedback& value) { SetUserFeedback(value); return *this;}
97 inline AnomalyInstance& WithUserFeedback(UserFeedback&& value) { SetUserFeedback(std::move(value)); return *this;}
99 private:
100
101 Aws::Utils::DateTime m_endTime;
102 bool m_endTimeHasBeenSet = false;
103
104 Aws::String m_id;
105 bool m_idHasBeenSet = false;
106
107 Aws::Utils::DateTime m_startTime;
108 bool m_startTimeHasBeenSet = false;
109
110 UserFeedback m_userFeedback;
111 bool m_userFeedbackHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace CodeGuruProfiler
116} // namespace Aws
AnomalyInstance & WithId(const Aws::String &value)
AWS_CODEGURUPROFILER_API AnomalyInstance & operator=(Aws::Utils::Json::JsonView jsonValue)
AnomalyInstance & WithId(Aws::String &&value)
const Aws::Utils::DateTime & GetStartTime() const
AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const
AnomalyInstance & WithEndTime(Aws::Utils::DateTime &&value)
AnomalyInstance & WithStartTime(const Aws::Utils::DateTime &value)
AWS_CODEGURUPROFILER_API AnomalyInstance(Aws::Utils::Json::JsonView jsonValue)
AnomalyInstance & WithUserFeedback(UserFeedback &&value)
AnomalyInstance & WithStartTime(Aws::Utils::DateTime &&value)
void SetEndTime(const Aws::Utils::DateTime &value)
void SetUserFeedback(const UserFeedback &value)
AWS_CODEGURUPROFILER_API AnomalyInstance()
void SetStartTime(const Aws::Utils::DateTime &value)
void SetEndTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetEndTime() const
const UserFeedback & GetUserFeedback() const
AnomalyInstance & WithId(const char *value)
void SetStartTime(Aws::Utils::DateTime &&value)
AnomalyInstance & WithUserFeedback(const UserFeedback &value)
AnomalyInstance & WithEndTime(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue