AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StopServiceDeploymentRequest.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 <aws/ecs/model/StopServiceDeploymentStopType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ECS
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_ECS_API StopServiceDeploymentRequest() = default;
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 "StopServiceDeployment"; }
32
33 AWS_ECS_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetServiceDeploymentArn() const { return m_serviceDeploymentArn; }
43 inline bool ServiceDeploymentArnHasBeenSet() const { return m_serviceDeploymentArnHasBeenSet; }
44 template<typename ServiceDeploymentArnT = Aws::String>
45 void SetServiceDeploymentArn(ServiceDeploymentArnT&& value) { m_serviceDeploymentArnHasBeenSet = true; m_serviceDeploymentArn = std::forward<ServiceDeploymentArnT>(value); }
46 template<typename ServiceDeploymentArnT = Aws::String>
47 StopServiceDeploymentRequest& WithServiceDeploymentArn(ServiceDeploymentArnT&& value) { SetServiceDeploymentArn(std::forward<ServiceDeploymentArnT>(value)); return *this;}
49
51
55 inline StopServiceDeploymentStopType GetStopType() const { return m_stopType; }
56 inline bool StopTypeHasBeenSet() const { return m_stopTypeHasBeenSet; }
57 inline void SetStopType(StopServiceDeploymentStopType value) { m_stopTypeHasBeenSet = true; m_stopType = value; }
60 private:
61
62 Aws::String m_serviceDeploymentArn;
63 bool m_serviceDeploymentArnHasBeenSet = false;
64
66 bool m_stopTypeHasBeenSet = false;
67 };
68
69} // namespace Model
70} // namespace ECS
71} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_ECS_API Aws::String SerializePayload() const override
void SetStopType(StopServiceDeploymentStopType value)
StopServiceDeploymentRequest & WithServiceDeploymentArn(ServiceDeploymentArnT &&value)
StopServiceDeploymentRequest & WithStopType(StopServiceDeploymentStopType value)
AWS_ECS_API StopServiceDeploymentRequest()=default
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetServiceDeploymentArn(ServiceDeploymentArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String