AWS SDK for C++  1.9.132
AWS SDK for C++
DescribeMitigationActionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace IoT
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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 "DescribeMitigationAction"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetActionName() const{ return m_actionName; }
39 
43  inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
44 
48  inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; }
49 
53  inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); }
54 
58  inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); }
59 
63  inline DescribeMitigationActionRequest& WithActionName(const Aws::String& value) { SetActionName(value); return *this;}
64 
68  inline DescribeMitigationActionRequest& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;}
69 
73  inline DescribeMitigationActionRequest& WithActionName(const char* value) { SetActionName(value); return *this;}
74 
75  private:
76 
77  Aws::String m_actionName;
78  bool m_actionNameHasBeenSet;
79  };
80 
81 } // namespace Model
82 } // namespace IoT
83 } // namespace Aws
Aws::IoT::Model::DescribeMitigationActionRequest::WithActionName
DescribeMitigationActionRequest & WithActionName(const Aws::String &value)
Definition: DescribeMitigationActionRequest.h:63
Aws::IoT::Model::DescribeMitigationActionRequest::GetActionName
const Aws::String & GetActionName() const
Definition: DescribeMitigationActionRequest.h:38
Aws::IoT::Model::DescribeMitigationActionRequest::ActionNameHasBeenSet
bool ActionNameHasBeenSet() const
Definition: DescribeMitigationActionRequest.h:43
Aws::IoT::Model::DescribeMitigationActionRequest::SetActionName
void SetActionName(Aws::String &&value)
Definition: DescribeMitigationActionRequest.h:53
Aws::IoT::Model::DescribeMitigationActionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeMitigationActionRequest.h:30
Aws::IoT::Model::DescribeMitigationActionRequest::WithActionName
DescribeMitigationActionRequest & WithActionName(const char *value)
Definition: DescribeMitigationActionRequest.h:73
Aws::IoT::Model::DescribeMitigationActionRequest::SetActionName
void SetActionName(const char *value)
Definition: DescribeMitigationActionRequest.h:58
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::DescribeMitigationActionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::DescribeMitigationActionRequest
Definition: DescribeMitigationActionRequest.h:22
Aws::IoT::Model::DescribeMitigationActionRequest::DescribeMitigationActionRequest
DescribeMitigationActionRequest()
Aws::IoT::Model::DescribeMitigationActionRequest::WithActionName
DescribeMitigationActionRequest & WithActionName(Aws::String &&value)
Definition: DescribeMitigationActionRequest.h:68
Aws
Definition: AccessManagementClient.h:15
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
IoTRequest.h
Aws::IoT::Model::DescribeMitigationActionRequest::SetActionName
void SetActionName(const Aws::String &value)
Definition: DescribeMitigationActionRequest.h:48
IoT_EXPORTS.h