AWS SDK for C++  1.9.124
AWS SDK for C++
ListViolationEventsResult.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 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace IoT
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
42  inline const Aws::Vector<ViolationEvent>& GetViolationEvents() const{ return m_violationEvents; }
43 
49  inline void SetViolationEvents(const Aws::Vector<ViolationEvent>& value) { m_violationEvents = value; }
50 
56  inline void SetViolationEvents(Aws::Vector<ViolationEvent>&& value) { m_violationEvents = std::move(value); }
57 
63  inline ListViolationEventsResult& WithViolationEvents(const Aws::Vector<ViolationEvent>& value) { SetViolationEvents(value); return *this;}
64 
70  inline ListViolationEventsResult& WithViolationEvents(Aws::Vector<ViolationEvent>&& value) { SetViolationEvents(std::move(value)); return *this;}
71 
77  inline ListViolationEventsResult& AddViolationEvents(const ViolationEvent& value) { m_violationEvents.push_back(value); return *this; }
78 
84  inline ListViolationEventsResult& AddViolationEvents(ViolationEvent&& value) { m_violationEvents.push_back(std::move(value)); return *this; }
85 
86 
91  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
92 
97  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
98 
103  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
104 
109  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
110 
115  inline ListViolationEventsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
116 
121  inline ListViolationEventsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
122 
127  inline ListViolationEventsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
128 
129  private:
130 
131  Aws::Vector<ViolationEvent> m_violationEvents;
132 
133  Aws::String m_nextToken;
134  };
135 
136 } // namespace Model
137 } // namespace IoT
138 } // namespace Aws
Aws::IoT::Model::ListViolationEventsResult::WithNextToken
ListViolationEventsResult & WithNextToken(const char *value)
Definition: ListViolationEventsResult.h:127
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::IoT::Model::ListViolationEventsResult
Definition: ListViolationEventsResult.h:30
Aws::IoT::Model::ListViolationEventsResult::AddViolationEvents
ListViolationEventsResult & AddViolationEvents(const ViolationEvent &value)
Definition: ListViolationEventsResult.h:77
Aws::IoT::Model::ListViolationEventsResult::operator=
ListViolationEventsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::IoT::Model::ListViolationEventsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListViolationEventsResult.h:91
Aws::IoT::Model::ListViolationEventsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListViolationEventsResult.h:97
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::IoT::Model::ViolationEvent
Definition: ViolationEvent.h:39
ViolationEvent.h
Aws::IoT::Model::ListViolationEventsResult::WithNextToken
ListViolationEventsResult & WithNextToken(Aws::String &&value)
Definition: ListViolationEventsResult.h:121
Aws::IoT::Model::ListViolationEventsResult::SetViolationEvents
void SetViolationEvents(const Aws::Vector< ViolationEvent > &value)
Definition: ListViolationEventsResult.h:49
AWSString.h
Aws::IoT::Model::ListViolationEventsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListViolationEventsResult.h:103
Aws::IoT::Model::ListViolationEventsResult::AddViolationEvents
ListViolationEventsResult & AddViolationEvents(ViolationEvent &&value)
Definition: ListViolationEventsResult.h:84
Aws::IoT::Model::ListViolationEventsResult::GetViolationEvents
const Aws::Vector< ViolationEvent > & GetViolationEvents() const
Definition: ListViolationEventsResult.h:42
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ListViolationEventsResult::ListViolationEventsResult
ListViolationEventsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
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::ListViolationEventsResult::WithViolationEvents
ListViolationEventsResult & WithViolationEvents(const Aws::Vector< ViolationEvent > &value)
Definition: ListViolationEventsResult.h:63
Aws::IoT::Model::ListViolationEventsResult::WithViolationEvents
ListViolationEventsResult & WithViolationEvents(Aws::Vector< ViolationEvent > &&value)
Definition: ListViolationEventsResult.h:70
Aws::IoT::Model::ListViolationEventsResult::SetViolationEvents
void SetViolationEvents(Aws::Vector< ViolationEvent > &&value)
Definition: ListViolationEventsResult.h:56
Aws::IoT::Model::ListViolationEventsResult::ListViolationEventsResult
ListViolationEventsResult()
IoT_EXPORTS.h
Aws::IoT::Model::ListViolationEventsResult::WithNextToken
ListViolationEventsResult & WithNextToken(const Aws::String &value)
Definition: ListViolationEventsResult.h:115
Aws::IoT::Model::ListViolationEventsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListViolationEventsResult.h:109