AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateServiceRequest.h
1
6#pragma once
7#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
8#include <aws/servicediscovery/ServiceDiscoveryRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/servicediscovery/model/ServiceChange.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ServiceDiscovery
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SERVICEDISCOVERY_API UpdateServiceRequest() = default;
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 "UpdateService"; }
32
33 AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override;
34
35 AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template<typename IdT = Aws::String>
45 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
46 template<typename IdT = Aws::String>
47 UpdateServiceRequest& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
49
51
55 inline const ServiceChange& GetService() const { return m_service; }
56 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
57 template<typename ServiceT = ServiceChange>
58 void SetService(ServiceT&& value) { m_serviceHasBeenSet = true; m_service = std::forward<ServiceT>(value); }
59 template<typename ServiceT = ServiceChange>
60 UpdateServiceRequest& WithService(ServiceT&& value) { SetService(std::forward<ServiceT>(value)); return *this;}
62 private:
63
64 Aws::String m_id;
65 bool m_idHasBeenSet = false;
66
67 ServiceChange m_service;
68 bool m_serviceHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace ServiceDiscovery
73} // namespace Aws
AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_SERVICEDISCOVERY_API UpdateServiceRequest()=default
AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateServiceRequest & WithService(ServiceT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String