AWS SDK for C++  1.9.155
AWS SDK for C++
CreateServiceResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
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 ECS
24 {
25 namespace Model
26 {
28  {
29  public:
33 
34 
47  inline const Service& GetService() const{ return m_service; }
48 
61  inline void SetService(const Service& value) { m_service = value; }
62 
75  inline void SetService(Service&& value) { m_service = std::move(value); }
76 
89  inline CreateServiceResult& WithService(const Service& value) { SetService(value); return *this;}
90 
103  inline CreateServiceResult& WithService(Service&& value) { SetService(std::move(value)); return *this;}
104 
105  private:
106 
107  Service m_service;
108  };
109 
110 } // namespace Model
111 } // namespace ECS
112 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::CreateServiceResult::operator=
CreateServiceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ECS::Model::CreateServiceResult
Definition: CreateServiceResult.h:28
Aws::ECS::Model::CreateServiceResult::WithService
CreateServiceResult & WithService(Service &&value)
Definition: CreateServiceResult.h:103
Aws::ECS::Model::CreateServiceResult::CreateServiceResult
CreateServiceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::CreateServiceResult::GetService
const Service & GetService() const
Definition: CreateServiceResult.h:47
Aws::ECS::Model::CreateServiceResult::SetService
void SetService(Service &&value)
Definition: CreateServiceResult.h:75
Aws::ECS::Model::Service
Definition: Service.h:49
Aws::ECS::Model::CreateServiceResult::WithService
CreateServiceResult & WithService(const Service &value)
Definition: CreateServiceResult.h:89
Service.h
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::CreateServiceResult::SetService
void SetService(const Service &value)
Definition: CreateServiceResult.h:61
ECS_EXPORTS.h
Aws::ECS::Model::CreateServiceResult::CreateServiceResult
CreateServiceResult()