AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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