AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DeleteServiceRequest.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/ECSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace ECS
15{
16namespace Model
17{
18
22 {
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
36
38
43 inline const Aws::String& GetCluster() const { return m_cluster; }
44 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
45 template<typename ClusterT = Aws::String>
46 void SetCluster(ClusterT&& value) { m_clusterHasBeenSet = true; m_cluster = std::forward<ClusterT>(value); }
47 template<typename ClusterT = Aws::String>
48 DeleteServiceRequest& WithCluster(ClusterT&& value) { SetCluster(std::forward<ClusterT>(value)); return *this;}
50
52
55 inline const Aws::String& GetService() const { return m_service; }
56 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
57 template<typename ServiceT = Aws::String>
58 void SetService(ServiceT&& value) { m_serviceHasBeenSet = true; m_service = std::forward<ServiceT>(value); }
59 template<typename ServiceT = Aws::String>
60 DeleteServiceRequest& WithService(ServiceT&& value) { SetService(std::forward<ServiceT>(value)); return *this;}
62
64
69 inline bool GetForce() const { return m_force; }
70 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
71 inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
72 inline DeleteServiceRequest& WithForce(bool value) { SetForce(value); return *this;}
74 private:
75
76 Aws::String m_cluster;
77 bool m_clusterHasBeenSet = false;
78
79 Aws::String m_service;
80 bool m_serviceHasBeenSet = false;
81
82 bool m_force{false};
83 bool m_forceHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace ECS
88} // 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