AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PutDestinationPolicyRequest.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 PutDestinationPolicyRequest() = 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 "PutDestinationPolicy"; }
28
29 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
30
31 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
37 inline const Aws::String& GetDestinationName() const { return m_destinationName; }
38 inline bool DestinationNameHasBeenSet() const { return m_destinationNameHasBeenSet; }
39 template <typename DestinationNameT = Aws::String>
40 void SetDestinationName(DestinationNameT&& value) {
41 m_destinationNameHasBeenSet = true;
42 m_destinationName = std::forward<DestinationNameT>(value);
43 }
44 template <typename DestinationNameT = Aws::String>
46 SetDestinationName(std::forward<DestinationNameT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetAccessPolicy() const { return m_accessPolicy; }
57 inline bool AccessPolicyHasBeenSet() const { return m_accessPolicyHasBeenSet; }
58 template <typename AccessPolicyT = Aws::String>
59 void SetAccessPolicy(AccessPolicyT&& value) {
60 m_accessPolicyHasBeenSet = true;
61 m_accessPolicy = std::forward<AccessPolicyT>(value);
62 }
63 template <typename AccessPolicyT = Aws::String>
65 SetAccessPolicy(std::forward<AccessPolicyT>(value));
66 return *this;
67 }
69
71
84 inline bool GetForceUpdate() const { return m_forceUpdate; }
85 inline bool ForceUpdateHasBeenSet() const { return m_forceUpdateHasBeenSet; }
86 inline void SetForceUpdate(bool value) {
87 m_forceUpdateHasBeenSet = true;
88 m_forceUpdate = value;
89 }
91 SetForceUpdate(value);
92 return *this;
93 }
95 private:
96 Aws::String m_destinationName;
97
98 Aws::String m_accessPolicy;
99
100 bool m_forceUpdate{false};
101 bool m_destinationNameHasBeenSet = false;
102 bool m_accessPolicyHasBeenSet = false;
103 bool m_forceUpdateHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace CloudWatchLogs
108} // namespace Aws
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutDestinationPolicyRequest & WithDestinationName(DestinationNameT &&value)
AWS_CLOUDWATCHLOGS_API PutDestinationPolicyRequest()=default
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
PutDestinationPolicyRequest & WithAccessPolicy(AccessPolicyT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String