AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = 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 "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 template<typename DeploymentIdT = Aws::String>
47 void SetDeploymentId(DeploymentIdT&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::forward<DeploymentIdT>(value); }
48 template<typename DeploymentIdT = Aws::String>
49 DescribeCommandsRequest& WithDeploymentId(DeploymentIdT&& value) { SetDeploymentId(std::forward<DeploymentIdT>(value)); return *this;}
51
53
58 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
59 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
60 template<typename InstanceIdT = Aws::String>
61 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
62 template<typename InstanceIdT = Aws::String>
63 DescribeCommandsRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
65
67
72 inline const Aws::Vector<Aws::String>& GetCommandIds() const { return m_commandIds; }
73 inline bool CommandIdsHasBeenSet() const { return m_commandIdsHasBeenSet; }
74 template<typename CommandIdsT = Aws::Vector<Aws::String>>
75 void SetCommandIds(CommandIdsT&& value) { m_commandIdsHasBeenSet = true; m_commandIds = std::forward<CommandIdsT>(value); }
76 template<typename CommandIdsT = Aws::Vector<Aws::String>>
77 DescribeCommandsRequest& WithCommandIds(CommandIdsT&& value) { SetCommandIds(std::forward<CommandIdsT>(value)); return *this;}
78 template<typename CommandIdsT = Aws::String>
79 DescribeCommandsRequest& AddCommandIds(CommandIdsT&& value) { m_commandIdsHasBeenSet = true; m_commandIds.emplace_back(std::forward<CommandIdsT>(value)); return *this; }
81 private:
82
83 Aws::String m_deploymentId;
84 bool m_deploymentIdHasBeenSet = false;
85
86 Aws::String m_instanceId;
87 bool m_instanceIdHasBeenSet = false;
88
89 Aws::Vector<Aws::String> m_commandIds;
90 bool m_commandIdsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace OpsWorks
95} // namespace Aws
DescribeCommandsRequest & WithInstanceId(InstanceIdT &&value)
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Aws::String > & GetCommandIds() const
DescribeCommandsRequest & AddCommandIds(CommandIdsT &&value)
DescribeCommandsRequest & WithDeploymentId(DeploymentIdT &&value)
AWS_OPSWORKS_API DescribeCommandsRequest()=default
AWS_OPSWORKS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
DescribeCommandsRequest & WithCommandIds(CommandIdsT &&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