AWS SDK for C++  1.9.123
AWS SDK for C++
DeleteFlowLogsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace EC2
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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 "DeleteFlowLogs"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
46  inline bool GetDryRun() const{ return m_dryRun; }
47 
54  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
55 
62  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
63 
70  inline DeleteFlowLogsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
71 
72 
77  inline const Aws::Vector<Aws::String>& GetFlowLogIds() const{ return m_flowLogIds; }
78 
83  inline bool FlowLogIdsHasBeenSet() const { return m_flowLogIdsHasBeenSet; }
84 
89  inline void SetFlowLogIds(const Aws::Vector<Aws::String>& value) { m_flowLogIdsHasBeenSet = true; m_flowLogIds = value; }
90 
95  inline void SetFlowLogIds(Aws::Vector<Aws::String>&& value) { m_flowLogIdsHasBeenSet = true; m_flowLogIds = std::move(value); }
96 
101  inline DeleteFlowLogsRequest& WithFlowLogIds(const Aws::Vector<Aws::String>& value) { SetFlowLogIds(value); return *this;}
102 
107  inline DeleteFlowLogsRequest& WithFlowLogIds(Aws::Vector<Aws::String>&& value) { SetFlowLogIds(std::move(value)); return *this;}
108 
113  inline DeleteFlowLogsRequest& AddFlowLogIds(const Aws::String& value) { m_flowLogIdsHasBeenSet = true; m_flowLogIds.push_back(value); return *this; }
114 
119  inline DeleteFlowLogsRequest& AddFlowLogIds(Aws::String&& value) { m_flowLogIdsHasBeenSet = true; m_flowLogIds.push_back(std::move(value)); return *this; }
120 
125  inline DeleteFlowLogsRequest& AddFlowLogIds(const char* value) { m_flowLogIdsHasBeenSet = true; m_flowLogIds.push_back(value); return *this; }
126 
127  private:
128 
129  bool m_dryRun;
130  bool m_dryRunHasBeenSet;
131 
132  Aws::Vector<Aws::String> m_flowLogIds;
133  bool m_flowLogIdsHasBeenSet;
134  };
135 
136 } // namespace Model
137 } // namespace EC2
138 } // namespace Aws
Aws::EC2::Model::DeleteFlowLogsRequest::WithDryRun
DeleteFlowLogsRequest & WithDryRun(bool value)
Definition: DeleteFlowLogsRequest.h:70
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DeleteFlowLogsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DeleteFlowLogsRequest::GetDryRun
bool GetDryRun() const
Definition: DeleteFlowLogsRequest.h:46
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DeleteFlowLogsRequest::WithFlowLogIds
DeleteFlowLogsRequest & WithFlowLogIds(const Aws::Vector< Aws::String > &value)
Definition: DeleteFlowLogsRequest.h:101
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EC2::Model::DeleteFlowLogsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteFlowLogsRequest.h:31
Aws::EC2::Model::DeleteFlowLogsRequest::AddFlowLogIds
DeleteFlowLogsRequest & AddFlowLogIds(Aws::String &&value)
Definition: DeleteFlowLogsRequest.h:119
Aws::EC2::Model::DeleteFlowLogsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DeleteFlowLogsRequest::FlowLogIdsHasBeenSet
bool FlowLogIdsHasBeenSet() const
Definition: DeleteFlowLogsRequest.h:83
Aws::EC2::Model::DeleteFlowLogsRequest::SetDryRun
void SetDryRun(bool value)
Definition: DeleteFlowLogsRequest.h:62
Aws::EC2::Model::DeleteFlowLogsRequest::SetFlowLogIds
void SetFlowLogIds(Aws::Vector< Aws::String > &&value)
Definition: DeleteFlowLogsRequest.h:95
EC2Request.h
Aws::EC2::Model::DeleteFlowLogsRequest::AddFlowLogIds
DeleteFlowLogsRequest & AddFlowLogIds(const char *value)
Definition: DeleteFlowLogsRequest.h:125
AWSString.h
Aws::EC2::Model::DeleteFlowLogsRequest::SetFlowLogIds
void SetFlowLogIds(const Aws::Vector< Aws::String > &value)
Definition: DeleteFlowLogsRequest.h:89
Aws::EC2::Model::DeleteFlowLogsRequest::GetFlowLogIds
const Aws::Vector< Aws::String > & GetFlowLogIds() const
Definition: DeleteFlowLogsRequest.h:77
Aws::EC2::Model::DeleteFlowLogsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DeleteFlowLogsRequest.h:54
Aws::EC2::Model::DeleteFlowLogsRequest::DeleteFlowLogsRequest
DeleteFlowLogsRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DeleteFlowLogsRequest::WithFlowLogIds
DeleteFlowLogsRequest & WithFlowLogIds(Aws::Vector< Aws::String > &&value)
Definition: DeleteFlowLogsRequest.h:107
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DeleteFlowLogsRequest
Definition: DeleteFlowLogsRequest.h:23
Aws::EC2::Model::DeleteFlowLogsRequest::AddFlowLogIds
DeleteFlowLogsRequest & AddFlowLogIds(const Aws::String &value)
Definition: DeleteFlowLogsRequest.h:113
EC2_EXPORTS.h