AWS SDK for C++  1.8.129
AWS SDK for C++
StopAutomationExecutionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ssm/SSM_EXPORTS.h>
8 #include <aws/ssm/SSMRequest.h>
10 #include <aws/ssm/model/StopType.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SSM
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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 "StopAutomationExecution"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetAutomationExecutionId() const{ return m_automationExecutionId; }
42 
46  inline bool AutomationExecutionIdHasBeenSet() const { return m_automationExecutionIdHasBeenSet; }
47 
51  inline void SetAutomationExecutionId(const Aws::String& value) { m_automationExecutionIdHasBeenSet = true; m_automationExecutionId = value; }
52 
56  inline void SetAutomationExecutionId(Aws::String&& value) { m_automationExecutionIdHasBeenSet = true; m_automationExecutionId = std::move(value); }
57 
61  inline void SetAutomationExecutionId(const char* value) { m_automationExecutionIdHasBeenSet = true; m_automationExecutionId.assign(value); }
62 
66  inline StopAutomationExecutionRequest& WithAutomationExecutionId(const Aws::String& value) { SetAutomationExecutionId(value); return *this;}
67 
71  inline StopAutomationExecutionRequest& WithAutomationExecutionId(Aws::String&& value) { SetAutomationExecutionId(std::move(value)); return *this;}
72 
76  inline StopAutomationExecutionRequest& WithAutomationExecutionId(const char* value) { SetAutomationExecutionId(value); return *this;}
77 
78 
83  inline const StopType& GetType() const{ return m_type; }
84 
89  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
90 
95  inline void SetType(const StopType& value) { m_typeHasBeenSet = true; m_type = value; }
96 
101  inline void SetType(StopType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
102 
107  inline StopAutomationExecutionRequest& WithType(const StopType& value) { SetType(value); return *this;}
108 
113  inline StopAutomationExecutionRequest& WithType(StopType&& value) { SetType(std::move(value)); return *this;}
114 
115  private:
116 
117  Aws::String m_automationExecutionId;
118  bool m_automationExecutionIdHasBeenSet;
119 
120  StopType m_type;
121  bool m_typeHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace SSM
126 } // namespace Aws
Aws::SSM::Model::StopAutomationExecutionRequest::GetAutomationExecutionId
const Aws::String & GetAutomationExecutionId() const
Definition: StopAutomationExecutionRequest.h:41
Aws::SSM::Model::StopAutomationExecutionRequest::WithAutomationExecutionId
StopAutomationExecutionRequest & WithAutomationExecutionId(const Aws::String &value)
Definition: StopAutomationExecutionRequest.h:66
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SSM::Model::StopAutomationExecutionRequest::AutomationExecutionIdHasBeenSet
bool AutomationExecutionIdHasBeenSet() const
Definition: StopAutomationExecutionRequest.h:46
AWS_SSM_API
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:28
Aws::SSM::Model::StopAutomationExecutionRequest::WithType
StopAutomationExecutionRequest & WithType(StopType &&value)
Definition: StopAutomationExecutionRequest.h:113
SSM_EXPORTS.h
Aws::SSM::Model::StopAutomationExecutionRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: StopAutomationExecutionRequest.h:89
Aws::SSM::Model::StopAutomationExecutionRequest::SetAutomationExecutionId
void SetAutomationExecutionId(Aws::String &&value)
Definition: StopAutomationExecutionRequest.h:56
Aws::SSM::Model::StopAutomationExecutionRequest::SetType
void SetType(StopType &&value)
Definition: StopAutomationExecutionRequest.h:101
Aws::SSM::Model::StopAutomationExecutionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StopAutomationExecutionRequest.h:31
Aws::SSM::Model::StopAutomationExecutionRequest::WithAutomationExecutionId
StopAutomationExecutionRequest & WithAutomationExecutionId(Aws::String &&value)
Definition: StopAutomationExecutionRequest.h:71
Aws::SSM::Model::StopAutomationExecutionRequest::SetType
void SetType(const StopType &value)
Definition: StopAutomationExecutionRequest.h:95
Aws::SSM::Model::StopType
StopType
Definition: StopType.h:17
Aws::SSM::Model::StopAutomationExecutionRequest::SetAutomationExecutionId
void SetAutomationExecutionId(const Aws::String &value)
Definition: StopAutomationExecutionRequest.h:51
Aws::SSM::Model::StopAutomationExecutionRequest::StopAutomationExecutionRequest
StopAutomationExecutionRequest()
Aws::SSM::Model::StopAutomationExecutionRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::SMS::Model::AppValidationStrategy::NOT_SET
@ NOT_SET
StopType.h
Aws::SSM::Model::StopAutomationExecutionRequest::GetType
const StopType & GetType() const
Definition: StopAutomationExecutionRequest.h:83
Aws
Definition: AccessManagementClient.h:15
Aws::SSM::Model::StopAutomationExecutionRequest::WithType
StopAutomationExecutionRequest & WithType(const StopType &value)
Definition: StopAutomationExecutionRequest.h:107
Aws::SSM::Model::StopAutomationExecutionRequest::SetAutomationExecutionId
void SetAutomationExecutionId(const char *value)
Definition: StopAutomationExecutionRequest.h:61
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSM::Model::StopAutomationExecutionRequest::WithAutomationExecutionId
StopAutomationExecutionRequest & WithAutomationExecutionId(const char *value)
Definition: StopAutomationExecutionRequest.h:76
Aws::SSM::Model::StopAutomationExecutionRequest
Definition: StopAutomationExecutionRequest.h:23
Aws::SSM::SSMRequest
Definition: SSMRequest.h:17
SSMRequest.h
Aws::SSM::Model::StopAutomationExecutionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override