AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
StopServiceDeploymentRequest.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#include <aws/ecs/model/StopServiceDeploymentStopType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ECS {
16namespace Model {
17
21 public:
22 AWS_ECS_API StopServiceDeploymentRequest() = 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 "StopServiceDeployment"; }
29
30 AWS_ECS_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetServiceDeploymentArn() const { return m_serviceDeploymentArn; }
39 inline bool ServiceDeploymentArnHasBeenSet() const { return m_serviceDeploymentArnHasBeenSet; }
40 template <typename ServiceDeploymentArnT = Aws::String>
41 void SetServiceDeploymentArn(ServiceDeploymentArnT&& value) {
42 m_serviceDeploymentArnHasBeenSet = true;
43 m_serviceDeploymentArn = std::forward<ServiceDeploymentArnT>(value);
44 }
45 template <typename ServiceDeploymentArnT = Aws::String>
47 SetServiceDeploymentArn(std::forward<ServiceDeploymentArnT>(value));
48 return *this;
49 }
51
53
57 inline StopServiceDeploymentStopType GetStopType() const { return m_stopType; }
58 inline bool StopTypeHasBeenSet() const { return m_stopTypeHasBeenSet; }
60 m_stopTypeHasBeenSet = true;
61 m_stopType = value;
62 }
64 SetStopType(value);
65 return *this;
66 }
68 private:
69 Aws::String m_serviceDeploymentArn;
70
72 bool m_serviceDeploymentArnHasBeenSet = false;
73 bool m_stopTypeHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace ECS
78} // 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