AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
BatchGetOnPremisesInstancesRequest.h
Go to the documentation of this file.
1
6#pragma once
11#include <utility>
12
13namespace Aws
14{
15namespace CodeDeploy
16{
17namespace Model
18{
19
27 {
28 public:
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
38
40
41
46 inline const Aws::Vector<Aws::String>& GetInstanceNames() const{ return m_instanceNames; }
47
52 inline bool InstanceNamesHasBeenSet() const { return m_instanceNamesHasBeenSet; }
53
58 inline void SetInstanceNames(const Aws::Vector<Aws::String>& value) { m_instanceNamesHasBeenSet = true; m_instanceNames = value; }
59
64 inline void SetInstanceNames(Aws::Vector<Aws::String>&& value) { m_instanceNamesHasBeenSet = true; m_instanceNames = std::move(value); }
65
71
77
82 inline BatchGetOnPremisesInstancesRequest& AddInstanceNames(const Aws::String& value) { m_instanceNamesHasBeenSet = true; m_instanceNames.push_back(value); return *this; }
83
88 inline BatchGetOnPremisesInstancesRequest& AddInstanceNames(Aws::String&& value) { m_instanceNamesHasBeenSet = true; m_instanceNames.push_back(std::move(value)); return *this; }
89
94 inline BatchGetOnPremisesInstancesRequest& AddInstanceNames(const char* value) { m_instanceNamesHasBeenSet = true; m_instanceNames.push_back(value); return *this; }
95
96 private:
97
98 Aws::Vector<Aws::String> m_instanceNames;
99 bool m_instanceNamesHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace CodeDeploy
104} // namespace Aws
#define AWS_CODEDEPLOY_API
AWS_CODEDEPLOY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchGetOnPremisesInstancesRequest & AddInstanceNames(Aws::String &&value)
BatchGetOnPremisesInstancesRequest & AddInstanceNames(const Aws::String &value)
BatchGetOnPremisesInstancesRequest & AddInstanceNames(const char *value)
AWS_CODEDEPLOY_API Aws::String SerializePayload() const override
BatchGetOnPremisesInstancesRequest & WithInstanceNames(const Aws::Vector< Aws::String > &value)
BatchGetOnPremisesInstancesRequest & WithInstanceNames(Aws::Vector< 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