AWS SDK for C++  1.9.16
AWS SDK for C++
ListV2LoggingLevelsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace IoT
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "ListV2LoggingLevels"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41 
46  inline const LogTargetType& GetTargetType() const{ return m_targetType; }
47 
52  inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
53 
58  inline void SetTargetType(const LogTargetType& value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
59 
64  inline void SetTargetType(LogTargetType&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); }
65 
70  inline ListV2LoggingLevelsRequest& WithTargetType(const LogTargetType& value) { SetTargetType(value); return *this;}
71 
76  inline ListV2LoggingLevelsRequest& WithTargetType(LogTargetType&& value) { SetTargetType(std::move(value)); return *this;}
77 
78 
84  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
85 
91  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
92 
98  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
99 
105  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
106 
112  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
113 
119  inline ListV2LoggingLevelsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
120 
126  inline ListV2LoggingLevelsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
127 
133  inline ListV2LoggingLevelsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
134 
135 
139  inline int GetMaxResults() const{ return m_maxResults; }
140 
144  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
145 
149  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
150 
154  inline ListV2LoggingLevelsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
155 
156  private:
157 
158  LogTargetType m_targetType;
159  bool m_targetTypeHasBeenSet;
160 
161  Aws::String m_nextToken;
162  bool m_nextTokenHasBeenSet;
163 
164  int m_maxResults;
165  bool m_maxResultsHasBeenSet;
166  };
167 
168 } // namespace Model
169 } // namespace IoT
170 } // namespace Aws
Aws::IoT::Model::ListV2LoggingLevelsRequest::WithMaxResults
ListV2LoggingLevelsRequest & WithMaxResults(int value)
Definition: ListV2LoggingLevelsRequest.h:154
Aws::IoT::Model::ListV2LoggingLevelsRequest::WithTargetType
ListV2LoggingLevelsRequest & WithTargetType(const LogTargetType &value)
Definition: ListV2LoggingLevelsRequest.h:70
Aws::IoT::Model::ListV2LoggingLevelsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListV2LoggingLevelsRequest.h:98
Aws::IoT::Model::ListV2LoggingLevelsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListV2LoggingLevelsRequest.h:112
Aws::IoT::Model::ListV2LoggingLevelsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListV2LoggingLevelsRequest.h:144
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::ListV2LoggingLevelsRequest::WithNextToken
ListV2LoggingLevelsRequest & WithNextToken(const char *value)
Definition: ListV2LoggingLevelsRequest.h:133
Aws::IoT::Model::ListV2LoggingLevelsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListV2LoggingLevelsRequest.h:149
Aws::IoT::Model::ListV2LoggingLevelsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListV2LoggingLevelsRequest.h:35
Aws::IoT::Model::ListV2LoggingLevelsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListV2LoggingLevelsRequest.h:91
Aws::IoT::Model::LogTargetType
LogTargetType
Definition: LogTargetType.h:17
Aws::IoT::Model::ListV2LoggingLevelsRequest::SetTargetType
void SetTargetType(LogTargetType &&value)
Definition: ListV2LoggingLevelsRequest.h:64
Aws::IoT::Model::ListV2LoggingLevelsRequest
Definition: ListV2LoggingLevelsRequest.h:27
Aws::IoT::Model::ListV2LoggingLevelsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListV2LoggingLevelsRequest.h:84
Aws::IoT::Model::ListV2LoggingLevelsRequest::GetTargetType
const LogTargetType & GetTargetType() const
Definition: ListV2LoggingLevelsRequest.h:46
Aws::IoT::Model::ListV2LoggingLevelsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
LogTargetType.h
Aws::IoT::Model::ListV2LoggingLevelsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListV2LoggingLevelsRequest.h:139
Aws::IoT::Model::ListV2LoggingLevelsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::ListV2LoggingLevelsRequest::TargetTypeHasBeenSet
bool TargetTypeHasBeenSet() const
Definition: ListV2LoggingLevelsRequest.h:52
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::ListV2LoggingLevelsRequest::SetTargetType
void SetTargetType(const LogTargetType &value)
Definition: ListV2LoggingLevelsRequest.h:58
Aws::IoT::Model::ListV2LoggingLevelsRequest::WithNextToken
ListV2LoggingLevelsRequest & WithNextToken(const Aws::String &value)
Definition: ListV2LoggingLevelsRequest.h:119
Aws::IoT::Model::ListV2LoggingLevelsRequest::ListV2LoggingLevelsRequest
ListV2LoggingLevelsRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ListV2LoggingLevelsRequest::WithNextToken
ListV2LoggingLevelsRequest & WithNextToken(Aws::String &&value)
Definition: ListV2LoggingLevelsRequest.h:126
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
IoTRequest.h
Aws::IoT::Model::ListV2LoggingLevelsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListV2LoggingLevelsRequest.h:105
Aws::IoT::Model::ListV2LoggingLevelsRequest::WithTargetType
ListV2LoggingLevelsRequest & WithTargetType(LogTargetType &&value)
Definition: ListV2LoggingLevelsRequest.h:76
IoT_EXPORTS.h