AWS SDK for C++  1.9.109
AWS SDK for C++
DeleteV2LoggingLevelRequest.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 "DeleteV2LoggingLevel"; }
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 DeleteV2LoggingLevelRequest& WithTargetType(const LogTargetType& value) { SetTargetType(value); return *this;}
71 
76  inline DeleteV2LoggingLevelRequest& WithTargetType(LogTargetType&& value) { SetTargetType(std::move(value)); return *this;}
77 
78 
82  inline const Aws::String& GetTargetName() const{ return m_targetName; }
83 
87  inline bool TargetNameHasBeenSet() const { return m_targetNameHasBeenSet; }
88 
92  inline void SetTargetName(const Aws::String& value) { m_targetNameHasBeenSet = true; m_targetName = value; }
93 
97  inline void SetTargetName(Aws::String&& value) { m_targetNameHasBeenSet = true; m_targetName = std::move(value); }
98 
102  inline void SetTargetName(const char* value) { m_targetNameHasBeenSet = true; m_targetName.assign(value); }
103 
107  inline DeleteV2LoggingLevelRequest& WithTargetName(const Aws::String& value) { SetTargetName(value); return *this;}
108 
112  inline DeleteV2LoggingLevelRequest& WithTargetName(Aws::String&& value) { SetTargetName(std::move(value)); return *this;}
113 
117  inline DeleteV2LoggingLevelRequest& WithTargetName(const char* value) { SetTargetName(value); return *this;}
118 
119  private:
120 
121  LogTargetType m_targetType;
122  bool m_targetTypeHasBeenSet;
123 
124  Aws::String m_targetName;
125  bool m_targetNameHasBeenSet;
126  };
127 
128 } // namespace Model
129 } // namespace IoT
130 } // namespace Aws
Aws::IoT::Model::DeleteV2LoggingLevelRequest::SetTargetName
void SetTargetName(const Aws::String &value)
Definition: DeleteV2LoggingLevelRequest.h:92
Aws::IoT::Model::DeleteV2LoggingLevelRequest::GetTargetType
const LogTargetType & GetTargetType() const
Definition: DeleteV2LoggingLevelRequest.h:46
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::DeleteV2LoggingLevelRequest::GetTargetName
const Aws::String & GetTargetName() const
Definition: DeleteV2LoggingLevelRequest.h:82
Aws::IoT::Model::DeleteV2LoggingLevelRequest::SetTargetName
void SetTargetName(const char *value)
Definition: DeleteV2LoggingLevelRequest.h:102
Aws::IoT::Model::LogTargetType
LogTargetType
Definition: LogTargetType.h:17
Aws::IoT::Model::DeleteV2LoggingLevelRequest::SetTargetType
void SetTargetType(const LogTargetType &value)
Definition: DeleteV2LoggingLevelRequest.h:58
Aws::IoT::Model::DeleteV2LoggingLevelRequest
Definition: DeleteV2LoggingLevelRequest.h:27
Aws::IoT::Model::DeleteV2LoggingLevelRequest::TargetTypeHasBeenSet
bool TargetTypeHasBeenSet() const
Definition: DeleteV2LoggingLevelRequest.h:52
LogTargetType.h
Aws::IoT::Model::DeleteV2LoggingLevelRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::DeleteV2LoggingLevelRequest::WithTargetName
DeleteV2LoggingLevelRequest & WithTargetName(const char *value)
Definition: DeleteV2LoggingLevelRequest.h:117
Aws::IoT::Model::DeleteV2LoggingLevelRequest::SetTargetName
void SetTargetName(Aws::String &&value)
Definition: DeleteV2LoggingLevelRequest.h:97
Aws::IoT::Model::DeleteV2LoggingLevelRequest::WithTargetType
DeleteV2LoggingLevelRequest & WithTargetType(LogTargetType &&value)
Definition: DeleteV2LoggingLevelRequest.h:76
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::DeleteV2LoggingLevelRequest::WithTargetType
DeleteV2LoggingLevelRequest & WithTargetType(const LogTargetType &value)
Definition: DeleteV2LoggingLevelRequest.h:70
Aws::IoT::Model::DeleteV2LoggingLevelRequest::DeleteV2LoggingLevelRequest
DeleteV2LoggingLevelRequest()
Aws::IoT::Model::DeleteV2LoggingLevelRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteV2LoggingLevelRequest.h:35
Aws::IoT::Model::DeleteV2LoggingLevelRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::DeleteV2LoggingLevelRequest::SetTargetType
void SetTargetType(LogTargetType &&value)
Definition: DeleteV2LoggingLevelRequest.h:64
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::DeleteV2LoggingLevelRequest::WithTargetName
DeleteV2LoggingLevelRequest & WithTargetName(const Aws::String &value)
Definition: DeleteV2LoggingLevelRequest.h:107
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::DeleteV2LoggingLevelRequest::TargetNameHasBeenSet
bool TargetNameHasBeenSet() const
Definition: DeleteV2LoggingLevelRequest.h:87
IoTRequest.h
Aws::IoT::Model::DeleteV2LoggingLevelRequest::WithTargetName
DeleteV2LoggingLevelRequest & WithTargetName(Aws::String &&value)
Definition: DeleteV2LoggingLevelRequest.h:112
IoT_EXPORTS.h