AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
DeleteServiceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECSRequest.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace ECS {
15namespace Model {
16
23 public:
24 AWS_ECS_API DeleteServiceRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "DeleteService"; }
31
32 AWS_ECS_API Aws::String SerializePayload() const override;
33
35
37
42 inline const Aws::String& GetCluster() const { return m_cluster; }
43 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
44 template <typename ClusterT = Aws::String>
45 void SetCluster(ClusterT&& value) {
46 m_clusterHasBeenSet = true;
47 m_cluster = std::forward<ClusterT>(value);
48 }
49 template <typename ClusterT = Aws::String>
50 DeleteServiceRequest& WithCluster(ClusterT&& value) {
51 SetCluster(std::forward<ClusterT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetService() const { return m_service; }
61 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
62 template <typename ServiceT = Aws::String>
63 void SetService(ServiceT&& value) {
64 m_serviceHasBeenSet = true;
65 m_service = std::forward<ServiceT>(value);
66 }
67 template <typename ServiceT = Aws::String>
68 DeleteServiceRequest& WithService(ServiceT&& value) {
69 SetService(std::forward<ServiceT>(value));
70 return *this;
71 }
73
75
80 inline bool GetForce() const { return m_force; }
81 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
82 inline void SetForce(bool value) {
83 m_forceHasBeenSet = true;
84 m_force = value;
85 }
86 inline DeleteServiceRequest& WithForce(bool value) {
87 SetForce(value);
88 return *this;
89 }
91 private:
92 Aws::String m_cluster;
93
94 Aws::String m_service;
95
96 bool m_force{false};
97 bool m_clusterHasBeenSet = false;
98 bool m_serviceHasBeenSet = false;
99 bool m_forceHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace ECS
104} // namespace Aws
AWS_ECS_API DeleteServiceRequest()=default
DeleteServiceRequest & WithCluster(ClusterT &&value)
DeleteServiceRequest & WithService(ServiceT &&value)
virtual const char * GetServiceRequestName() const override
DeleteServiceRequest & WithForce(bool value)
AWS_ECS_API Aws::String SerializePayload() const override
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String