AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateEventLogConfigurationRequest.h
1
6#pragma once
7#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
8#include <aws/iot-managed-integrations/IoTManagedIntegrationsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot-managed-integrations/model/LogLevel.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace IoTManagedIntegrations
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_IOTMANAGEDINTEGRATIONS_API CreateEventLogConfigurationRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateEventLogConfiguration"; }
33
34 AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetResourceType() const { return m_resourceType; }
42 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
43 template<typename ResourceTypeT = Aws::String>
44 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
45 template<typename ResourceTypeT = Aws::String>
46 CreateEventLogConfigurationRequest& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
48
50
53 inline const Aws::String& GetResourceId() const { return m_resourceId; }
54 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
55 template<typename ResourceIdT = Aws::String>
56 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
57 template<typename ResourceIdT = Aws::String>
58 CreateEventLogConfigurationRequest& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
60
62
65 inline LogLevel GetEventLogLevel() const { return m_eventLogLevel; }
66 inline bool EventLogLevelHasBeenSet() const { return m_eventLogLevelHasBeenSet; }
67 inline void SetEventLogLevel(LogLevel value) { m_eventLogLevelHasBeenSet = true; m_eventLogLevel = value; }
70
72
77 inline const Aws::String& GetClientToken() const { return m_clientToken; }
78 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
79 template<typename ClientTokenT = Aws::String>
80 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
81 template<typename ClientTokenT = Aws::String>
82 CreateEventLogConfigurationRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
84 private:
85
86 Aws::String m_resourceType;
87 bool m_resourceTypeHasBeenSet = false;
88
89 Aws::String m_resourceId;
90 bool m_resourceIdHasBeenSet = false;
91
92 LogLevel m_eventLogLevel{LogLevel::NOT_SET};
93 bool m_eventLogLevelHasBeenSet = false;
94
96 bool m_clientTokenHasBeenSet = true;
97 };
98
99} // namespace Model
100} // namespace IoTManagedIntegrations
101} // 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