AWS SDK for C++  1.9.106
AWS SDK for C++
AssignInstanceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace OpsWorks
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
42 
46  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
47 
51  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
52 
56  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
57 
61  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
62 
66  inline AssignInstanceRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
67 
71  inline AssignInstanceRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
72 
76  inline AssignInstanceRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
77 
78 
83  inline const Aws::Vector<Aws::String>& GetLayerIds() const{ return m_layerIds; }
84 
89  inline bool LayerIdsHasBeenSet() const { return m_layerIdsHasBeenSet; }
90 
95  inline void SetLayerIds(const Aws::Vector<Aws::String>& value) { m_layerIdsHasBeenSet = true; m_layerIds = value; }
96 
101  inline void SetLayerIds(Aws::Vector<Aws::String>&& value) { m_layerIdsHasBeenSet = true; m_layerIds = std::move(value); }
102 
107  inline AssignInstanceRequest& WithLayerIds(const Aws::Vector<Aws::String>& value) { SetLayerIds(value); return *this;}
108 
113  inline AssignInstanceRequest& WithLayerIds(Aws::Vector<Aws::String>&& value) { SetLayerIds(std::move(value)); return *this;}
114 
119  inline AssignInstanceRequest& AddLayerIds(const Aws::String& value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(value); return *this; }
120 
125  inline AssignInstanceRequest& AddLayerIds(Aws::String&& value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(std::move(value)); return *this; }
126 
131  inline AssignInstanceRequest& AddLayerIds(const char* value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(value); return *this; }
132 
133  private:
134 
135  Aws::String m_instanceId;
136  bool m_instanceIdHasBeenSet;
137 
138  Aws::Vector<Aws::String> m_layerIds;
139  bool m_layerIdsHasBeenSet;
140  };
141 
142 } // namespace Model
143 } // namespace OpsWorks
144 } // namespace Aws
Aws::OpsWorks::Model::AssignInstanceRequest::LayerIdsHasBeenSet
bool LayerIdsHasBeenSet() const
Definition: AssignInstanceRequest.h:89
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::AssignInstanceRequest::AddLayerIds
AssignInstanceRequest & AddLayerIds(const Aws::String &value)
Definition: AssignInstanceRequest.h:119
Aws::OpsWorks::Model::AssignInstanceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::OpsWorksRequest
Definition: OpsWorksRequest.h:17
Aws::OpsWorks::Model::AssignInstanceRequest::AddLayerIds
AssignInstanceRequest & AddLayerIds(Aws::String &&value)
Definition: AssignInstanceRequest.h:125
Aws::OpsWorks::Model::AssignInstanceRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: AssignInstanceRequest.h:51
OpsWorksRequest.h
Aws::OpsWorks::Model::AssignInstanceRequest::GetLayerIds
const Aws::Vector< Aws::String > & GetLayerIds() const
Definition: AssignInstanceRequest.h:83
Aws::OpsWorks::Model::AssignInstanceRequest::WithLayerIds
AssignInstanceRequest & WithLayerIds(const Aws::Vector< Aws::String > &value)
Definition: AssignInstanceRequest.h:107
Aws::OpsWorks::Model::AssignInstanceRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: AssignInstanceRequest.h:56
Aws::OpsWorks::Model::AssignInstanceRequest::WithInstanceId
AssignInstanceRequest & WithInstanceId(Aws::String &&value)
Definition: AssignInstanceRequest.h:71
Aws::OpsWorks::Model::AssignInstanceRequest::WithInstanceId
AssignInstanceRequest & WithInstanceId(const char *value)
Definition: AssignInstanceRequest.h:76
Aws::OpsWorks::Model::AssignInstanceRequest::AddLayerIds
AssignInstanceRequest & AddLayerIds(const char *value)
Definition: AssignInstanceRequest.h:131
AWSString.h
Aws::OpsWorks::Model::AssignInstanceRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: AssignInstanceRequest.h:61
Aws::OpsWorks::Model::AssignInstanceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssignInstanceRequest.h:31
Aws::OpsWorks::Model::AssignInstanceRequest
Definition: AssignInstanceRequest.h:23
Aws::OpsWorks::Model::AssignInstanceRequest::SetLayerIds
void SetLayerIds(Aws::Vector< Aws::String > &&value)
Definition: AssignInstanceRequest.h:101
Aws::OpsWorks::Model::AssignInstanceRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: AssignInstanceRequest.h:41
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::AssignInstanceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::OpsWorks::Model::AssignInstanceRequest::WithLayerIds
AssignInstanceRequest & WithLayerIds(Aws::Vector< Aws::String > &&value)
Definition: AssignInstanceRequest.h:113
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::AssignInstanceRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: AssignInstanceRequest.h:46
Aws::OpsWorks::Model::AssignInstanceRequest::WithInstanceId
AssignInstanceRequest & WithInstanceId(const Aws::String &value)
Definition: AssignInstanceRequest.h:66
Aws::OpsWorks::Model::AssignInstanceRequest::AssignInstanceRequest
AssignInstanceRequest()
Aws::OpsWorks::Model::AssignInstanceRequest::SetLayerIds
void SetLayerIds(const Aws::Vector< Aws::String > &value)
Definition: AssignInstanceRequest.h:95