AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutResourceLogLevelRequest.h
1
6#pragma once
7#include <aws/iotwireless/IoTWireless_EXPORTS.h>
8#include <aws/iotwireless/IoTWirelessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iotwireless/model/LogLevel.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace IoTWireless
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_IOTWIRELESS_API PutResourceLogLevelRequest() = default;
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 "PutResourceLogLevel"; }
36
37 AWS_IOTWIRELESS_API Aws::String SerializePayload() const override;
38
39 AWS_IOTWIRELESS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
44 inline const Aws::String& GetResourceIdentifier() const { return m_resourceIdentifier; }
45 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
46 template<typename ResourceIdentifierT = Aws::String>
47 void SetResourceIdentifier(ResourceIdentifierT&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::forward<ResourceIdentifierT>(value); }
48 template<typename ResourceIdentifierT = Aws::String>
49 PutResourceLogLevelRequest& WithResourceIdentifier(ResourceIdentifierT&& value) { SetResourceIdentifier(std::forward<ResourceIdentifierT>(value)); return *this;}
51
53
57 inline const Aws::String& GetResourceType() const { return m_resourceType; }
58 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
59 template<typename ResourceTypeT = Aws::String>
60 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
61 template<typename ResourceTypeT = Aws::String>
62 PutResourceLogLevelRequest& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
64
66
67 inline LogLevel GetLogLevel() const { return m_logLevel; }
68 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
69 inline void SetLogLevel(LogLevel value) { m_logLevelHasBeenSet = true; m_logLevel = value; }
70 inline PutResourceLogLevelRequest& WithLogLevel(LogLevel value) { SetLogLevel(value); return *this;}
72 private:
73
74 Aws::String m_resourceIdentifier;
75 bool m_resourceIdentifierHasBeenSet = false;
76
77 Aws::String m_resourceType;
78 bool m_resourceTypeHasBeenSet = false;
79
80 LogLevel m_logLevel{LogLevel::NOT_SET};
81 bool m_logLevelHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace IoTWireless
86} // namespace Aws
PutResourceLogLevelRequest & WithLogLevel(LogLevel value)
AWS_IOTWIRELESS_API PutResourceLogLevelRequest()=default
AWS_IOTWIRELESS_API Aws::String SerializePayload() const override
PutResourceLogLevelRequest & WithResourceIdentifier(ResourceIdentifierT &&value)
AWS_IOTWIRELESS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
PutResourceLogLevelRequest & WithResourceType(ResourceTypeT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String