AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CreateEventLogConfigurationRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot-managed-integrations/IoTManagedIntegrationsRequest.h>
10#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
11#include <aws/iot-managed-integrations/model/LogLevel.h>
12
13#include <utility>
14
15namespace Aws {
16namespace IoTManagedIntegrations {
17namespace Model {
18
22 public:
23 AWS_IOTMANAGEDINTEGRATIONS_API CreateEventLogConfigurationRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateEventLogConfiguration"; }
30
31 AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetResourceType() const { return m_resourceType; }
38 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
39 template <typename ResourceTypeT = Aws::String>
40 void SetResourceType(ResourceTypeT&& value) {
41 m_resourceTypeHasBeenSet = true;
42 m_resourceType = std::forward<ResourceTypeT>(value);
43 }
44 template <typename ResourceTypeT = Aws::String>
46 SetResourceType(std::forward<ResourceTypeT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetResourceId() const { return m_resourceId; }
56 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
57 template <typename ResourceIdT = Aws::String>
58 void SetResourceId(ResourceIdT&& value) {
59 m_resourceIdHasBeenSet = true;
60 m_resourceId = std::forward<ResourceIdT>(value);
61 }
62 template <typename ResourceIdT = Aws::String>
64 SetResourceId(std::forward<ResourceIdT>(value));
65 return *this;
66 }
68
70
73 inline LogLevel GetEventLogLevel() const { return m_eventLogLevel; }
74 inline bool EventLogLevelHasBeenSet() const { return m_eventLogLevelHasBeenSet; }
75 inline void SetEventLogLevel(LogLevel value) {
76 m_eventLogLevelHasBeenSet = true;
77 m_eventLogLevel = value;
78 }
80 SetEventLogLevel(value);
81 return *this;
82 }
84
86
91 inline const Aws::String& GetClientToken() const { return m_clientToken; }
92 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
93 template <typename ClientTokenT = Aws::String>
94 void SetClientToken(ClientTokenT&& value) {
95 m_clientTokenHasBeenSet = true;
96 m_clientToken = std::forward<ClientTokenT>(value);
97 }
98 template <typename ClientTokenT = Aws::String>
100 SetClientToken(std::forward<ClientTokenT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_resourceType;
106
107 Aws::String m_resourceId;
108
109 LogLevel m_eventLogLevel{LogLevel::NOT_SET};
110
112 bool m_resourceTypeHasBeenSet = false;
113 bool m_resourceIdHasBeenSet = false;
114 bool m_eventLogLevelHasBeenSet = false;
115 bool m_clientTokenHasBeenSet = true;
116};
117
118} // namespace Model
119} // namespace IoTManagedIntegrations
120} // namespace Aws
AWS_IOTMANAGEDINTEGRATIONS_API CreateEventLogConfigurationRequest()=default
CreateEventLogConfigurationRequest & WithClientToken(ClientTokenT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override
CreateEventLogConfigurationRequest & WithResourceType(ResourceTypeT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String