AWS SDK for C++  1.8.7
AWS SDK for C++
MonitorInstancesRequest.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 "MonitorInstances"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
43  inline const Aws::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
44 
48  inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
49 
53  inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
54 
58  inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); }
59 
63  inline MonitorInstancesRequest& WithInstanceIds(const Aws::Vector<Aws::String>& value) { SetInstanceIds(value); return *this;}
64 
68  inline MonitorInstancesRequest& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(std::move(value)); return *this;}
69 
73  inline MonitorInstancesRequest& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
74 
78  inline MonitorInstancesRequest& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
79 
83  inline MonitorInstancesRequest& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
84 
85 
92  inline bool GetDryRun() const{ return m_dryRun; }
93 
100  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
101 
108  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
109 
116  inline MonitorInstancesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
117 
118  private:
119 
120  Aws::Vector<Aws::String> m_instanceIds;
121  bool m_instanceIdsHasBeenSet;
122 
123  bool m_dryRun;
124  bool m_dryRunHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace EC2
129 } // namespace Aws
const Aws::Vector< Aws::String > & GetInstanceIds() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
MonitorInstancesRequest & AddInstanceIds(Aws::String &&value)
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
MonitorInstancesRequest & WithInstanceIds(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
MonitorInstancesRequest & WithDryRun(bool value)
virtual const char * GetServiceRequestName() const override
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
MonitorInstancesRequest & WithInstanceIds(const Aws::Vector< Aws::String > &value)
MonitorInstancesRequest & AddInstanceIds(const Aws::String &value)
MonitorInstancesRequest & AddInstanceIds(const char *value)