AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Protection.h
1
6#pragma once
7#include <aws/shield/Shield_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/shield/model/ApplicationLayerAutomaticResponseConfiguration.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Shield
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SHIELD_API Protection();
38 AWS_SHIELD_API Protection(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetId() const{ return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
50 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
51 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
52 inline Protection& WithId(const Aws::String& value) { SetId(value); return *this;}
53 inline Protection& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
54 inline Protection& WithId(const char* value) { SetId(value); return *this;}
56
58
62 inline const Aws::String& GetName() const{ return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
65 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
66 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67 inline Protection& WithName(const Aws::String& value) { SetName(value); return *this;}
68 inline Protection& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
69 inline Protection& WithName(const char* value) { SetName(value); return *this;}
71
73
77 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
78 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
79 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
80 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
81 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
82 inline Protection& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
83 inline Protection& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
84 inline Protection& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
86
88
92 inline const Aws::Vector<Aws::String>& GetHealthCheckIds() const{ return m_healthCheckIds; }
93 inline bool HealthCheckIdsHasBeenSet() const { return m_healthCheckIdsHasBeenSet; }
94 inline void SetHealthCheckIds(const Aws::Vector<Aws::String>& value) { m_healthCheckIdsHasBeenSet = true; m_healthCheckIds = value; }
95 inline void SetHealthCheckIds(Aws::Vector<Aws::String>&& value) { m_healthCheckIdsHasBeenSet = true; m_healthCheckIds = std::move(value); }
96 inline Protection& WithHealthCheckIds(const Aws::Vector<Aws::String>& value) { SetHealthCheckIds(value); return *this;}
97 inline Protection& WithHealthCheckIds(Aws::Vector<Aws::String>&& value) { SetHealthCheckIds(std::move(value)); return *this;}
98 inline Protection& AddHealthCheckIds(const Aws::String& value) { m_healthCheckIdsHasBeenSet = true; m_healthCheckIds.push_back(value); return *this; }
99 inline Protection& AddHealthCheckIds(Aws::String&& value) { m_healthCheckIdsHasBeenSet = true; m_healthCheckIds.push_back(std::move(value)); return *this; }
100 inline Protection& AddHealthCheckIds(const char* value) { m_healthCheckIdsHasBeenSet = true; m_healthCheckIds.push_back(value); return *this; }
102
104
107 inline const Aws::String& GetProtectionArn() const{ return m_protectionArn; }
108 inline bool ProtectionArnHasBeenSet() const { return m_protectionArnHasBeenSet; }
109 inline void SetProtectionArn(const Aws::String& value) { m_protectionArnHasBeenSet = true; m_protectionArn = value; }
110 inline void SetProtectionArn(Aws::String&& value) { m_protectionArnHasBeenSet = true; m_protectionArn = std::move(value); }
111 inline void SetProtectionArn(const char* value) { m_protectionArnHasBeenSet = true; m_protectionArn.assign(value); }
112 inline Protection& WithProtectionArn(const Aws::String& value) { SetProtectionArn(value); return *this;}
113 inline Protection& WithProtectionArn(Aws::String&& value) { SetProtectionArn(std::move(value)); return *this;}
114 inline Protection& WithProtectionArn(const char* value) { SetProtectionArn(value); return *this;}
116
118
124 inline const ApplicationLayerAutomaticResponseConfiguration& GetApplicationLayerAutomaticResponseConfiguration() const{ return m_applicationLayerAutomaticResponseConfiguration; }
125 inline bool ApplicationLayerAutomaticResponseConfigurationHasBeenSet() const { return m_applicationLayerAutomaticResponseConfigurationHasBeenSet; }
126 inline void SetApplicationLayerAutomaticResponseConfiguration(const ApplicationLayerAutomaticResponseConfiguration& value) { m_applicationLayerAutomaticResponseConfigurationHasBeenSet = true; m_applicationLayerAutomaticResponseConfiguration = value; }
127 inline void SetApplicationLayerAutomaticResponseConfiguration(ApplicationLayerAutomaticResponseConfiguration&& value) { m_applicationLayerAutomaticResponseConfigurationHasBeenSet = true; m_applicationLayerAutomaticResponseConfiguration = std::move(value); }
131 private:
132
133 Aws::String m_id;
134 bool m_idHasBeenSet = false;
135
136 Aws::String m_name;
137 bool m_nameHasBeenSet = false;
138
139 Aws::String m_resourceArn;
140 bool m_resourceArnHasBeenSet = false;
141
142 Aws::Vector<Aws::String> m_healthCheckIds;
143 bool m_healthCheckIdsHasBeenSet = false;
144
145 Aws::String m_protectionArn;
146 bool m_protectionArnHasBeenSet = false;
147
148 ApplicationLayerAutomaticResponseConfiguration m_applicationLayerAutomaticResponseConfiguration;
149 bool m_applicationLayerAutomaticResponseConfigurationHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace Shield
154} // namespace Aws
const Aws::String & GetName() const
Definition Protection.h:62
AWS_SHIELD_API Protection(Aws::Utils::Json::JsonView jsonValue)
void SetHealthCheckIds(Aws::Vector< Aws::String > &&value)
Definition Protection.h:95
void SetProtectionArn(const char *value)
Definition Protection.h:111
const Aws::Vector< Aws::String > & GetHealthCheckIds() const
Definition Protection.h:92
void SetResourceArn(const Aws::String &value)
Definition Protection.h:79
void SetProtectionArn(const Aws::String &value)
Definition Protection.h:109
Protection & WithId(const char *value)
Definition Protection.h:54
bool ApplicationLayerAutomaticResponseConfigurationHasBeenSet() const
Definition Protection.h:125
Protection & WithName(Aws::String &&value)
Definition Protection.h:68
Protection & WithHealthCheckIds(Aws::Vector< Aws::String > &&value)
Definition Protection.h:97
void SetId(const char *value)
Definition Protection.h:51
void SetProtectionArn(Aws::String &&value)
Definition Protection.h:110
const ApplicationLayerAutomaticResponseConfiguration & GetApplicationLayerAutomaticResponseConfiguration() const
Definition Protection.h:124
void SetHealthCheckIds(const Aws::Vector< Aws::String > &value)
Definition Protection.h:94
Protection & WithResourceArn(const Aws::String &value)
Definition Protection.h:82
void SetApplicationLayerAutomaticResponseConfiguration(const ApplicationLayerAutomaticResponseConfiguration &value)
Definition Protection.h:126
Protection & AddHealthCheckIds(const Aws::String &value)
Definition Protection.h:98
void SetName(const char *value)
Definition Protection.h:66
Protection & WithApplicationLayerAutomaticResponseConfiguration(const ApplicationLayerAutomaticResponseConfiguration &value)
Definition Protection.h:128
bool HealthCheckIdsHasBeenSet() const
Definition Protection.h:93
void SetId(const Aws::String &value)
Definition Protection.h:49
Protection & WithId(Aws::String &&value)
Definition Protection.h:53
AWS_SHIELD_API Protection & operator=(Aws::Utils::Json::JsonView jsonValue)
Protection & WithProtectionArn(const char *value)
Definition Protection.h:114
Protection & WithResourceArn(Aws::String &&value)
Definition Protection.h:83
Protection & WithProtectionArn(Aws::String &&value)
Definition Protection.h:113
const Aws::String & GetProtectionArn() const
Definition Protection.h:107
const Aws::String & GetResourceArn() const
Definition Protection.h:77
Protection & AddHealthCheckIds(Aws::String &&value)
Definition Protection.h:99
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(const Aws::String &value)
Definition Protection.h:64
Protection & WithHealthCheckIds(const Aws::Vector< Aws::String > &value)
Definition Protection.h:96
Protection & WithProtectionArn(const Aws::String &value)
Definition Protection.h:112
Protection & WithName(const char *value)
Definition Protection.h:69
Protection & WithResourceArn(const char *value)
Definition Protection.h:84
void SetResourceArn(const char *value)
Definition Protection.h:81
const Aws::String & GetId() const
Definition Protection.h:47
Protection & WithId(const Aws::String &value)
Definition Protection.h:52
void SetId(Aws::String &&value)
Definition Protection.h:50
void SetResourceArn(Aws::String &&value)
Definition Protection.h:80
void SetName(Aws::String &&value)
Definition Protection.h:65
void SetApplicationLayerAutomaticResponseConfiguration(ApplicationLayerAutomaticResponseConfiguration &&value)
Definition Protection.h:127
Protection & WithApplicationLayerAutomaticResponseConfiguration(ApplicationLayerAutomaticResponseConfiguration &&value)
Definition Protection.h:129
Protection & AddHealthCheckIds(const char *value)
Definition Protection.h:100
Protection & WithName(const Aws::String &value)
Definition Protection.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue