AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
EnableApplicationLayerAutomaticResponseRequest.h
1
6#pragma once
7#include <aws/shield/Shield_EXPORTS.h>
8#include <aws/shield/ShieldRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/shield/model/ResponseAction.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Shield
16{
17namespace 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 "EnableApplicationLayerAutomaticResponse"; }
32
33 AWS_SHIELD_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
43 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
44 template<typename ResourceArnT = Aws::String>
45 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
46 template<typename ResourceArnT = Aws::String>
47 EnableApplicationLayerAutomaticResponseRequest& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
49
51
59 inline const ResponseAction& GetAction() const { return m_action; }
60 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
61 template<typename ActionT = ResponseAction>
62 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
63 template<typename ActionT = ResponseAction>
64 EnableApplicationLayerAutomaticResponseRequest& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
66 private:
67
68 Aws::String m_resourceArn;
69 bool m_resourceArnHasBeenSet = false;
70
71 ResponseAction m_action;
72 bool m_actionHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace Shield
77} // namespace Aws
AWS_SHIELD_API Aws::String SerializePayload() const override
EnableApplicationLayerAutomaticResponseRequest & WithAction(ActionT &&value)
AWS_SHIELD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
EnableApplicationLayerAutomaticResponseRequest & WithResourceArn(ResourceArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String