AWS SDK for C++  1.9.124
AWS SDK for C++
AuditTaskMetadata.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace IoT
24 {
25 namespace Model
26 {
27 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetTaskId() const{ return m_taskId; }
46 
50  inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
51 
55  inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
56 
60  inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); }
61 
65  inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); }
66 
70  inline AuditTaskMetadata& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
71 
75  inline AuditTaskMetadata& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;}
76 
80  inline AuditTaskMetadata& WithTaskId(const char* value) { SetTaskId(value); return *this;}
81 
82 
87  inline const AuditTaskStatus& GetTaskStatus() const{ return m_taskStatus; }
88 
93  inline bool TaskStatusHasBeenSet() const { return m_taskStatusHasBeenSet; }
94 
99  inline void SetTaskStatus(const AuditTaskStatus& value) { m_taskStatusHasBeenSet = true; m_taskStatus = value; }
100 
105  inline void SetTaskStatus(AuditTaskStatus&& value) { m_taskStatusHasBeenSet = true; m_taskStatus = std::move(value); }
106 
111  inline AuditTaskMetadata& WithTaskStatus(const AuditTaskStatus& value) { SetTaskStatus(value); return *this;}
112 
117  inline AuditTaskMetadata& WithTaskStatus(AuditTaskStatus&& value) { SetTaskStatus(std::move(value)); return *this;}
118 
119 
124  inline const AuditTaskType& GetTaskType() const{ return m_taskType; }
125 
130  inline bool TaskTypeHasBeenSet() const { return m_taskTypeHasBeenSet; }
131 
136  inline void SetTaskType(const AuditTaskType& value) { m_taskTypeHasBeenSet = true; m_taskType = value; }
137 
142  inline void SetTaskType(AuditTaskType&& value) { m_taskTypeHasBeenSet = true; m_taskType = std::move(value); }
143 
148  inline AuditTaskMetadata& WithTaskType(const AuditTaskType& value) { SetTaskType(value); return *this;}
149 
154  inline AuditTaskMetadata& WithTaskType(AuditTaskType&& value) { SetTaskType(std::move(value)); return *this;}
155 
156  private:
157 
158  Aws::String m_taskId;
159  bool m_taskIdHasBeenSet;
160 
161  AuditTaskStatus m_taskStatus;
162  bool m_taskStatusHasBeenSet;
163 
164  AuditTaskType m_taskType;
165  bool m_taskTypeHasBeenSet;
166  };
167 
168 } // namespace Model
169 } // namespace IoT
170 } // namespace Aws
Aws::IoT::Model::AuditTaskMetadata::WithTaskType
AuditTaskMetadata & WithTaskType(const AuditTaskType &value)
Definition: AuditTaskMetadata.h:148
Aws::IoT::Model::AuditTaskMetadata::SetTaskType
void SetTaskType(AuditTaskType &&value)
Definition: AuditTaskMetadata.h:142
Aws::IoT::Model::AuditTaskMetadata::SetTaskId
void SetTaskId(const Aws::String &value)
Definition: AuditTaskMetadata.h:55
Aws::IoT::Model::AuditTaskMetadata::operator=
AuditTaskMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::AuditTaskMetadata::WithTaskId
AuditTaskMetadata & WithTaskId(const Aws::String &value)
Definition: AuditTaskMetadata.h:70
Aws::IoT::Model::AuditTaskMetadata::SetTaskStatus
void SetTaskStatus(AuditTaskStatus &&value)
Definition: AuditTaskMetadata.h:105
Aws::IoT::Model::AuditTaskMetadata::WithTaskStatus
AuditTaskMetadata & WithTaskStatus(AuditTaskStatus &&value)
Definition: AuditTaskMetadata.h:117
Aws::IoT::Model::AuditTaskMetadata::SetTaskId
void SetTaskId(const char *value)
Definition: AuditTaskMetadata.h:65
Aws::IoT::Model::AuditTaskType
AuditTaskType
Definition: AuditTaskType.h:17
Aws::IoT::Model::AuditTaskMetadata::AuditTaskMetadata
AuditTaskMetadata(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::AuditTaskMetadata
Definition: AuditTaskMetadata.h:34
Aws::IoT::Model::AuditTaskMetadata::WithTaskType
AuditTaskMetadata & WithTaskType(AuditTaskType &&value)
Definition: AuditTaskMetadata.h:154
Aws::IoT::Model::AuditTaskMetadata::TaskStatusHasBeenSet
bool TaskStatusHasBeenSet() const
Definition: AuditTaskMetadata.h:93
Aws::IoT::Model::AuditTaskMetadata::TaskTypeHasBeenSet
bool TaskTypeHasBeenSet() const
Definition: AuditTaskMetadata.h:130
Aws::IoT::Model::AuditTaskStatus
AuditTaskStatus
Definition: AuditTaskStatus.h:17
Aws::IoT::Model::AuditTaskMetadata::GetTaskType
const AuditTaskType & GetTaskType() const
Definition: AuditTaskMetadata.h:124
Aws::IoT::Model::AuditTaskMetadata::TaskIdHasBeenSet
bool TaskIdHasBeenSet() const
Definition: AuditTaskMetadata.h:50
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::AuditTaskMetadata::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::AuditTaskMetadata::WithTaskId
AuditTaskMetadata & WithTaskId(const char *value)
Definition: AuditTaskMetadata.h:80
AuditTaskType.h
Aws::IoT::Model::AuditTaskMetadata::WithTaskId
AuditTaskMetadata & WithTaskId(Aws::String &&value)
Definition: AuditTaskMetadata.h:75
Aws::IoT::Model::AuditTaskMetadata::SetTaskId
void SetTaskId(Aws::String &&value)
Definition: AuditTaskMetadata.h:60
Aws::IoT::Model::AuditTaskMetadata::GetTaskStatus
const AuditTaskStatus & GetTaskStatus() const
Definition: AuditTaskMetadata.h:87
Aws
Definition: AccessManagementClient.h:15
AuditTaskStatus.h
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::AuditTaskMetadata::GetTaskId
const Aws::String & GetTaskId() const
Definition: AuditTaskMetadata.h:45
Aws::IoT::Model::AuditTaskMetadata::SetTaskStatus
void SetTaskStatus(const AuditTaskStatus &value)
Definition: AuditTaskMetadata.h:99
Aws::IoT::Model::AuditTaskMetadata::AuditTaskMetadata
AuditTaskMetadata()
Aws::IoT::Model::AuditTaskMetadata::WithTaskStatus
AuditTaskMetadata & WithTaskStatus(const AuditTaskStatus &value)
Definition: AuditTaskMetadata.h:111
IoT_EXPORTS.h
Aws::IoT::Model::AuditTaskMetadata::SetTaskType
void SetTaskType(const AuditTaskType &value)
Definition: AuditTaskMetadata.h:136