AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssignInstanceRequest.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 AssignInstanceRequest();
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 "AssignInstance"; }
32
33 AWS_OPSWORKS_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
43 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
44 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
45 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
46 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
47 inline AssignInstanceRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
48 inline AssignInstanceRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
49 inline AssignInstanceRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
51
53
57 inline const Aws::Vector<Aws::String>& GetLayerIds() const{ return m_layerIds; }
58 inline bool LayerIdsHasBeenSet() const { return m_layerIdsHasBeenSet; }
59 inline void SetLayerIds(const Aws::Vector<Aws::String>& value) { m_layerIdsHasBeenSet = true; m_layerIds = value; }
60 inline void SetLayerIds(Aws::Vector<Aws::String>&& value) { m_layerIdsHasBeenSet = true; m_layerIds = std::move(value); }
61 inline AssignInstanceRequest& WithLayerIds(const Aws::Vector<Aws::String>& value) { SetLayerIds(value); return *this;}
62 inline AssignInstanceRequest& WithLayerIds(Aws::Vector<Aws::String>&& value) { SetLayerIds(std::move(value)); return *this;}
63 inline AssignInstanceRequest& AddLayerIds(const Aws::String& value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(value); return *this; }
64 inline AssignInstanceRequest& AddLayerIds(Aws::String&& value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(std::move(value)); return *this; }
65 inline AssignInstanceRequest& AddLayerIds(const char* value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(value); return *this; }
67 private:
68
69 Aws::String m_instanceId;
70 bool m_instanceIdHasBeenSet = false;
71
72 Aws::Vector<Aws::String> m_layerIds;
73 bool m_layerIdsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace OpsWorks
78} // namespace Aws
const Aws::Vector< Aws::String > & GetLayerIds() const
AssignInstanceRequest & WithLayerIds(const Aws::Vector< Aws::String > &value)
AssignInstanceRequest & WithInstanceId(const Aws::String &value)
AWS_OPSWORKS_API Aws::String SerializePayload() const override
void SetLayerIds(const Aws::Vector< Aws::String > &value)
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AssignInstanceRequest & AddLayerIds(const Aws::String &value)
AssignInstanceRequest & WithInstanceId(const char *value)
AssignInstanceRequest & WithInstanceId(Aws::String &&value)
AssignInstanceRequest & AddLayerIds(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
AssignInstanceRequest & AddLayerIds(const char *value)
void SetLayerIds(Aws::Vector< Aws::String > &&value)
AssignInstanceRequest & WithLayerIds(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