AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutIntegrationRequest.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/logs/model/ResourceConfig.h>
11#include <aws/logs/model/IntegrationType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CloudWatchLogs
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CLOUDWATCHLOGS_API PutIntegrationRequest() = 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 "PutIntegration"; }
33
34 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
35
36 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetIntegrationName() const { return m_integrationName; }
44 inline bool IntegrationNameHasBeenSet() const { return m_integrationNameHasBeenSet; }
45 template<typename IntegrationNameT = Aws::String>
46 void SetIntegrationName(IntegrationNameT&& value) { m_integrationNameHasBeenSet = true; m_integrationName = std::forward<IntegrationNameT>(value); }
47 template<typename IntegrationNameT = Aws::String>
48 PutIntegrationRequest& WithIntegrationName(IntegrationNameT&& value) { SetIntegrationName(std::forward<IntegrationNameT>(value)); return *this;}
50
52
56 inline const ResourceConfig& GetResourceConfig() const { return m_resourceConfig; }
57 inline bool ResourceConfigHasBeenSet() const { return m_resourceConfigHasBeenSet; }
58 template<typename ResourceConfigT = ResourceConfig>
59 void SetResourceConfig(ResourceConfigT&& value) { m_resourceConfigHasBeenSet = true; m_resourceConfig = std::forward<ResourceConfigT>(value); }
60 template<typename ResourceConfigT = ResourceConfig>
61 PutIntegrationRequest& WithResourceConfig(ResourceConfigT&& value) { SetResourceConfig(std::forward<ResourceConfigT>(value)); return *this;}
63
65
69 inline IntegrationType GetIntegrationType() const { return m_integrationType; }
70 inline bool IntegrationTypeHasBeenSet() const { return m_integrationTypeHasBeenSet; }
71 inline void SetIntegrationType(IntegrationType value) { m_integrationTypeHasBeenSet = true; m_integrationType = value; }
74 private:
75
76 Aws::String m_integrationName;
77 bool m_integrationNameHasBeenSet = false;
78
79 ResourceConfig m_resourceConfig;
80 bool m_resourceConfigHasBeenSet = false;
81
83 bool m_integrationTypeHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace CloudWatchLogs
88} // namespace Aws
PutIntegrationRequest & WithIntegrationName(IntegrationNameT &&value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutIntegrationRequest & WithIntegrationType(IntegrationType value)
AWS_CLOUDWATCHLOGS_API PutIntegrationRequest()=default
PutIntegrationRequest & WithResourceConfig(ResourceConfigT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String