AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
45 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
46 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
47 inline UpdateServiceRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
48 inline UpdateServiceRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
49 inline UpdateServiceRequest& WithId(const char* value) { SetId(value); return *this;}
51
53
56 inline const ServiceChange& GetService() const{ return m_service; }
57 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
58 inline void SetService(const ServiceChange& value) { m_serviceHasBeenSet = true; m_service = value; }
59 inline void SetService(ServiceChange&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
60 inline UpdateServiceRequest& WithService(const ServiceChange& value) { SetService(value); return *this;}
61 inline UpdateServiceRequest& WithService(ServiceChange&& value) { SetService(std::move(value)); return *this;}
63 private:
64
65 Aws::String m_id;
66 bool m_idHasBeenSet = false;
67
68 ServiceChange m_service;
69 bool m_serviceHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace ServiceDiscovery
74} // namespace Aws
UpdateServiceRequest & WithId(const Aws::String &value)
AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override
UpdateServiceRequest & WithService(ServiceChange &&value)
virtual const char * GetServiceRequestName() const override
AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateServiceRequest & WithId(Aws::String &&value)
UpdateServiceRequest & WithService(const ServiceChange &value)
UpdateServiceRequest & WithId(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String