AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartCapacityTaskRequest.h
1
6#pragma once
7#include <aws/outposts/Outposts_EXPORTS.h>
8#include <aws/outposts/OutpostsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/outposts/model/InstanceTypeCapacity.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Outposts
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_OUTPOSTS_API StartCapacityTaskRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "StartCapacityTask"; }
33
34 AWS_OUTPOSTS_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetOutpostIdentifier() const{ return m_outpostIdentifier; }
43 inline bool OutpostIdentifierHasBeenSet() const { return m_outpostIdentifierHasBeenSet; }
44 inline void SetOutpostIdentifier(const Aws::String& value) { m_outpostIdentifierHasBeenSet = true; m_outpostIdentifier = value; }
45 inline void SetOutpostIdentifier(Aws::String&& value) { m_outpostIdentifierHasBeenSet = true; m_outpostIdentifier = std::move(value); }
46 inline void SetOutpostIdentifier(const char* value) { m_outpostIdentifierHasBeenSet = true; m_outpostIdentifier.assign(value); }
48 inline StartCapacityTaskRequest& WithOutpostIdentifier(Aws::String&& value) { SetOutpostIdentifier(std::move(value)); return *this;}
49 inline StartCapacityTaskRequest& WithOutpostIdentifier(const char* value) { SetOutpostIdentifier(value); return *this;}
51
53
57 inline const Aws::String& GetOrderId() const{ return m_orderId; }
58 inline bool OrderIdHasBeenSet() const { return m_orderIdHasBeenSet; }
59 inline void SetOrderId(const Aws::String& value) { m_orderIdHasBeenSet = true; m_orderId = value; }
60 inline void SetOrderId(Aws::String&& value) { m_orderIdHasBeenSet = true; m_orderId = std::move(value); }
61 inline void SetOrderId(const char* value) { m_orderIdHasBeenSet = true; m_orderId.assign(value); }
62 inline StartCapacityTaskRequest& WithOrderId(const Aws::String& value) { SetOrderId(value); return *this;}
63 inline StartCapacityTaskRequest& WithOrderId(Aws::String&& value) { SetOrderId(std::move(value)); return *this;}
64 inline StartCapacityTaskRequest& WithOrderId(const char* value) { SetOrderId(value); return *this;}
66
68
71 inline const Aws::Vector<InstanceTypeCapacity>& GetInstancePools() const{ return m_instancePools; }
72 inline bool InstancePoolsHasBeenSet() const { return m_instancePoolsHasBeenSet; }
73 inline void SetInstancePools(const Aws::Vector<InstanceTypeCapacity>& value) { m_instancePoolsHasBeenSet = true; m_instancePools = value; }
74 inline void SetInstancePools(Aws::Vector<InstanceTypeCapacity>&& value) { m_instancePoolsHasBeenSet = true; m_instancePools = std::move(value); }
77 inline StartCapacityTaskRequest& AddInstancePools(const InstanceTypeCapacity& value) { m_instancePoolsHasBeenSet = true; m_instancePools.push_back(value); return *this; }
78 inline StartCapacityTaskRequest& AddInstancePools(InstanceTypeCapacity&& value) { m_instancePoolsHasBeenSet = true; m_instancePools.push_back(std::move(value)); return *this; }
80
82
87 inline bool GetDryRun() const{ return m_dryRun; }
88 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
89 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
90 inline StartCapacityTaskRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
92 private:
93
94 Aws::String m_outpostIdentifier;
95 bool m_outpostIdentifierHasBeenSet = false;
96
97 Aws::String m_orderId;
98 bool m_orderIdHasBeenSet = false;
99
100 Aws::Vector<InstanceTypeCapacity> m_instancePools;
101 bool m_instancePoolsHasBeenSet = false;
102
103 bool m_dryRun;
104 bool m_dryRunHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace Outposts
109} // namespace Aws
StartCapacityTaskRequest & WithInstancePools(Aws::Vector< InstanceTypeCapacity > &&value)
StartCapacityTaskRequest & AddInstancePools(const InstanceTypeCapacity &value)
StartCapacityTaskRequest & WithOutpostIdentifier(const char *value)
virtual const char * GetServiceRequestName() const override
StartCapacityTaskRequest & WithDryRun(bool value)
StartCapacityTaskRequest & WithOutpostIdentifier(const Aws::String &value)
const Aws::Vector< InstanceTypeCapacity > & GetInstancePools() const
StartCapacityTaskRequest & WithOrderId(const char *value)
void SetInstancePools(Aws::Vector< InstanceTypeCapacity > &&value)
StartCapacityTaskRequest & WithOrderId(const Aws::String &value)
StartCapacityTaskRequest & WithInstancePools(const Aws::Vector< InstanceTypeCapacity > &value)
void SetInstancePools(const Aws::Vector< InstanceTypeCapacity > &value)
AWS_OUTPOSTS_API Aws::String SerializePayload() const override
StartCapacityTaskRequest & AddInstancePools(InstanceTypeCapacity &&value)
StartCapacityTaskRequest & WithOrderId(Aws::String &&value)
StartCapacityTaskRequest & WithOutpostIdentifier(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector