AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeInstancesRequest.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/opsworks/OpsWorksRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace OpsWorks
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_OPSWORKS_API DescribeInstancesRequest() = default;
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 "DescribeInstances"; }
32
33 AWS_OPSWORKS_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetStackId() const { return m_stackId; }
44 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
45 template<typename StackIdT = Aws::String>
46 void SetStackId(StackIdT&& value) { m_stackIdHasBeenSet = true; m_stackId = std::forward<StackIdT>(value); }
47 template<typename StackIdT = Aws::String>
48 DescribeInstancesRequest& WithStackId(StackIdT&& value) { SetStackId(std::forward<StackIdT>(value)); return *this;}
50
52
56 inline const Aws::String& GetLayerId() const { return m_layerId; }
57 inline bool LayerIdHasBeenSet() const { return m_layerIdHasBeenSet; }
58 template<typename LayerIdT = Aws::String>
59 void SetLayerId(LayerIdT&& value) { m_layerIdHasBeenSet = true; m_layerId = std::forward<LayerIdT>(value); }
60 template<typename LayerIdT = Aws::String>
61 DescribeInstancesRequest& WithLayerId(LayerIdT&& value) { SetLayerId(std::forward<LayerIdT>(value)); return *this;}
63
65
70 inline const Aws::Vector<Aws::String>& GetInstanceIds() const { return m_instanceIds; }
71 inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
72 template<typename InstanceIdsT = Aws::Vector<Aws::String>>
73 void SetInstanceIds(InstanceIdsT&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::forward<InstanceIdsT>(value); }
74 template<typename InstanceIdsT = Aws::Vector<Aws::String>>
75 DescribeInstancesRequest& WithInstanceIds(InstanceIdsT&& value) { SetInstanceIds(std::forward<InstanceIdsT>(value)); return *this;}
76 template<typename InstanceIdsT = Aws::String>
77 DescribeInstancesRequest& AddInstanceIds(InstanceIdsT&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.emplace_back(std::forward<InstanceIdsT>(value)); return *this; }
79 private:
80
81 Aws::String m_stackId;
82 bool m_stackIdHasBeenSet = false;
83
84 Aws::String m_layerId;
85 bool m_layerIdHasBeenSet = false;
86
87 Aws::Vector<Aws::String> m_instanceIds;
88 bool m_instanceIdsHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace OpsWorks
93} // namespace Aws
virtual const char * GetServiceRequestName() const override
DescribeInstancesRequest & WithLayerId(LayerIdT &&value)
DescribeInstancesRequest & AddInstanceIds(InstanceIdsT &&value)
const Aws::Vector< Aws::String > & GetInstanceIds() const
AWS_OPSWORKS_API DescribeInstancesRequest()=default
DescribeInstancesRequest & WithStackId(StackIdT &&value)
DescribeInstancesRequest & WithInstanceIds(InstanceIdsT &&value)
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_OPSWORKS_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector