AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DeleteServiceAttributesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/servicediscovery/ServiceDiscoveryRequest.h>
10#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ServiceDiscovery {
16namespace Model {
17
21 public:
22 AWS_SERVICEDISCOVERY_API DeleteServiceAttributesRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DeleteServiceAttributes"; }
29
30 AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override;
31
32 AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
43 inline const Aws::String& GetServiceId() const { return m_serviceId; }
44 inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; }
45 template <typename ServiceIdT = Aws::String>
46 void SetServiceId(ServiceIdT&& value) {
47 m_serviceIdHasBeenSet = true;
48 m_serviceId = std::forward<ServiceIdT>(value);
49 }
50 template <typename ServiceIdT = Aws::String>
52 SetServiceId(std::forward<ServiceIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<Aws::String>& GetAttributes() const { return m_attributes; }
62 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
63 template <typename AttributesT = Aws::Vector<Aws::String>>
64 void SetAttributes(AttributesT&& value) {
65 m_attributesHasBeenSet = true;
66 m_attributes = std::forward<AttributesT>(value);
67 }
68 template <typename AttributesT = Aws::Vector<Aws::String>>
70 SetAttributes(std::forward<AttributesT>(value));
71 return *this;
72 }
73 template <typename AttributesT = Aws::String>
75 m_attributesHasBeenSet = true;
76 m_attributes.emplace_back(std::forward<AttributesT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_serviceId;
82
83 Aws::Vector<Aws::String> m_attributes;
84 bool m_serviceIdHasBeenSet = false;
85 bool m_attributesHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace ServiceDiscovery
90} // namespace Aws
AWS_SERVICEDISCOVERY_API DeleteServiceAttributesRequest()=default
DeleteServiceAttributesRequest & WithAttributes(AttributesT &&value)
DeleteServiceAttributesRequest & WithServiceId(ServiceIdT &&value)
AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override
AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DeleteServiceAttributesRequest & AddAttributes(AttributesT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector