AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DeleteFlowLogsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EC2 {
16namespace Model {
17
21 public:
22 AWS_EC2_API DeleteFlowLogsRequest() = 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 "DeleteFlowLogs"; }
29
30 AWS_EC2_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
43 inline bool GetDryRun() const { return m_dryRun; }
44 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
45 inline void SetDryRun(bool value) {
46 m_dryRunHasBeenSet = true;
47 m_dryRun = value;
48 }
49 inline DeleteFlowLogsRequest& WithDryRun(bool value) {
50 SetDryRun(value);
51 return *this;
52 }
54
56
60 inline const Aws::Vector<Aws::String>& GetFlowLogIds() const { return m_flowLogIds; }
61 inline bool FlowLogIdsHasBeenSet() const { return m_flowLogIdsHasBeenSet; }
62 template <typename FlowLogIdsT = Aws::Vector<Aws::String>>
63 void SetFlowLogIds(FlowLogIdsT&& value) {
64 m_flowLogIdsHasBeenSet = true;
65 m_flowLogIds = std::forward<FlowLogIdsT>(value);
66 }
67 template <typename FlowLogIdsT = Aws::Vector<Aws::String>>
68 DeleteFlowLogsRequest& WithFlowLogIds(FlowLogIdsT&& value) {
69 SetFlowLogIds(std::forward<FlowLogIdsT>(value));
70 return *this;
71 }
72 template <typename FlowLogIdsT = Aws::String>
73 DeleteFlowLogsRequest& AddFlowLogIds(FlowLogIdsT&& value) {
74 m_flowLogIdsHasBeenSet = true;
75 m_flowLogIds.emplace_back(std::forward<FlowLogIdsT>(value));
76 return *this;
77 }
79 private:
80 bool m_dryRun{false};
81
82 Aws::Vector<Aws::String> m_flowLogIds;
83 bool m_dryRunHasBeenSet = false;
84 bool m_flowLogIdsHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace EC2
89} // namespace Aws
DeleteFlowLogsRequest & WithDryRun(bool value)
DeleteFlowLogsRequest & WithFlowLogIds(FlowLogIdsT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DeleteFlowLogsRequest & AddFlowLogIds(FlowLogIdsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_EC2_API DeleteFlowLogsRequest()=default
AWS_EC2_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetFlowLogIds() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector