AWS SDK for C++  1.9.106
AWS SDK for C++
CreateInstanceResult.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 template<typename RESULT_TYPE>
14 class AmazonWebServiceResult;
15 
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21 } // namespace Json
22 } // namespace Utils
23 namespace OpsWorks
24 {
25 namespace Model
26 {
34  {
35  public:
39 
40 
44  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
45 
49  inline void SetInstanceId(const Aws::String& value) { m_instanceId = value; }
50 
54  inline void SetInstanceId(Aws::String&& value) { m_instanceId = std::move(value); }
55 
59  inline void SetInstanceId(const char* value) { m_instanceId.assign(value); }
60 
64  inline CreateInstanceResult& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
65 
69  inline CreateInstanceResult& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
70 
74  inline CreateInstanceResult& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
75 
76  private:
77 
78  Aws::String m_instanceId;
79  };
80 
81 } // namespace Model
82 } // namespace OpsWorks
83 } // namespace Aws
Aws::OpsWorks::Model::CreateInstanceResult::SetInstanceId
void SetInstanceId(const char *value)
Definition: CreateInstanceResult.h:59
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::CreateInstanceResult::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: CreateInstanceResult.h:49
Aws::OpsWorks::Model::CreateInstanceResult::CreateInstanceResult
CreateInstanceResult()
Aws::OpsWorks::Model::CreateInstanceResult::WithInstanceId
CreateInstanceResult & WithInstanceId(const Aws::String &value)
Definition: CreateInstanceResult.h:64
Aws::OpsWorks::Model::CreateInstanceResult::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: CreateInstanceResult.h:44
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::CreateInstanceResult
Definition: CreateInstanceResult.h:34
Aws::OpsWorks::Model::CreateInstanceResult::WithInstanceId
CreateInstanceResult & WithInstanceId(const char *value)
Definition: CreateInstanceResult.h:74
AWSString.h
Aws::OpsWorks::Model::CreateInstanceResult::operator=
CreateInstanceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::OpsWorks::Model::CreateInstanceResult::CreateInstanceResult
CreateInstanceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::CreateInstanceResult::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: CreateInstanceResult.h:54
Aws::OpsWorks::Model::CreateInstanceResult::WithInstanceId
CreateInstanceResult & WithInstanceId(Aws::String &&value)
Definition: CreateInstanceResult.h:69