AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
46 inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
47 inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
48 inline DescribeInstancesRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
49 inline DescribeInstancesRequest& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
50 inline DescribeInstancesRequest& WithStackId(const char* value) { SetStackId(value); return *this;}
52
54
58 inline const Aws::String& GetLayerId() const{ return m_layerId; }
59 inline bool LayerIdHasBeenSet() const { return m_layerIdHasBeenSet; }
60 inline void SetLayerId(const Aws::String& value) { m_layerIdHasBeenSet = true; m_layerId = value; }
61 inline void SetLayerId(Aws::String&& value) { m_layerIdHasBeenSet = true; m_layerId = std::move(value); }
62 inline void SetLayerId(const char* value) { m_layerIdHasBeenSet = true; m_layerId.assign(value); }
63 inline DescribeInstancesRequest& WithLayerId(const Aws::String& value) { SetLayerId(value); return *this;}
64 inline DescribeInstancesRequest& WithLayerId(Aws::String&& value) { SetLayerId(std::move(value)); return *this;}
65 inline DescribeInstancesRequest& WithLayerId(const char* value) { SetLayerId(value); return *this;}
67
69
74 inline const Aws::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
75 inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
76 inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
77 inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); }
79 inline DescribeInstancesRequest& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(std::move(value)); return *this;}
80 inline DescribeInstancesRequest& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
81 inline DescribeInstancesRequest& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
82 inline DescribeInstancesRequest& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
84 private:
85
86 Aws::String m_stackId;
87 bool m_stackIdHasBeenSet = false;
88
89 Aws::String m_layerId;
90 bool m_layerIdHasBeenSet = false;
91
92 Aws::Vector<Aws::String> m_instanceIds;
93 bool m_instanceIdsHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace OpsWorks
98} // namespace Aws
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
DescribeInstancesRequest & WithInstanceIds(Aws::Vector< Aws::String > &&value)
DescribeInstancesRequest & AddInstanceIds(const char *value)
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
DescribeInstancesRequest & WithStackId(const Aws::String &value)
const Aws::Vector< Aws::String > & GetInstanceIds() const
DescribeInstancesRequest & WithStackId(Aws::String &&value)
DescribeInstancesRequest & WithInstanceIds(const Aws::Vector< Aws::String > &value)
DescribeInstancesRequest & WithLayerId(const char *value)
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeInstancesRequest & WithLayerId(Aws::String &&value)
DescribeInstancesRequest & WithStackId(const char *value)
DescribeInstancesRequest & AddInstanceIds(const Aws::String &value)
AWS_OPSWORKS_API Aws::String SerializePayload() const override
DescribeInstancesRequest & WithLayerId(const Aws::String &value)
DescribeInstancesRequest & AddInstanceIds(Aws::String &&value)
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