AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
BatchGetOnPremisesInstancesRequest.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/CodeDeployRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CodeDeploy
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_CODEDEPLOY_API BatchGetOnPremisesInstancesRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "BatchGetOnPremisesInstances"; }
36
37 AWS_CODEDEPLOY_API Aws::String SerializePayload() const override;
38
40
41
43
47 inline const Aws::Vector<Aws::String>& GetInstanceNames() const { return m_instanceNames; }
48 inline bool InstanceNamesHasBeenSet() const { return m_instanceNamesHasBeenSet; }
49 template<typename InstanceNamesT = Aws::Vector<Aws::String>>
50 void SetInstanceNames(InstanceNamesT&& value) { m_instanceNamesHasBeenSet = true; m_instanceNames = std::forward<InstanceNamesT>(value); }
51 template<typename InstanceNamesT = Aws::Vector<Aws::String>>
52 BatchGetOnPremisesInstancesRequest& WithInstanceNames(InstanceNamesT&& value) { SetInstanceNames(std::forward<InstanceNamesT>(value)); return *this;}
53 template<typename InstanceNamesT = Aws::String>
54 BatchGetOnPremisesInstancesRequest& AddInstanceNames(InstanceNamesT&& value) { m_instanceNamesHasBeenSet = true; m_instanceNames.emplace_back(std::forward<InstanceNamesT>(value)); return *this; }
56 private:
57
58 Aws::Vector<Aws::String> m_instanceNames;
59 bool m_instanceNamesHasBeenSet = false;
60 };
61
62} // namespace Model
63} // namespace CodeDeploy
64} // namespace Aws
AWS_CODEDEPLOY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchGetOnPremisesInstancesRequest & WithInstanceNames(InstanceNamesT &&value)
BatchGetOnPremisesInstancesRequest & AddInstanceNames(InstanceNamesT &&value)
AWS_CODEDEPLOY_API Aws::String SerializePayload() const override
AWS_CODEDEPLOY_API BatchGetOnPremisesInstancesRequest()=default
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