AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartInstancesRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_EC2_API StartInstancesRequest();
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 "StartInstances"; }
32
33 AWS_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
44 inline const Aws::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
45 inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
46 inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
47 inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); }
49 inline StartInstancesRequest& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(std::move(value)); return *this;}
50 inline StartInstancesRequest& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
51 inline StartInstancesRequest& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
52 inline StartInstancesRequest& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
54
56
59 inline const Aws::String& GetAdditionalInfo() const{ return m_additionalInfo; }
60 inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; }
61 inline void SetAdditionalInfo(const Aws::String& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = value; }
62 inline void SetAdditionalInfo(Aws::String&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = std::move(value); }
63 inline void SetAdditionalInfo(const char* value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.assign(value); }
64 inline StartInstancesRequest& WithAdditionalInfo(const Aws::String& value) { SetAdditionalInfo(value); return *this;}
65 inline StartInstancesRequest& WithAdditionalInfo(Aws::String&& value) { SetAdditionalInfo(std::move(value)); return *this;}
66 inline StartInstancesRequest& WithAdditionalInfo(const char* value) { SetAdditionalInfo(value); return *this;}
68
70
76 inline bool GetDryRun() const{ return m_dryRun; }
77 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
78 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
79 inline StartInstancesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
81 private:
82
83 Aws::Vector<Aws::String> m_instanceIds;
84 bool m_instanceIdsHasBeenSet = false;
85
86 Aws::String m_additionalInfo;
87 bool m_additionalInfoHasBeenSet = false;
88
89 bool m_dryRun;
90 bool m_dryRunHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace EC2
95} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
StartInstancesRequest & WithAdditionalInfo(const Aws::String &value)
StartInstancesRequest & WithDryRun(bool value)
StartInstancesRequest & AddInstanceIds(Aws::String &&value)
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
AWS_EC2_API Aws::String SerializePayload() const override
StartInstancesRequest & AddInstanceIds(const char *value)
StartInstancesRequest & WithAdditionalInfo(Aws::String &&value)
StartInstancesRequest & AddInstanceIds(const Aws::String &value)
void SetAdditionalInfo(const Aws::String &value)
StartInstancesRequest & WithInstanceIds(const Aws::Vector< Aws::String > &value)
StartInstancesRequest & WithInstanceIds(Aws::Vector< Aws::String > &&value)
const Aws::String & GetAdditionalInfo() const
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
StartInstancesRequest & WithAdditionalInfo(const char *value)
const Aws::Vector< Aws::String > & GetInstanceIds() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector