AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
45 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
46 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
49 inline EnableApplicationLayerAutomaticResponseRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
51
53
61 inline const ResponseAction& GetAction() const{ return m_action; }
62 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
63 inline void SetAction(const ResponseAction& value) { m_actionHasBeenSet = true; m_action = value; }
64 inline void SetAction(ResponseAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
66 inline EnableApplicationLayerAutomaticResponseRequest& WithAction(ResponseAction&& value) { SetAction(std::move(value)); return *this;}
68 private:
69
70 Aws::String m_resourceArn;
71 bool m_resourceArnHasBeenSet = false;
72
73 ResponseAction m_action;
74 bool m_actionHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace Shield
79} // namespace Aws
EnableApplicationLayerAutomaticResponseRequest & WithResourceArn(const Aws::String &value)
EnableApplicationLayerAutomaticResponseRequest & WithAction(const ResponseAction &value)
EnableApplicationLayerAutomaticResponseRequest & WithResourceArn(Aws::String &&value)
EnableApplicationLayerAutomaticResponseRequest & WithAction(ResponseAction &&value)
AWS_SHIELD_API Aws::String SerializePayload() const override
EnableApplicationLayerAutomaticResponseRequest & WithResourceArn(const char *value)
AWS_SHIELD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String