AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeCommandsRequest.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 DescribeCommandsRequest();
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 "DescribeCommands"; }
32
33 AWS_OPSWORKS_API Aws::String SerializePayload() const override;
34
36
37
39
44 inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
45 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
46 inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
47 inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
48 inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
49 inline DescribeCommandsRequest& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
50 inline DescribeCommandsRequest& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
51 inline DescribeCommandsRequest& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
53
55
60 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
61 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
62 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
63 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
64 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
65 inline DescribeCommandsRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
66 inline DescribeCommandsRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
67 inline DescribeCommandsRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
69
71
76 inline const Aws::Vector<Aws::String>& GetCommandIds() const{ return m_commandIds; }
77 inline bool CommandIdsHasBeenSet() const { return m_commandIdsHasBeenSet; }
78 inline void SetCommandIds(const Aws::Vector<Aws::String>& value) { m_commandIdsHasBeenSet = true; m_commandIds = value; }
79 inline void SetCommandIds(Aws::Vector<Aws::String>&& value) { m_commandIdsHasBeenSet = true; m_commandIds = std::move(value); }
81 inline DescribeCommandsRequest& WithCommandIds(Aws::Vector<Aws::String>&& value) { SetCommandIds(std::move(value)); return *this;}
82 inline DescribeCommandsRequest& AddCommandIds(const Aws::String& value) { m_commandIdsHasBeenSet = true; m_commandIds.push_back(value); return *this; }
83 inline DescribeCommandsRequest& AddCommandIds(Aws::String&& value) { m_commandIdsHasBeenSet = true; m_commandIds.push_back(std::move(value)); return *this; }
84 inline DescribeCommandsRequest& AddCommandIds(const char* value) { m_commandIdsHasBeenSet = true; m_commandIds.push_back(value); return *this; }
86 private:
87
88 Aws::String m_deploymentId;
89 bool m_deploymentIdHasBeenSet = false;
90
91 Aws::String m_instanceId;
92 bool m_instanceIdHasBeenSet = false;
93
94 Aws::Vector<Aws::String> m_commandIds;
95 bool m_commandIdsHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace OpsWorks
100} // namespace Aws
DescribeCommandsRequest & WithDeploymentId(const Aws::String &value)
DescribeCommandsRequest & WithCommandIds(const Aws::Vector< Aws::String > &value)
void SetCommandIds(const Aws::Vector< Aws::String > &value)
DescribeCommandsRequest & AddCommandIds(Aws::String &&value)
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Aws::String > & GetCommandIds() const
DescribeCommandsRequest & WithDeploymentId(Aws::String &&value)
DescribeCommandsRequest & WithCommandIds(Aws::Vector< Aws::String > &&value)
DescribeCommandsRequest & WithInstanceId(const char *value)
DescribeCommandsRequest & WithInstanceId(const Aws::String &value)
DescribeCommandsRequest & WithDeploymentId(const char *value)
DescribeCommandsRequest & WithInstanceId(Aws::String &&value)
void SetCommandIds(Aws::Vector< Aws::String > &&value)
DescribeCommandsRequest & AddCommandIds(const char *value)
AWS_OPSWORKS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
DescribeCommandsRequest & AddCommandIds(const 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