AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DisassociateKmsKeyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/logs/CloudWatchLogs_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CloudWatchLogs {
15namespace Model {
16
20 public:
21 AWS_CLOUDWATCHLOGS_API DisassociateKmsKeyRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "DisassociateKmsKey"; }
28
29 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
30
31 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
39 inline const Aws::String& GetLogGroupName() const { return m_logGroupName; }
40 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
41 template <typename LogGroupNameT = Aws::String>
42 void SetLogGroupName(LogGroupNameT&& value) {
43 m_logGroupNameHasBeenSet = true;
44 m_logGroupName = std::forward<LogGroupNameT>(value);
45 }
46 template <typename LogGroupNameT = Aws::String>
48 SetLogGroupName(std::forward<LogGroupNameT>(value));
49 return *this;
50 }
52
54
73 inline const Aws::String& GetResourceIdentifier() const { return m_resourceIdentifier; }
74 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
75 template <typename ResourceIdentifierT = Aws::String>
76 void SetResourceIdentifier(ResourceIdentifierT&& value) {
77 m_resourceIdentifierHasBeenSet = true;
78 m_resourceIdentifier = std::forward<ResourceIdentifierT>(value);
79 }
80 template <typename ResourceIdentifierT = Aws::String>
81 DisassociateKmsKeyRequest& WithResourceIdentifier(ResourceIdentifierT&& value) {
82 SetResourceIdentifier(std::forward<ResourceIdentifierT>(value));
83 return *this;
84 }
86 private:
87 Aws::String m_logGroupName;
88
89 Aws::String m_resourceIdentifier;
90 bool m_logGroupNameHasBeenSet = false;
91 bool m_resourceIdentifierHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace CloudWatchLogs
96} // namespace Aws
DisassociateKmsKeyRequest & WithLogGroupName(LogGroupNameT &&value)
DisassociateKmsKeyRequest & WithResourceIdentifier(ResourceIdentifierT &&value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
AWS_CLOUDWATCHLOGS_API DisassociateKmsKeyRequest()=default
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String