AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DeleteAccountPolicyRequest.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#include <aws/logs/model/PolicyType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CloudWatchLogs {
16namespace Model {
17
21 public:
22 AWS_CLOUDWATCHLOGS_API DeleteAccountPolicyRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DeleteAccountPolicy"; }
29
30 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
31
32 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline const Aws::String& GetPolicyName() const { return m_policyName; }
39 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
40 template <typename PolicyNameT = Aws::String>
41 void SetPolicyName(PolicyNameT&& value) {
42 m_policyNameHasBeenSet = true;
43 m_policyName = std::forward<PolicyNameT>(value);
44 }
45 template <typename PolicyNameT = Aws::String>
47 SetPolicyName(std::forward<PolicyNameT>(value));
48 return *this;
49 }
51
53
56 inline PolicyType GetPolicyType() const { return m_policyType; }
57 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
58 inline void SetPolicyType(PolicyType value) {
59 m_policyTypeHasBeenSet = true;
60 m_policyType = value;
61 }
63 SetPolicyType(value);
64 return *this;
65 }
67 private:
68 Aws::String m_policyName;
69
70 PolicyType m_policyType{PolicyType::NOT_SET};
71 bool m_policyNameHasBeenSet = false;
72 bool m_policyTypeHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace CloudWatchLogs
77} // namespace Aws
AWS_CLOUDWATCHLOGS_API DeleteAccountPolicyRequest()=default
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
DeleteAccountPolicyRequest & WithPolicyType(PolicyType value)
DeleteAccountPolicyRequest & WithPolicyName(PolicyNameT &&value)
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