AWS SDK for C++

AWS SDK for C++ Version 1.11.747

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
20 public:
21 AWS_ECS_API DeleteServiceRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "DeleteService"; }
28
29 AWS_ECS_API Aws::String SerializePayload() const override;
30
32
34
39 inline const Aws::String& GetCluster() const { return m_cluster; }
40 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
41 template <typename ClusterT = Aws::String>
42 void SetCluster(ClusterT&& value) {
43 m_clusterHasBeenSet = true;
44 m_cluster = std::forward<ClusterT>(value);
45 }
46 template <typename ClusterT = Aws::String>
47 DeleteServiceRequest& WithCluster(ClusterT&& value) {
48 SetCluster(std::forward<ClusterT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetService() const { return m_service; }
58 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
59 template <typename ServiceT = Aws::String>
60 void SetService(ServiceT&& value) {
61 m_serviceHasBeenSet = true;
62 m_service = std::forward<ServiceT>(value);
63 }
64 template <typename ServiceT = Aws::String>
65 DeleteServiceRequest& WithService(ServiceT&& value) {
66 SetService(std::forward<ServiceT>(value));
67 return *this;
68 }
70
72
77 inline bool GetForce() const { return m_force; }
78 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
79 inline void SetForce(bool value) {
80 m_forceHasBeenSet = true;
81 m_force = value;
82 }
83 inline DeleteServiceRequest& WithForce(bool value) {
84 SetForce(value);
85 return *this;
86 }
88 private:
89 Aws::String m_cluster;
90
91 Aws::String m_service;
92
93 bool m_force{false};
94 bool m_clusterHasBeenSet = false;
95 bool m_serviceHasBeenSet = false;
96 bool m_forceHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace ECS
101} // 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