AWS SDK for C++  1.9.104
AWS SDK for C++
UpdateServiceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ServiceDiscovery
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 "UpdateService"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetId() const{ return m_id; }
42 
46  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 
51  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
52 
56  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
57 
61  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
62 
66  inline UpdateServiceRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
67 
71  inline UpdateServiceRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
72 
76  inline UpdateServiceRequest& WithId(const char* value) { SetId(value); return *this;}
77 
78 
82  inline const ServiceChange& GetService() const{ return m_service; }
83 
87  inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
88 
92  inline void SetService(const ServiceChange& value) { m_serviceHasBeenSet = true; m_service = value; }
93 
97  inline void SetService(ServiceChange&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
98 
102  inline UpdateServiceRequest& WithService(const ServiceChange& value) { SetService(value); return *this;}
103 
107  inline UpdateServiceRequest& WithService(ServiceChange&& value) { SetService(std::move(value)); return *this;}
108 
109  private:
110 
111  Aws::String m_id;
112  bool m_idHasBeenSet;
113 
114  ServiceChange m_service;
115  bool m_serviceHasBeenSet;
116  };
117 
118 } // namespace Model
119 } // namespace ServiceDiscovery
120 } // namespace Aws
ServiceDiscoveryRequest.h
Aws::ServiceDiscovery::Model::UpdateServiceRequest::WithService
UpdateServiceRequest & WithService(const ServiceChange &value)
Definition: UpdateServiceRequest.h:102
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::UpdateServiceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ServiceDiscovery::Model::UpdateServiceRequest::WithService
UpdateServiceRequest & WithService(ServiceChange &&value)
Definition: UpdateServiceRequest.h:107
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::UpdateServiceRequest::SetId
void SetId(Aws::String &&value)
Definition: UpdateServiceRequest.h:56
Aws::ServiceDiscovery::Model::UpdateServiceRequest::GetId
const Aws::String & GetId() const
Definition: UpdateServiceRequest.h:41
Aws::ServiceDiscovery::Model::UpdateServiceRequest::SetId
void SetId(const char *value)
Definition: UpdateServiceRequest.h:61
Aws::ServiceDiscovery::Model::UpdateServiceRequest::ServiceHasBeenSet
bool ServiceHasBeenSet() const
Definition: UpdateServiceRequest.h:87
Aws::ServiceDiscovery::Model::UpdateServiceRequest::SetService
void SetService(const ServiceChange &value)
Definition: UpdateServiceRequest.h:92
Aws::ServiceDiscovery::Model::UpdateServiceRequest::SetService
void SetService(ServiceChange &&value)
Definition: UpdateServiceRequest.h:97
Aws::ServiceDiscovery::ServiceDiscoveryRequest
Definition: ServiceDiscoveryRequest.h:17
Aws::ServiceDiscovery::Model::ServiceChange
Definition: ServiceChange.h:35
ServiceChange.h
AWSString.h
Aws::ServiceDiscovery::Model::UpdateServiceRequest::WithId
UpdateServiceRequest & WithId(Aws::String &&value)
Definition: UpdateServiceRequest.h:71
Aws::ServiceDiscovery::Model::UpdateServiceRequest
Definition: UpdateServiceRequest.h:23
Aws::ServiceDiscovery::Model::UpdateServiceRequest::UpdateServiceRequest
UpdateServiceRequest()
Aws::ServiceDiscovery::Model::UpdateServiceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ServiceDiscovery::Model::UpdateServiceRequest::SetId
void SetId(const Aws::String &value)
Definition: UpdateServiceRequest.h:51
Aws::ServiceDiscovery::Model::UpdateServiceRequest::GetService
const ServiceChange & GetService() const
Definition: UpdateServiceRequest.h:82
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::UpdateServiceRequest::WithId
UpdateServiceRequest & WithId(const Aws::String &value)
Definition: UpdateServiceRequest.h:66
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::UpdateServiceRequest::WithId
UpdateServiceRequest & WithId(const char *value)
Definition: UpdateServiceRequest.h:76
Aws::ServiceDiscovery::Model::UpdateServiceRequest::IdHasBeenSet
bool IdHasBeenSet() const
Definition: UpdateServiceRequest.h:46
Aws::ServiceDiscovery::Model::UpdateServiceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateServiceRequest.h:31