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>
49 template<
typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
51 template<
typename IdT = Aws::String>
62 template<
typename NameT = Aws::String>
63 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
64 template<
typename NameT = Aws::String>
75 template<
typename ResourceArnT = Aws::String>
76 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet =
true; m_resourceArn = std::forward<ResourceArnT>(value); }
77 template<
typename ResourceArnT = Aws::String>
88 template<
typename HealthCheckIdsT = Aws::Vector<Aws::String>>
89 void SetHealthCheckIds(HealthCheckIdsT&& value) { m_healthCheckIdsHasBeenSet =
true; m_healthCheckIds = std::forward<HealthCheckIdsT>(value); }
90 template<
typename HealthCheckIdsT = Aws::Vector<Aws::String>>
92 template<
typename HealthCheckIdsT = Aws::String>
93 Protection&
AddHealthCheckIds(HealthCheckIdsT&& value) { m_healthCheckIdsHasBeenSet =
true; m_healthCheckIds.emplace_back(std::forward<HealthCheckIdsT>(value));
return *
this; }
102 template<
typename ProtectionArnT = Aws::String>
103 void SetProtectionArn(ProtectionArnT&& value) { m_protectionArnHasBeenSet =
true; m_protectionArn = std::forward<ProtectionArnT>(value); }
104 template<
typename ProtectionArnT = Aws::String>
117 template<
typename ApplicationLayerAutomaticResponseConfigurationT = ApplicationLayerAutomaticResponseConfiguration>
118 void SetApplicationLayerAutomaticResponseConfiguration(ApplicationLayerAutomaticResponseConfigurationT&& value) { m_applicationLayerAutomaticResponseConfigurationHasBeenSet =
true; m_applicationLayerAutomaticResponseConfiguration = std::forward<ApplicationLayerAutomaticResponseConfigurationT>(value); }
119 template<
typename ApplicationLayerAutomaticResponseConfigurationT = ApplicationLayerAutomaticResponseConfiguration>
125 bool m_idHasBeenSet =
false;
128 bool m_nameHasBeenSet =
false;
131 bool m_resourceArnHasBeenSet =
false;
134 bool m_healthCheckIdsHasBeenSet =
false;
137 bool m_protectionArnHasBeenSet =
false;
140 bool m_applicationLayerAutomaticResponseConfigurationHasBeenSet =
false;
const Aws::String & GetName() const
Protection & WithResourceArn(ResourceArnT &&value)
bool ResourceArnHasBeenSet() const
AWS_SHIELD_API Protection(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetHealthCheckIds() const
bool ApplicationLayerAutomaticResponseConfigurationHasBeenSet() const
void SetProtectionArn(ProtectionArnT &&value)
const ApplicationLayerAutomaticResponseConfiguration & GetApplicationLayerAutomaticResponseConfiguration() const
bool ProtectionArnHasBeenSet() const
Protection & WithApplicationLayerAutomaticResponseConfiguration(ApplicationLayerAutomaticResponseConfigurationT &&value)
void SetResourceArn(ResourceArnT &&value)
bool HealthCheckIdsHasBeenSet() const
Protection & WithProtectionArn(ProtectionArnT &&value)
void SetName(NameT &&value)
AWS_SHIELD_API Protection & operator=(Aws::Utils::Json::JsonView jsonValue)
Protection & WithId(IdT &&value)
AWS_SHIELD_API Protection()=default
const Aws::String & GetProtectionArn() const
const Aws::String & GetResourceArn() const
void SetHealthCheckIds(HealthCheckIdsT &&value)
Protection & AddHealthCheckIds(HealthCheckIdsT &&value)
Protection & WithHealthCheckIds(HealthCheckIdsT &&value)
bool NameHasBeenSet() const
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
Protection & WithName(NameT &&value)
const Aws::String & GetId() const
bool IdHasBeenSet() const
void SetApplicationLayerAutomaticResponseConfiguration(ApplicationLayerAutomaticResponseConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue