feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,145 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/ActivatedRule.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
ActivatedRule::ActivatedRule() :
m_priority(0),
m_priorityHasBeenSet(false),
m_ruleIdHasBeenSet(false),
m_actionHasBeenSet(false),
m_overrideActionHasBeenSet(false),
m_type(WafRuleType::NOT_SET),
m_typeHasBeenSet(false),
m_excludedRulesHasBeenSet(false)
{
}
ActivatedRule::ActivatedRule(JsonView jsonValue) :
m_priority(0),
m_priorityHasBeenSet(false),
m_ruleIdHasBeenSet(false),
m_actionHasBeenSet(false),
m_overrideActionHasBeenSet(false),
m_type(WafRuleType::NOT_SET),
m_typeHasBeenSet(false),
m_excludedRulesHasBeenSet(false)
{
*this = jsonValue;
}
ActivatedRule& ActivatedRule::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Priority"))
{
m_priority = jsonValue.GetInteger("Priority");
m_priorityHasBeenSet = true;
}
if(jsonValue.ValueExists("RuleId"))
{
m_ruleId = jsonValue.GetString("RuleId");
m_ruleIdHasBeenSet = true;
}
if(jsonValue.ValueExists("Action"))
{
m_action = jsonValue.GetObject("Action");
m_actionHasBeenSet = true;
}
if(jsonValue.ValueExists("OverrideAction"))
{
m_overrideAction = jsonValue.GetObject("OverrideAction");
m_overrideActionHasBeenSet = true;
}
if(jsonValue.ValueExists("Type"))
{
m_type = WafRuleTypeMapper::GetWafRuleTypeForName(jsonValue.GetString("Type"));
m_typeHasBeenSet = true;
}
if(jsonValue.ValueExists("ExcludedRules"))
{
Array<JsonView> excludedRulesJsonList = jsonValue.GetArray("ExcludedRules");
for(unsigned excludedRulesIndex = 0; excludedRulesIndex < excludedRulesJsonList.GetLength(); ++excludedRulesIndex)
{
m_excludedRules.push_back(excludedRulesJsonList[excludedRulesIndex].AsObject());
}
m_excludedRulesHasBeenSet = true;
}
return *this;
}
JsonValue ActivatedRule::Jsonize() const
{
JsonValue payload;
if(m_priorityHasBeenSet)
{
payload.WithInteger("Priority", m_priority);
}
if(m_ruleIdHasBeenSet)
{
payload.WithString("RuleId", m_ruleId);
}
if(m_actionHasBeenSet)
{
payload.WithObject("Action", m_action.Jsonize());
}
if(m_overrideActionHasBeenSet)
{
payload.WithObject("OverrideAction", m_overrideAction.Jsonize());
}
if(m_typeHasBeenSet)
{
payload.WithString("Type", WafRuleTypeMapper::GetNameForWafRuleType(m_type));
}
if(m_excludedRulesHasBeenSet)
{
Array<JsonValue> excludedRulesJsonList(m_excludedRules.size());
for(unsigned excludedRulesIndex = 0; excludedRulesIndex < excludedRulesJsonList.GetLength(); ++excludedRulesIndex)
{
excludedRulesJsonList[excludedRulesIndex].AsObject(m_excludedRules[excludedRulesIndex].Jsonize());
}
payload.WithArray("ExcludedRules", std::move(excludedRulesJsonList));
}
return payload;
}
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/AssociateWebACLRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
AssociateWebACLRequest::AssociateWebACLRequest() :
m_webACLIdHasBeenSet(false),
m_resourceArnHasBeenSet(false)
{
}
Aws::String AssociateWebACLRequest::SerializePayload() const
{
JsonValue payload;
if(m_webACLIdHasBeenSet)
{
payload.WithString("WebACLId", m_webACLId);
}
if(m_resourceArnHasBeenSet)
{
payload.WithString("ResourceArn", m_resourceArn);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection AssociateWebACLRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.AssociateWebACL"));
return headers;
}

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/AssociateWebACLResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
AssociateWebACLResult::AssociateWebACLResult()
{
}
AssociateWebACLResult::AssociateWebACLResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
AssociateWebACLResult& AssociateWebACLResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
AWS_UNREFERENCED_PARAM(result);
return *this;
}

View File

@@ -0,0 +1,97 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/ByteMatchSet.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
ByteMatchSet::ByteMatchSet() :
m_byteMatchSetIdHasBeenSet(false),
m_nameHasBeenSet(false),
m_byteMatchTuplesHasBeenSet(false)
{
}
ByteMatchSet::ByteMatchSet(JsonView jsonValue) :
m_byteMatchSetIdHasBeenSet(false),
m_nameHasBeenSet(false),
m_byteMatchTuplesHasBeenSet(false)
{
*this = jsonValue;
}
ByteMatchSet& ByteMatchSet::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("ByteMatchSetId"))
{
m_byteMatchSetId = jsonValue.GetString("ByteMatchSetId");
m_byteMatchSetIdHasBeenSet = true;
}
if(jsonValue.ValueExists("Name"))
{
m_name = jsonValue.GetString("Name");
m_nameHasBeenSet = true;
}
if(jsonValue.ValueExists("ByteMatchTuples"))
{
Array<JsonView> byteMatchTuplesJsonList = jsonValue.GetArray("ByteMatchTuples");
for(unsigned byteMatchTuplesIndex = 0; byteMatchTuplesIndex < byteMatchTuplesJsonList.GetLength(); ++byteMatchTuplesIndex)
{
m_byteMatchTuples.push_back(byteMatchTuplesJsonList[byteMatchTuplesIndex].AsObject());
}
m_byteMatchTuplesHasBeenSet = true;
}
return *this;
}
JsonValue ByteMatchSet::Jsonize() const
{
JsonValue payload;
if(m_byteMatchSetIdHasBeenSet)
{
payload.WithString("ByteMatchSetId", m_byteMatchSetId);
}
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_byteMatchTuplesHasBeenSet)
{
Array<JsonValue> byteMatchTuplesJsonList(m_byteMatchTuples.size());
for(unsigned byteMatchTuplesIndex = 0; byteMatchTuplesIndex < byteMatchTuplesJsonList.GetLength(); ++byteMatchTuplesIndex)
{
byteMatchTuplesJsonList[byteMatchTuplesIndex].AsObject(m_byteMatchTuples[byteMatchTuplesIndex].Jsonize());
}
payload.WithArray("ByteMatchTuples", std::move(byteMatchTuplesJsonList));
}
return payload;
}
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,74 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/ByteMatchSetSummary.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
ByteMatchSetSummary::ByteMatchSetSummary() :
m_byteMatchSetIdHasBeenSet(false),
m_nameHasBeenSet(false)
{
}
ByteMatchSetSummary::ByteMatchSetSummary(JsonView jsonValue) :
m_byteMatchSetIdHasBeenSet(false),
m_nameHasBeenSet(false)
{
*this = jsonValue;
}
ByteMatchSetSummary& ByteMatchSetSummary::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("ByteMatchSetId"))
{
m_byteMatchSetId = jsonValue.GetString("ByteMatchSetId");
m_byteMatchSetIdHasBeenSet = true;
}
if(jsonValue.ValueExists("Name"))
{
m_name = jsonValue.GetString("Name");
m_nameHasBeenSet = true;
}
return *this;
}
JsonValue ByteMatchSetSummary::Jsonize() const
{
JsonValue payload;
if(m_byteMatchSetIdHasBeenSet)
{
payload.WithString("ByteMatchSetId", m_byteMatchSetId);
}
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
return payload;
}
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,75 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/ByteMatchSetUpdate.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
ByteMatchSetUpdate::ByteMatchSetUpdate() :
m_action(ChangeAction::NOT_SET),
m_actionHasBeenSet(false),
m_byteMatchTupleHasBeenSet(false)
{
}
ByteMatchSetUpdate::ByteMatchSetUpdate(JsonView jsonValue) :
m_action(ChangeAction::NOT_SET),
m_actionHasBeenSet(false),
m_byteMatchTupleHasBeenSet(false)
{
*this = jsonValue;
}
ByteMatchSetUpdate& ByteMatchSetUpdate::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Action"))
{
m_action = ChangeActionMapper::GetChangeActionForName(jsonValue.GetString("Action"));
m_actionHasBeenSet = true;
}
if(jsonValue.ValueExists("ByteMatchTuple"))
{
m_byteMatchTuple = jsonValue.GetObject("ByteMatchTuple");
m_byteMatchTupleHasBeenSet = true;
}
return *this;
}
JsonValue ByteMatchSetUpdate::Jsonize() const
{
JsonValue payload;
if(m_actionHasBeenSet)
{
payload.WithString("Action", ChangeActionMapper::GetNameForChangeAction(m_action));
}
if(m_byteMatchTupleHasBeenSet)
{
payload.WithObject("ByteMatchTuple", m_byteMatchTuple.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,105 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/ByteMatchTuple.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/utils/HashingUtils.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
ByteMatchTuple::ByteMatchTuple() :
m_fieldToMatchHasBeenSet(false),
m_targetStringHasBeenSet(false),
m_textTransformation(TextTransformation::NOT_SET),
m_textTransformationHasBeenSet(false),
m_positionalConstraint(PositionalConstraint::NOT_SET),
m_positionalConstraintHasBeenSet(false)
{
}
ByteMatchTuple::ByteMatchTuple(JsonView jsonValue) :
m_fieldToMatchHasBeenSet(false),
m_targetStringHasBeenSet(false),
m_textTransformation(TextTransformation::NOT_SET),
m_textTransformationHasBeenSet(false),
m_positionalConstraint(PositionalConstraint::NOT_SET),
m_positionalConstraintHasBeenSet(false)
{
*this = jsonValue;
}
ByteMatchTuple& ByteMatchTuple::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("FieldToMatch"))
{
m_fieldToMatch = jsonValue.GetObject("FieldToMatch");
m_fieldToMatchHasBeenSet = true;
}
if(jsonValue.ValueExists("TargetString"))
{
m_targetString = HashingUtils::Base64Decode(jsonValue.GetString("TargetString"));
m_targetStringHasBeenSet = true;
}
if(jsonValue.ValueExists("TextTransformation"))
{
m_textTransformation = TextTransformationMapper::GetTextTransformationForName(jsonValue.GetString("TextTransformation"));
m_textTransformationHasBeenSet = true;
}
if(jsonValue.ValueExists("PositionalConstraint"))
{
m_positionalConstraint = PositionalConstraintMapper::GetPositionalConstraintForName(jsonValue.GetString("PositionalConstraint"));
m_positionalConstraintHasBeenSet = true;
}
return *this;
}
JsonValue ByteMatchTuple::Jsonize() const
{
JsonValue payload;
if(m_fieldToMatchHasBeenSet)
{
payload.WithObject("FieldToMatch", m_fieldToMatch.Jsonize());
}
if(m_targetStringHasBeenSet)
{
payload.WithString("TargetString", HashingUtils::Base64Encode(m_targetString));
}
if(m_textTransformationHasBeenSet)
{
payload.WithString("TextTransformation", TextTransformationMapper::GetNameForTextTransformation(m_textTransformation));
}
if(m_positionalConstraintHasBeenSet)
{
payload.WithString("PositionalConstraint", PositionalConstraintMapper::GetNameForPositionalConstraint(m_positionalConstraint));
}
return payload;
}
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,70 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/ChangeAction.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
namespace ChangeActionMapper
{
static const int INSERT_HASH = HashingUtils::HashString("INSERT");
static const int DELETE__HASH = HashingUtils::HashString("DELETE");
ChangeAction GetChangeActionForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == INSERT_HASH)
{
return ChangeAction::INSERT;
}
else if (hashCode == DELETE__HASH)
{
return ChangeAction::DELETE_;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<ChangeAction>(hashCode);
}
return ChangeAction::NOT_SET;
}
Aws::String GetNameForChangeAction(ChangeAction enumValue)
{
switch(enumValue)
{
case ChangeAction::INSERT:
return "INSERT";
case ChangeAction::DELETE_:
return "DELETE";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace ChangeActionMapper
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/ChangeTokenStatus.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
namespace ChangeTokenStatusMapper
{
static const int PROVISIONED_HASH = HashingUtils::HashString("PROVISIONED");
static const int PENDING_HASH = HashingUtils::HashString("PENDING");
static const int INSYNC_HASH = HashingUtils::HashString("INSYNC");
ChangeTokenStatus GetChangeTokenStatusForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == PROVISIONED_HASH)
{
return ChangeTokenStatus::PROVISIONED;
}
else if (hashCode == PENDING_HASH)
{
return ChangeTokenStatus::PENDING;
}
else if (hashCode == INSYNC_HASH)
{
return ChangeTokenStatus::INSYNC;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<ChangeTokenStatus>(hashCode);
}
return ChangeTokenStatus::NOT_SET;
}
Aws::String GetNameForChangeTokenStatus(ChangeTokenStatus enumValue)
{
switch(enumValue)
{
case ChangeTokenStatus::PROVISIONED:
return "PROVISIONED";
case ChangeTokenStatus::PENDING:
return "PENDING";
case ChangeTokenStatus::INSYNC:
return "INSYNC";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace ChangeTokenStatusMapper
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,98 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/ComparisonOperator.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
namespace ComparisonOperatorMapper
{
static const int EQ_HASH = HashingUtils::HashString("EQ");
static const int NE_HASH = HashingUtils::HashString("NE");
static const int LE_HASH = HashingUtils::HashString("LE");
static const int LT_HASH = HashingUtils::HashString("LT");
static const int GE_HASH = HashingUtils::HashString("GE");
static const int GT_HASH = HashingUtils::HashString("GT");
ComparisonOperator GetComparisonOperatorForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == EQ_HASH)
{
return ComparisonOperator::EQ;
}
else if (hashCode == NE_HASH)
{
return ComparisonOperator::NE;
}
else if (hashCode == LE_HASH)
{
return ComparisonOperator::LE;
}
else if (hashCode == LT_HASH)
{
return ComparisonOperator::LT;
}
else if (hashCode == GE_HASH)
{
return ComparisonOperator::GE;
}
else if (hashCode == GT_HASH)
{
return ComparisonOperator::GT;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<ComparisonOperator>(hashCode);
}
return ComparisonOperator::NOT_SET;
}
Aws::String GetNameForComparisonOperator(ComparisonOperator enumValue)
{
switch(enumValue)
{
case ComparisonOperator::EQ:
return "EQ";
case ComparisonOperator::NE:
return "NE";
case ComparisonOperator::LE:
return "LE";
case ComparisonOperator::LT:
return "LT";
case ComparisonOperator::GE:
return "GE";
case ComparisonOperator::GT:
return "GT";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace ComparisonOperatorMapper
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/CreateByteMatchSetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateByteMatchSetRequest::CreateByteMatchSetRequest() :
m_nameHasBeenSet(false),
m_changeTokenHasBeenSet(false)
{
}
Aws::String CreateByteMatchSetRequest::SerializePayload() const
{
JsonValue payload;
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_changeTokenHasBeenSet)
{
payload.WithString("ChangeToken", m_changeToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection CreateByteMatchSetRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.CreateByteMatchSet"));
return headers;
}

View File

@@ -0,0 +1,46 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/CreateByteMatchSetResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateByteMatchSetResult::CreateByteMatchSetResult()
{
}
CreateByteMatchSetResult::CreateByteMatchSetResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreateByteMatchSetResult& CreateByteMatchSetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ByteMatchSet"))
{
m_byteMatchSet = jsonValue.GetObject("ByteMatchSet");
}
if(jsonValue.ValueExists("ChangeToken"))
{
m_changeToken = jsonValue.GetString("ChangeToken");
}
return *this;
}

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/CreateGeoMatchSetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateGeoMatchSetRequest::CreateGeoMatchSetRequest() :
m_nameHasBeenSet(false),
m_changeTokenHasBeenSet(false)
{
}
Aws::String CreateGeoMatchSetRequest::SerializePayload() const
{
JsonValue payload;
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_changeTokenHasBeenSet)
{
payload.WithString("ChangeToken", m_changeToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection CreateGeoMatchSetRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.CreateGeoMatchSet"));
return headers;
}

View File

@@ -0,0 +1,46 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/CreateGeoMatchSetResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateGeoMatchSetResult::CreateGeoMatchSetResult()
{
}
CreateGeoMatchSetResult::CreateGeoMatchSetResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreateGeoMatchSetResult& CreateGeoMatchSetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("GeoMatchSet"))
{
m_geoMatchSet = jsonValue.GetObject("GeoMatchSet");
}
if(jsonValue.ValueExists("ChangeToken"))
{
m_changeToken = jsonValue.GetString("ChangeToken");
}
return *this;
}

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/CreateIPSetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateIPSetRequest::CreateIPSetRequest() :
m_nameHasBeenSet(false),
m_changeTokenHasBeenSet(false)
{
}
Aws::String CreateIPSetRequest::SerializePayload() const
{
JsonValue payload;
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_changeTokenHasBeenSet)
{
payload.WithString("ChangeToken", m_changeToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection CreateIPSetRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.CreateIPSet"));
return headers;
}

View File

@@ -0,0 +1,46 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/CreateIPSetResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateIPSetResult::CreateIPSetResult()
{
}
CreateIPSetResult::CreateIPSetResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreateIPSetResult& CreateIPSetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("IPSet"))
{
m_iPSet = jsonValue.GetObject("IPSet");
}
if(jsonValue.ValueExists("ChangeToken"))
{
m_changeToken = jsonValue.GetString("ChangeToken");
}
return *this;
}

View File

@@ -0,0 +1,84 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/CreateRateBasedRuleRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateRateBasedRuleRequest::CreateRateBasedRuleRequest() :
m_nameHasBeenSet(false),
m_metricNameHasBeenSet(false),
m_rateKey(RateKey::NOT_SET),
m_rateKeyHasBeenSet(false),
m_rateLimit(0),
m_rateLimitHasBeenSet(false),
m_changeTokenHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
Aws::String CreateRateBasedRuleRequest::SerializePayload() const
{
JsonValue payload;
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_metricNameHasBeenSet)
{
payload.WithString("MetricName", m_metricName);
}
if(m_rateKeyHasBeenSet)
{
payload.WithString("RateKey", RateKeyMapper::GetNameForRateKey(m_rateKey));
}
if(m_rateLimitHasBeenSet)
{
payload.WithInt64("RateLimit", m_rateLimit);
}
if(m_changeTokenHasBeenSet)
{
payload.WithString("ChangeToken", m_changeToken);
}
if(m_tagsHasBeenSet)
{
Array<JsonValue> tagsJsonList(m_tags.size());
for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex)
{
tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize());
}
payload.WithArray("Tags", std::move(tagsJsonList));
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection CreateRateBasedRuleRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.CreateRateBasedRule"));
return headers;
}

View File

@@ -0,0 +1,46 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/CreateRateBasedRuleResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateRateBasedRuleResult::CreateRateBasedRuleResult()
{
}
CreateRateBasedRuleResult::CreateRateBasedRuleResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreateRateBasedRuleResult& CreateRateBasedRuleResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Rule"))
{
m_rule = jsonValue.GetObject("Rule");
}
if(jsonValue.ValueExists("ChangeToken"))
{
m_changeToken = jsonValue.GetString("ChangeToken");
}
return *this;
}

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/CreateRegexMatchSetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateRegexMatchSetRequest::CreateRegexMatchSetRequest() :
m_nameHasBeenSet(false),
m_changeTokenHasBeenSet(false)
{
}
Aws::String CreateRegexMatchSetRequest::SerializePayload() const
{
JsonValue payload;
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_changeTokenHasBeenSet)
{
payload.WithString("ChangeToken", m_changeToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection CreateRegexMatchSetRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.CreateRegexMatchSet"));
return headers;
}

View File

@@ -0,0 +1,46 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/CreateRegexMatchSetResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateRegexMatchSetResult::CreateRegexMatchSetResult()
{
}
CreateRegexMatchSetResult::CreateRegexMatchSetResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreateRegexMatchSetResult& CreateRegexMatchSetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("RegexMatchSet"))
{
m_regexMatchSet = jsonValue.GetObject("RegexMatchSet");
}
if(jsonValue.ValueExists("ChangeToken"))
{
m_changeToken = jsonValue.GetString("ChangeToken");
}
return *this;
}

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/CreateRegexPatternSetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateRegexPatternSetRequest::CreateRegexPatternSetRequest() :
m_nameHasBeenSet(false),
m_changeTokenHasBeenSet(false)
{
}
Aws::String CreateRegexPatternSetRequest::SerializePayload() const
{
JsonValue payload;
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_changeTokenHasBeenSet)
{
payload.WithString("ChangeToken", m_changeToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection CreateRegexPatternSetRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.CreateRegexPatternSet"));
return headers;
}

View File

@@ -0,0 +1,46 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/CreateRegexPatternSetResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateRegexPatternSetResult::CreateRegexPatternSetResult()
{
}
CreateRegexPatternSetResult::CreateRegexPatternSetResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreateRegexPatternSetResult& CreateRegexPatternSetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("RegexPatternSet"))
{
m_regexPatternSet = jsonValue.GetObject("RegexPatternSet");
}
if(jsonValue.ValueExists("ChangeToken"))
{
m_changeToken = jsonValue.GetString("ChangeToken");
}
return *this;
}

View File

@@ -0,0 +1,69 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/CreateRuleGroupRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateRuleGroupRequest::CreateRuleGroupRequest() :
m_nameHasBeenSet(false),
m_metricNameHasBeenSet(false),
m_changeTokenHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
Aws::String CreateRuleGroupRequest::SerializePayload() const
{
JsonValue payload;
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_metricNameHasBeenSet)
{
payload.WithString("MetricName", m_metricName);
}
if(m_changeTokenHasBeenSet)
{
payload.WithString("ChangeToken", m_changeToken);
}
if(m_tagsHasBeenSet)
{
Array<JsonValue> tagsJsonList(m_tags.size());
for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex)
{
tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize());
}
payload.WithArray("Tags", std::move(tagsJsonList));
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection CreateRuleGroupRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.CreateRuleGroup"));
return headers;
}

View File

@@ -0,0 +1,46 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/CreateRuleGroupResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateRuleGroupResult::CreateRuleGroupResult()
{
}
CreateRuleGroupResult::CreateRuleGroupResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreateRuleGroupResult& CreateRuleGroupResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("RuleGroup"))
{
m_ruleGroup = jsonValue.GetObject("RuleGroup");
}
if(jsonValue.ValueExists("ChangeToken"))
{
m_changeToken = jsonValue.GetString("ChangeToken");
}
return *this;
}

View File

@@ -0,0 +1,69 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/CreateRuleRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateRuleRequest::CreateRuleRequest() :
m_nameHasBeenSet(false),
m_metricNameHasBeenSet(false),
m_changeTokenHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
Aws::String CreateRuleRequest::SerializePayload() const
{
JsonValue payload;
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_metricNameHasBeenSet)
{
payload.WithString("MetricName", m_metricName);
}
if(m_changeTokenHasBeenSet)
{
payload.WithString("ChangeToken", m_changeToken);
}
if(m_tagsHasBeenSet)
{
Array<JsonValue> tagsJsonList(m_tags.size());
for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex)
{
tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize());
}
payload.WithArray("Tags", std::move(tagsJsonList));
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection CreateRuleRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.CreateRule"));
return headers;
}

View File

@@ -0,0 +1,46 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/CreateRuleResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateRuleResult::CreateRuleResult()
{
}
CreateRuleResult::CreateRuleResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreateRuleResult& CreateRuleResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Rule"))
{
m_rule = jsonValue.GetObject("Rule");
}
if(jsonValue.ValueExists("ChangeToken"))
{
m_changeToken = jsonValue.GetString("ChangeToken");
}
return *this;
}

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/CreateSizeConstraintSetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateSizeConstraintSetRequest::CreateSizeConstraintSetRequest() :
m_nameHasBeenSet(false),
m_changeTokenHasBeenSet(false)
{
}
Aws::String CreateSizeConstraintSetRequest::SerializePayload() const
{
JsonValue payload;
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_changeTokenHasBeenSet)
{
payload.WithString("ChangeToken", m_changeToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection CreateSizeConstraintSetRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.CreateSizeConstraintSet"));
return headers;
}

View File

@@ -0,0 +1,46 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/CreateSizeConstraintSetResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateSizeConstraintSetResult::CreateSizeConstraintSetResult()
{
}
CreateSizeConstraintSetResult::CreateSizeConstraintSetResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreateSizeConstraintSetResult& CreateSizeConstraintSetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("SizeConstraintSet"))
{
m_sizeConstraintSet = jsonValue.GetObject("SizeConstraintSet");
}
if(jsonValue.ValueExists("ChangeToken"))
{
m_changeToken = jsonValue.GetString("ChangeToken");
}
return *this;
}

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/CreateSqlInjectionMatchSetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateSqlInjectionMatchSetRequest::CreateSqlInjectionMatchSetRequest() :
m_nameHasBeenSet(false),
m_changeTokenHasBeenSet(false)
{
}
Aws::String CreateSqlInjectionMatchSetRequest::SerializePayload() const
{
JsonValue payload;
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_changeTokenHasBeenSet)
{
payload.WithString("ChangeToken", m_changeToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection CreateSqlInjectionMatchSetRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.CreateSqlInjectionMatchSet"));
return headers;
}

View File

@@ -0,0 +1,46 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/CreateSqlInjectionMatchSetResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateSqlInjectionMatchSetResult::CreateSqlInjectionMatchSetResult()
{
}
CreateSqlInjectionMatchSetResult::CreateSqlInjectionMatchSetResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreateSqlInjectionMatchSetResult& CreateSqlInjectionMatchSetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("SqlInjectionMatchSet"))
{
m_sqlInjectionMatchSet = jsonValue.GetObject("SqlInjectionMatchSet");
}
if(jsonValue.ValueExists("ChangeToken"))
{
m_changeToken = jsonValue.GetString("ChangeToken");
}
return *this;
}

View File

@@ -0,0 +1,58 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/CreateWebACLMigrationStackRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateWebACLMigrationStackRequest::CreateWebACLMigrationStackRequest() :
m_webACLIdHasBeenSet(false),
m_s3BucketNameHasBeenSet(false),
m_ignoreUnsupportedType(false),
m_ignoreUnsupportedTypeHasBeenSet(false)
{
}
Aws::String CreateWebACLMigrationStackRequest::SerializePayload() const
{
JsonValue payload;
if(m_webACLIdHasBeenSet)
{
payload.WithString("WebACLId", m_webACLId);
}
if(m_s3BucketNameHasBeenSet)
{
payload.WithString("S3BucketName", m_s3BucketName);
}
if(m_ignoreUnsupportedTypeHasBeenSet)
{
payload.WithBool("IgnoreUnsupportedType", m_ignoreUnsupportedType);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection CreateWebACLMigrationStackRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.CreateWebACLMigrationStack"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/CreateWebACLMigrationStackResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateWebACLMigrationStackResult::CreateWebACLMigrationStackResult()
{
}
CreateWebACLMigrationStackResult::CreateWebACLMigrationStackResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreateWebACLMigrationStackResult& CreateWebACLMigrationStackResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("S3ObjectUrl"))
{
m_s3ObjectUrl = jsonValue.GetString("S3ObjectUrl");
}
return *this;
}

View File

@@ -0,0 +1,76 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/CreateWebACLRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateWebACLRequest::CreateWebACLRequest() :
m_nameHasBeenSet(false),
m_metricNameHasBeenSet(false),
m_defaultActionHasBeenSet(false),
m_changeTokenHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
Aws::String CreateWebACLRequest::SerializePayload() const
{
JsonValue payload;
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_metricNameHasBeenSet)
{
payload.WithString("MetricName", m_metricName);
}
if(m_defaultActionHasBeenSet)
{
payload.WithObject("DefaultAction", m_defaultAction.Jsonize());
}
if(m_changeTokenHasBeenSet)
{
payload.WithString("ChangeToken", m_changeToken);
}
if(m_tagsHasBeenSet)
{
Array<JsonValue> tagsJsonList(m_tags.size());
for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex)
{
tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize());
}
payload.WithArray("Tags", std::move(tagsJsonList));
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection CreateWebACLRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.CreateWebACL"));
return headers;
}

View File

@@ -0,0 +1,46 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/CreateWebACLResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateWebACLResult::CreateWebACLResult()
{
}
CreateWebACLResult::CreateWebACLResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreateWebACLResult& CreateWebACLResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("WebACL"))
{
m_webACL = jsonValue.GetObject("WebACL");
}
if(jsonValue.ValueExists("ChangeToken"))
{
m_changeToken = jsonValue.GetString("ChangeToken");
}
return *this;
}

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/CreateXssMatchSetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateXssMatchSetRequest::CreateXssMatchSetRequest() :
m_nameHasBeenSet(false),
m_changeTokenHasBeenSet(false)
{
}
Aws::String CreateXssMatchSetRequest::SerializePayload() const
{
JsonValue payload;
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_changeTokenHasBeenSet)
{
payload.WithString("ChangeToken", m_changeToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection CreateXssMatchSetRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.CreateXssMatchSet"));
return headers;
}

View File

@@ -0,0 +1,46 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/CreateXssMatchSetResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateXssMatchSetResult::CreateXssMatchSetResult()
{
}
CreateXssMatchSetResult::CreateXssMatchSetResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreateXssMatchSetResult& CreateXssMatchSetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("XssMatchSet"))
{
m_xssMatchSet = jsonValue.GetObject("XssMatchSet");
}
if(jsonValue.ValueExists("ChangeToken"))
{
m_changeToken = jsonValue.GetString("ChangeToken");
}
return *this;
}

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DeleteByteMatchSetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeleteByteMatchSetRequest::DeleteByteMatchSetRequest() :
m_byteMatchSetIdHasBeenSet(false),
m_changeTokenHasBeenSet(false)
{
}
Aws::String DeleteByteMatchSetRequest::SerializePayload() const
{
JsonValue payload;
if(m_byteMatchSetIdHasBeenSet)
{
payload.WithString("ByteMatchSetId", m_byteMatchSetId);
}
if(m_changeTokenHasBeenSet)
{
payload.WithString("ChangeToken", m_changeToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DeleteByteMatchSetRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.DeleteByteMatchSet"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DeleteByteMatchSetResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DeleteByteMatchSetResult::DeleteByteMatchSetResult()
{
}
DeleteByteMatchSetResult::DeleteByteMatchSetResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DeleteByteMatchSetResult& DeleteByteMatchSetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ChangeToken"))
{
m_changeToken = jsonValue.GetString("ChangeToken");
}
return *this;
}

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DeleteGeoMatchSetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeleteGeoMatchSetRequest::DeleteGeoMatchSetRequest() :
m_geoMatchSetIdHasBeenSet(false),
m_changeTokenHasBeenSet(false)
{
}
Aws::String DeleteGeoMatchSetRequest::SerializePayload() const
{
JsonValue payload;
if(m_geoMatchSetIdHasBeenSet)
{
payload.WithString("GeoMatchSetId", m_geoMatchSetId);
}
if(m_changeTokenHasBeenSet)
{
payload.WithString("ChangeToken", m_changeToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DeleteGeoMatchSetRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.DeleteGeoMatchSet"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DeleteGeoMatchSetResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DeleteGeoMatchSetResult::DeleteGeoMatchSetResult()
{
}
DeleteGeoMatchSetResult::DeleteGeoMatchSetResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DeleteGeoMatchSetResult& DeleteGeoMatchSetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ChangeToken"))
{
m_changeToken = jsonValue.GetString("ChangeToken");
}
return *this;
}

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DeleteIPSetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeleteIPSetRequest::DeleteIPSetRequest() :
m_iPSetIdHasBeenSet(false),
m_changeTokenHasBeenSet(false)
{
}
Aws::String DeleteIPSetRequest::SerializePayload() const
{
JsonValue payload;
if(m_iPSetIdHasBeenSet)
{
payload.WithString("IPSetId", m_iPSetId);
}
if(m_changeTokenHasBeenSet)
{
payload.WithString("ChangeToken", m_changeToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DeleteIPSetRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.DeleteIPSet"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DeleteIPSetResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DeleteIPSetResult::DeleteIPSetResult()
{
}
DeleteIPSetResult::DeleteIPSetResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DeleteIPSetResult& DeleteIPSetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ChangeToken"))
{
m_changeToken = jsonValue.GetString("ChangeToken");
}
return *this;
}

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DeleteLoggingConfigurationRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeleteLoggingConfigurationRequest::DeleteLoggingConfigurationRequest() :
m_resourceArnHasBeenSet(false)
{
}
Aws::String DeleteLoggingConfigurationRequest::SerializePayload() const
{
JsonValue payload;
if(m_resourceArnHasBeenSet)
{
payload.WithString("ResourceArn", m_resourceArn);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DeleteLoggingConfigurationRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.DeleteLoggingConfiguration"));
return headers;
}

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DeleteLoggingConfigurationResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DeleteLoggingConfigurationResult::DeleteLoggingConfigurationResult()
{
}
DeleteLoggingConfigurationResult::DeleteLoggingConfigurationResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DeleteLoggingConfigurationResult& DeleteLoggingConfigurationResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
AWS_UNREFERENCED_PARAM(result);
return *this;
}

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DeletePermissionPolicyRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeletePermissionPolicyRequest::DeletePermissionPolicyRequest() :
m_resourceArnHasBeenSet(false)
{
}
Aws::String DeletePermissionPolicyRequest::SerializePayload() const
{
JsonValue payload;
if(m_resourceArnHasBeenSet)
{
payload.WithString("ResourceArn", m_resourceArn);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DeletePermissionPolicyRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.DeletePermissionPolicy"));
return headers;
}

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DeletePermissionPolicyResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DeletePermissionPolicyResult::DeletePermissionPolicyResult()
{
}
DeletePermissionPolicyResult::DeletePermissionPolicyResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DeletePermissionPolicyResult& DeletePermissionPolicyResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
AWS_UNREFERENCED_PARAM(result);
return *this;
}

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DeleteRateBasedRuleRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeleteRateBasedRuleRequest::DeleteRateBasedRuleRequest() :
m_ruleIdHasBeenSet(false),
m_changeTokenHasBeenSet(false)
{
}
Aws::String DeleteRateBasedRuleRequest::SerializePayload() const
{
JsonValue payload;
if(m_ruleIdHasBeenSet)
{
payload.WithString("RuleId", m_ruleId);
}
if(m_changeTokenHasBeenSet)
{
payload.WithString("ChangeToken", m_changeToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DeleteRateBasedRuleRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.DeleteRateBasedRule"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DeleteRateBasedRuleResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DeleteRateBasedRuleResult::DeleteRateBasedRuleResult()
{
}
DeleteRateBasedRuleResult::DeleteRateBasedRuleResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DeleteRateBasedRuleResult& DeleteRateBasedRuleResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ChangeToken"))
{
m_changeToken = jsonValue.GetString("ChangeToken");
}
return *this;
}

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DeleteRegexMatchSetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeleteRegexMatchSetRequest::DeleteRegexMatchSetRequest() :
m_regexMatchSetIdHasBeenSet(false),
m_changeTokenHasBeenSet(false)
{
}
Aws::String DeleteRegexMatchSetRequest::SerializePayload() const
{
JsonValue payload;
if(m_regexMatchSetIdHasBeenSet)
{
payload.WithString("RegexMatchSetId", m_regexMatchSetId);
}
if(m_changeTokenHasBeenSet)
{
payload.WithString("ChangeToken", m_changeToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DeleteRegexMatchSetRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.DeleteRegexMatchSet"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DeleteRegexMatchSetResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DeleteRegexMatchSetResult::DeleteRegexMatchSetResult()
{
}
DeleteRegexMatchSetResult::DeleteRegexMatchSetResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DeleteRegexMatchSetResult& DeleteRegexMatchSetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ChangeToken"))
{
m_changeToken = jsonValue.GetString("ChangeToken");
}
return *this;
}

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DeleteRegexPatternSetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeleteRegexPatternSetRequest::DeleteRegexPatternSetRequest() :
m_regexPatternSetIdHasBeenSet(false),
m_changeTokenHasBeenSet(false)
{
}
Aws::String DeleteRegexPatternSetRequest::SerializePayload() const
{
JsonValue payload;
if(m_regexPatternSetIdHasBeenSet)
{
payload.WithString("RegexPatternSetId", m_regexPatternSetId);
}
if(m_changeTokenHasBeenSet)
{
payload.WithString("ChangeToken", m_changeToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DeleteRegexPatternSetRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.DeleteRegexPatternSet"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DeleteRegexPatternSetResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DeleteRegexPatternSetResult::DeleteRegexPatternSetResult()
{
}
DeleteRegexPatternSetResult::DeleteRegexPatternSetResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DeleteRegexPatternSetResult& DeleteRegexPatternSetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ChangeToken"))
{
m_changeToken = jsonValue.GetString("ChangeToken");
}
return *this;
}

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DeleteRuleGroupRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeleteRuleGroupRequest::DeleteRuleGroupRequest() :
m_ruleGroupIdHasBeenSet(false),
m_changeTokenHasBeenSet(false)
{
}
Aws::String DeleteRuleGroupRequest::SerializePayload() const
{
JsonValue payload;
if(m_ruleGroupIdHasBeenSet)
{
payload.WithString("RuleGroupId", m_ruleGroupId);
}
if(m_changeTokenHasBeenSet)
{
payload.WithString("ChangeToken", m_changeToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DeleteRuleGroupRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.DeleteRuleGroup"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DeleteRuleGroupResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DeleteRuleGroupResult::DeleteRuleGroupResult()
{
}
DeleteRuleGroupResult::DeleteRuleGroupResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DeleteRuleGroupResult& DeleteRuleGroupResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ChangeToken"))
{
m_changeToken = jsonValue.GetString("ChangeToken");
}
return *this;
}

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DeleteRuleRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeleteRuleRequest::DeleteRuleRequest() :
m_ruleIdHasBeenSet(false),
m_changeTokenHasBeenSet(false)
{
}
Aws::String DeleteRuleRequest::SerializePayload() const
{
JsonValue payload;
if(m_ruleIdHasBeenSet)
{
payload.WithString("RuleId", m_ruleId);
}
if(m_changeTokenHasBeenSet)
{
payload.WithString("ChangeToken", m_changeToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DeleteRuleRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.DeleteRule"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DeleteRuleResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DeleteRuleResult::DeleteRuleResult()
{
}
DeleteRuleResult::DeleteRuleResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DeleteRuleResult& DeleteRuleResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ChangeToken"))
{
m_changeToken = jsonValue.GetString("ChangeToken");
}
return *this;
}

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DeleteSizeConstraintSetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeleteSizeConstraintSetRequest::DeleteSizeConstraintSetRequest() :
m_sizeConstraintSetIdHasBeenSet(false),
m_changeTokenHasBeenSet(false)
{
}
Aws::String DeleteSizeConstraintSetRequest::SerializePayload() const
{
JsonValue payload;
if(m_sizeConstraintSetIdHasBeenSet)
{
payload.WithString("SizeConstraintSetId", m_sizeConstraintSetId);
}
if(m_changeTokenHasBeenSet)
{
payload.WithString("ChangeToken", m_changeToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DeleteSizeConstraintSetRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.DeleteSizeConstraintSet"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DeleteSizeConstraintSetResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DeleteSizeConstraintSetResult::DeleteSizeConstraintSetResult()
{
}
DeleteSizeConstraintSetResult::DeleteSizeConstraintSetResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DeleteSizeConstraintSetResult& DeleteSizeConstraintSetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ChangeToken"))
{
m_changeToken = jsonValue.GetString("ChangeToken");
}
return *this;
}

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DeleteSqlInjectionMatchSetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeleteSqlInjectionMatchSetRequest::DeleteSqlInjectionMatchSetRequest() :
m_sqlInjectionMatchSetIdHasBeenSet(false),
m_changeTokenHasBeenSet(false)
{
}
Aws::String DeleteSqlInjectionMatchSetRequest::SerializePayload() const
{
JsonValue payload;
if(m_sqlInjectionMatchSetIdHasBeenSet)
{
payload.WithString("SqlInjectionMatchSetId", m_sqlInjectionMatchSetId);
}
if(m_changeTokenHasBeenSet)
{
payload.WithString("ChangeToken", m_changeToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DeleteSqlInjectionMatchSetRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.DeleteSqlInjectionMatchSet"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DeleteSqlInjectionMatchSetResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DeleteSqlInjectionMatchSetResult::DeleteSqlInjectionMatchSetResult()
{
}
DeleteSqlInjectionMatchSetResult::DeleteSqlInjectionMatchSetResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DeleteSqlInjectionMatchSetResult& DeleteSqlInjectionMatchSetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ChangeToken"))
{
m_changeToken = jsonValue.GetString("ChangeToken");
}
return *this;
}

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DeleteWebACLRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeleteWebACLRequest::DeleteWebACLRequest() :
m_webACLIdHasBeenSet(false),
m_changeTokenHasBeenSet(false)
{
}
Aws::String DeleteWebACLRequest::SerializePayload() const
{
JsonValue payload;
if(m_webACLIdHasBeenSet)
{
payload.WithString("WebACLId", m_webACLId);
}
if(m_changeTokenHasBeenSet)
{
payload.WithString("ChangeToken", m_changeToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DeleteWebACLRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.DeleteWebACL"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DeleteWebACLResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DeleteWebACLResult::DeleteWebACLResult()
{
}
DeleteWebACLResult::DeleteWebACLResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DeleteWebACLResult& DeleteWebACLResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ChangeToken"))
{
m_changeToken = jsonValue.GetString("ChangeToken");
}
return *this;
}

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DeleteXssMatchSetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeleteXssMatchSetRequest::DeleteXssMatchSetRequest() :
m_xssMatchSetIdHasBeenSet(false),
m_changeTokenHasBeenSet(false)
{
}
Aws::String DeleteXssMatchSetRequest::SerializePayload() const
{
JsonValue payload;
if(m_xssMatchSetIdHasBeenSet)
{
payload.WithString("XssMatchSetId", m_xssMatchSetId);
}
if(m_changeTokenHasBeenSet)
{
payload.WithString("ChangeToken", m_changeToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DeleteXssMatchSetRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.DeleteXssMatchSet"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DeleteXssMatchSetResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DeleteXssMatchSetResult::DeleteXssMatchSetResult()
{
}
DeleteXssMatchSetResult::DeleteXssMatchSetResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DeleteXssMatchSetResult& DeleteXssMatchSetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ChangeToken"))
{
m_changeToken = jsonValue.GetString("ChangeToken");
}
return *this;
}

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DisassociateWebACLRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DisassociateWebACLRequest::DisassociateWebACLRequest() :
m_resourceArnHasBeenSet(false)
{
}
Aws::String DisassociateWebACLRequest::SerializePayload() const
{
JsonValue payload;
if(m_resourceArnHasBeenSet)
{
payload.WithString("ResourceArn", m_resourceArn);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DisassociateWebACLRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.DisassociateWebACL"));
return headers;
}

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/DisassociateWebACLResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DisassociateWebACLResult::DisassociateWebACLResult()
{
}
DisassociateWebACLResult::DisassociateWebACLResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DisassociateWebACLResult& DisassociateWebACLResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
AWS_UNREFERENCED_PARAM(result);
return *this;
}

View File

@@ -0,0 +1,59 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/ExcludedRule.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
ExcludedRule::ExcludedRule() :
m_ruleIdHasBeenSet(false)
{
}
ExcludedRule::ExcludedRule(JsonView jsonValue) :
m_ruleIdHasBeenSet(false)
{
*this = jsonValue;
}
ExcludedRule& ExcludedRule::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("RuleId"))
{
m_ruleId = jsonValue.GetString("RuleId");
m_ruleIdHasBeenSet = true;
}
return *this;
}
JsonValue ExcludedRule::Jsonize() const
{
JsonValue payload;
if(m_ruleIdHasBeenSet)
{
payload.WithString("RuleId", m_ruleId);
}
return payload;
}
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,75 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/FieldToMatch.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
FieldToMatch::FieldToMatch() :
m_type(MatchFieldType::NOT_SET),
m_typeHasBeenSet(false),
m_dataHasBeenSet(false)
{
}
FieldToMatch::FieldToMatch(JsonView jsonValue) :
m_type(MatchFieldType::NOT_SET),
m_typeHasBeenSet(false),
m_dataHasBeenSet(false)
{
*this = jsonValue;
}
FieldToMatch& FieldToMatch::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Type"))
{
m_type = MatchFieldTypeMapper::GetMatchFieldTypeForName(jsonValue.GetString("Type"));
m_typeHasBeenSet = true;
}
if(jsonValue.ValueExists("Data"))
{
m_data = jsonValue.GetString("Data");
m_dataHasBeenSet = true;
}
return *this;
}
JsonValue FieldToMatch::Jsonize() const
{
JsonValue payload;
if(m_typeHasBeenSet)
{
payload.WithString("Type", MatchFieldTypeMapper::GetNameForMatchFieldType(m_type));
}
if(m_dataHasBeenSet)
{
payload.WithString("Data", m_data);
}
return payload;
}
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,76 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GeoMatchConstraint.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
GeoMatchConstraint::GeoMatchConstraint() :
m_type(GeoMatchConstraintType::NOT_SET),
m_typeHasBeenSet(false),
m_value(GeoMatchConstraintValue::NOT_SET),
m_valueHasBeenSet(false)
{
}
GeoMatchConstraint::GeoMatchConstraint(JsonView jsonValue) :
m_type(GeoMatchConstraintType::NOT_SET),
m_typeHasBeenSet(false),
m_value(GeoMatchConstraintValue::NOT_SET),
m_valueHasBeenSet(false)
{
*this = jsonValue;
}
GeoMatchConstraint& GeoMatchConstraint::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Type"))
{
m_type = GeoMatchConstraintTypeMapper::GetGeoMatchConstraintTypeForName(jsonValue.GetString("Type"));
m_typeHasBeenSet = true;
}
if(jsonValue.ValueExists("Value"))
{
m_value = GeoMatchConstraintValueMapper::GetGeoMatchConstraintValueForName(jsonValue.GetString("Value"));
m_valueHasBeenSet = true;
}
return *this;
}
JsonValue GeoMatchConstraint::Jsonize() const
{
JsonValue payload;
if(m_typeHasBeenSet)
{
payload.WithString("Type", GeoMatchConstraintTypeMapper::GetNameForGeoMatchConstraintType(m_type));
}
if(m_valueHasBeenSet)
{
payload.WithString("Value", GeoMatchConstraintValueMapper::GetNameForGeoMatchConstraintValue(m_value));
}
return payload;
}
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,63 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GeoMatchConstraintType.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
namespace GeoMatchConstraintTypeMapper
{
static const int Country_HASH = HashingUtils::HashString("Country");
GeoMatchConstraintType GetGeoMatchConstraintTypeForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == Country_HASH)
{
return GeoMatchConstraintType::Country;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<GeoMatchConstraintType>(hashCode);
}
return GeoMatchConstraintType::NOT_SET;
}
Aws::String GetNameForGeoMatchConstraintType(GeoMatchConstraintType enumValue)
{
switch(enumValue)
{
case GeoMatchConstraintType::Country:
return "Country";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace GeoMatchConstraintTypeMapper
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,97 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GeoMatchSet.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
GeoMatchSet::GeoMatchSet() :
m_geoMatchSetIdHasBeenSet(false),
m_nameHasBeenSet(false),
m_geoMatchConstraintsHasBeenSet(false)
{
}
GeoMatchSet::GeoMatchSet(JsonView jsonValue) :
m_geoMatchSetIdHasBeenSet(false),
m_nameHasBeenSet(false),
m_geoMatchConstraintsHasBeenSet(false)
{
*this = jsonValue;
}
GeoMatchSet& GeoMatchSet::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("GeoMatchSetId"))
{
m_geoMatchSetId = jsonValue.GetString("GeoMatchSetId");
m_geoMatchSetIdHasBeenSet = true;
}
if(jsonValue.ValueExists("Name"))
{
m_name = jsonValue.GetString("Name");
m_nameHasBeenSet = true;
}
if(jsonValue.ValueExists("GeoMatchConstraints"))
{
Array<JsonView> geoMatchConstraintsJsonList = jsonValue.GetArray("GeoMatchConstraints");
for(unsigned geoMatchConstraintsIndex = 0; geoMatchConstraintsIndex < geoMatchConstraintsJsonList.GetLength(); ++geoMatchConstraintsIndex)
{
m_geoMatchConstraints.push_back(geoMatchConstraintsJsonList[geoMatchConstraintsIndex].AsObject());
}
m_geoMatchConstraintsHasBeenSet = true;
}
return *this;
}
JsonValue GeoMatchSet::Jsonize() const
{
JsonValue payload;
if(m_geoMatchSetIdHasBeenSet)
{
payload.WithString("GeoMatchSetId", m_geoMatchSetId);
}
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_geoMatchConstraintsHasBeenSet)
{
Array<JsonValue> geoMatchConstraintsJsonList(m_geoMatchConstraints.size());
for(unsigned geoMatchConstraintsIndex = 0; geoMatchConstraintsIndex < geoMatchConstraintsJsonList.GetLength(); ++geoMatchConstraintsIndex)
{
geoMatchConstraintsJsonList[geoMatchConstraintsIndex].AsObject(m_geoMatchConstraints[geoMatchConstraintsIndex].Jsonize());
}
payload.WithArray("GeoMatchConstraints", std::move(geoMatchConstraintsJsonList));
}
return payload;
}
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,74 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GeoMatchSetSummary.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
GeoMatchSetSummary::GeoMatchSetSummary() :
m_geoMatchSetIdHasBeenSet(false),
m_nameHasBeenSet(false)
{
}
GeoMatchSetSummary::GeoMatchSetSummary(JsonView jsonValue) :
m_geoMatchSetIdHasBeenSet(false),
m_nameHasBeenSet(false)
{
*this = jsonValue;
}
GeoMatchSetSummary& GeoMatchSetSummary::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("GeoMatchSetId"))
{
m_geoMatchSetId = jsonValue.GetString("GeoMatchSetId");
m_geoMatchSetIdHasBeenSet = true;
}
if(jsonValue.ValueExists("Name"))
{
m_name = jsonValue.GetString("Name");
m_nameHasBeenSet = true;
}
return *this;
}
JsonValue GeoMatchSetSummary::Jsonize() const
{
JsonValue payload;
if(m_geoMatchSetIdHasBeenSet)
{
payload.WithString("GeoMatchSetId", m_geoMatchSetId);
}
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
return payload;
}
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,75 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GeoMatchSetUpdate.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
GeoMatchSetUpdate::GeoMatchSetUpdate() :
m_action(ChangeAction::NOT_SET),
m_actionHasBeenSet(false),
m_geoMatchConstraintHasBeenSet(false)
{
}
GeoMatchSetUpdate::GeoMatchSetUpdate(JsonView jsonValue) :
m_action(ChangeAction::NOT_SET),
m_actionHasBeenSet(false),
m_geoMatchConstraintHasBeenSet(false)
{
*this = jsonValue;
}
GeoMatchSetUpdate& GeoMatchSetUpdate::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Action"))
{
m_action = ChangeActionMapper::GetChangeActionForName(jsonValue.GetString("Action"));
m_actionHasBeenSet = true;
}
if(jsonValue.ValueExists("GeoMatchConstraint"))
{
m_geoMatchConstraint = jsonValue.GetObject("GeoMatchConstraint");
m_geoMatchConstraintHasBeenSet = true;
}
return *this;
}
JsonValue GeoMatchSetUpdate::Jsonize() const
{
JsonValue payload;
if(m_actionHasBeenSet)
{
payload.WithString("Action", ChangeActionMapper::GetNameForChangeAction(m_action));
}
if(m_geoMatchConstraintHasBeenSet)
{
payload.WithObject("GeoMatchConstraint", m_geoMatchConstraint.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GetByteMatchSetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
GetByteMatchSetRequest::GetByteMatchSetRequest() :
m_byteMatchSetIdHasBeenSet(false)
{
}
Aws::String GetByteMatchSetRequest::SerializePayload() const
{
JsonValue payload;
if(m_byteMatchSetIdHasBeenSet)
{
payload.WithString("ByteMatchSetId", m_byteMatchSetId);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection GetByteMatchSetRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.GetByteMatchSet"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GetByteMatchSetResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetByteMatchSetResult::GetByteMatchSetResult()
{
}
GetByteMatchSetResult::GetByteMatchSetResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetByteMatchSetResult& GetByteMatchSetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ByteMatchSet"))
{
m_byteMatchSet = jsonValue.GetObject("ByteMatchSet");
}
return *this;
}

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GetChangeTokenRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
GetChangeTokenRequest::GetChangeTokenRequest()
{
}
Aws::String GetChangeTokenRequest::SerializePayload() const
{
return "{}";
}
Aws::Http::HeaderValueCollection GetChangeTokenRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.GetChangeToken"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GetChangeTokenResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetChangeTokenResult::GetChangeTokenResult()
{
}
GetChangeTokenResult::GetChangeTokenResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetChangeTokenResult& GetChangeTokenResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ChangeToken"))
{
m_changeToken = jsonValue.GetString("ChangeToken");
}
return *this;
}

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GetChangeTokenStatusRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
GetChangeTokenStatusRequest::GetChangeTokenStatusRequest() :
m_changeTokenHasBeenSet(false)
{
}
Aws::String GetChangeTokenStatusRequest::SerializePayload() const
{
JsonValue payload;
if(m_changeTokenHasBeenSet)
{
payload.WithString("ChangeToken", m_changeToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection GetChangeTokenStatusRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.GetChangeTokenStatus"));
return headers;
}

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GetChangeTokenStatusResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetChangeTokenStatusResult::GetChangeTokenStatusResult() :
m_changeTokenStatus(ChangeTokenStatus::NOT_SET)
{
}
GetChangeTokenStatusResult::GetChangeTokenStatusResult(const Aws::AmazonWebServiceResult<JsonValue>& result) :
m_changeTokenStatus(ChangeTokenStatus::NOT_SET)
{
*this = result;
}
GetChangeTokenStatusResult& GetChangeTokenStatusResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ChangeTokenStatus"))
{
m_changeTokenStatus = ChangeTokenStatusMapper::GetChangeTokenStatusForName(jsonValue.GetString("ChangeTokenStatus"));
}
return *this;
}

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GetGeoMatchSetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
GetGeoMatchSetRequest::GetGeoMatchSetRequest() :
m_geoMatchSetIdHasBeenSet(false)
{
}
Aws::String GetGeoMatchSetRequest::SerializePayload() const
{
JsonValue payload;
if(m_geoMatchSetIdHasBeenSet)
{
payload.WithString("GeoMatchSetId", m_geoMatchSetId);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection GetGeoMatchSetRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.GetGeoMatchSet"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GetGeoMatchSetResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetGeoMatchSetResult::GetGeoMatchSetResult()
{
}
GetGeoMatchSetResult::GetGeoMatchSetResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetGeoMatchSetResult& GetGeoMatchSetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("GeoMatchSet"))
{
m_geoMatchSet = jsonValue.GetObject("GeoMatchSet");
}
return *this;
}

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GetIPSetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
GetIPSetRequest::GetIPSetRequest() :
m_iPSetIdHasBeenSet(false)
{
}
Aws::String GetIPSetRequest::SerializePayload() const
{
JsonValue payload;
if(m_iPSetIdHasBeenSet)
{
payload.WithString("IPSetId", m_iPSetId);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection GetIPSetRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.GetIPSet"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GetIPSetResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetIPSetResult::GetIPSetResult()
{
}
GetIPSetResult::GetIPSetResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetIPSetResult& GetIPSetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("IPSet"))
{
m_iPSet = jsonValue.GetObject("IPSet");
}
return *this;
}

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GetLoggingConfigurationRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
GetLoggingConfigurationRequest::GetLoggingConfigurationRequest() :
m_resourceArnHasBeenSet(false)
{
}
Aws::String GetLoggingConfigurationRequest::SerializePayload() const
{
JsonValue payload;
if(m_resourceArnHasBeenSet)
{
payload.WithString("ResourceArn", m_resourceArn);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection GetLoggingConfigurationRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.GetLoggingConfiguration"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GetLoggingConfigurationResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetLoggingConfigurationResult::GetLoggingConfigurationResult()
{
}
GetLoggingConfigurationResult::GetLoggingConfigurationResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetLoggingConfigurationResult& GetLoggingConfigurationResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("LoggingConfiguration"))
{
m_loggingConfiguration = jsonValue.GetObject("LoggingConfiguration");
}
return *this;
}

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GetPermissionPolicyRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
GetPermissionPolicyRequest::GetPermissionPolicyRequest() :
m_resourceArnHasBeenSet(false)
{
}
Aws::String GetPermissionPolicyRequest::SerializePayload() const
{
JsonValue payload;
if(m_resourceArnHasBeenSet)
{
payload.WithString("ResourceArn", m_resourceArn);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection GetPermissionPolicyRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.GetPermissionPolicy"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GetPermissionPolicyResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetPermissionPolicyResult::GetPermissionPolicyResult()
{
}
GetPermissionPolicyResult::GetPermissionPolicyResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetPermissionPolicyResult& GetPermissionPolicyResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Policy"))
{
m_policy = jsonValue.GetString("Policy");
}
return *this;
}

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GetRateBasedRuleManagedKeysRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
GetRateBasedRuleManagedKeysRequest::GetRateBasedRuleManagedKeysRequest() :
m_ruleIdHasBeenSet(false),
m_nextMarkerHasBeenSet(false)
{
}
Aws::String GetRateBasedRuleManagedKeysRequest::SerializePayload() const
{
JsonValue payload;
if(m_ruleIdHasBeenSet)
{
payload.WithString("RuleId", m_ruleId);
}
if(m_nextMarkerHasBeenSet)
{
payload.WithString("NextMarker", m_nextMarker);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection GetRateBasedRuleManagedKeysRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.GetRateBasedRuleManagedKeys"));
return headers;
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GetRateBasedRuleManagedKeysResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetRateBasedRuleManagedKeysResult::GetRateBasedRuleManagedKeysResult()
{
}
GetRateBasedRuleManagedKeysResult::GetRateBasedRuleManagedKeysResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetRateBasedRuleManagedKeysResult& GetRateBasedRuleManagedKeysResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ManagedKeys"))
{
Array<JsonView> managedKeysJsonList = jsonValue.GetArray("ManagedKeys");
for(unsigned managedKeysIndex = 0; managedKeysIndex < managedKeysJsonList.GetLength(); ++managedKeysIndex)
{
m_managedKeys.push_back(managedKeysJsonList[managedKeysIndex].AsString());
}
}
if(jsonValue.ValueExists("NextMarker"))
{
m_nextMarker = jsonValue.GetString("NextMarker");
}
return *this;
}

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GetRateBasedRuleRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
GetRateBasedRuleRequest::GetRateBasedRuleRequest() :
m_ruleIdHasBeenSet(false)
{
}
Aws::String GetRateBasedRuleRequest::SerializePayload() const
{
JsonValue payload;
if(m_ruleIdHasBeenSet)
{
payload.WithString("RuleId", m_ruleId);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection GetRateBasedRuleRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.GetRateBasedRule"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GetRateBasedRuleResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetRateBasedRuleResult::GetRateBasedRuleResult()
{
}
GetRateBasedRuleResult::GetRateBasedRuleResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetRateBasedRuleResult& GetRateBasedRuleResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Rule"))
{
m_rule = jsonValue.GetObject("Rule");
}
return *this;
}

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GetRegexMatchSetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
GetRegexMatchSetRequest::GetRegexMatchSetRequest() :
m_regexMatchSetIdHasBeenSet(false)
{
}
Aws::String GetRegexMatchSetRequest::SerializePayload() const
{
JsonValue payload;
if(m_regexMatchSetIdHasBeenSet)
{
payload.WithString("RegexMatchSetId", m_regexMatchSetId);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection GetRegexMatchSetRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.GetRegexMatchSet"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GetRegexMatchSetResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetRegexMatchSetResult::GetRegexMatchSetResult()
{
}
GetRegexMatchSetResult::GetRegexMatchSetResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetRegexMatchSetResult& GetRegexMatchSetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("RegexMatchSet"))
{
m_regexMatchSet = jsonValue.GetObject("RegexMatchSet");
}
return *this;
}

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GetRegexPatternSetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
GetRegexPatternSetRequest::GetRegexPatternSetRequest() :
m_regexPatternSetIdHasBeenSet(false)
{
}
Aws::String GetRegexPatternSetRequest::SerializePayload() const
{
JsonValue payload;
if(m_regexPatternSetIdHasBeenSet)
{
payload.WithString("RegexPatternSetId", m_regexPatternSetId);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection GetRegexPatternSetRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.GetRegexPatternSet"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GetRegexPatternSetResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetRegexPatternSetResult::GetRegexPatternSetResult()
{
}
GetRegexPatternSetResult::GetRegexPatternSetResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetRegexPatternSetResult& GetRegexPatternSetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("RegexPatternSet"))
{
m_regexPatternSet = jsonValue.GetObject("RegexPatternSet");
}
return *this;
}

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GetRuleGroupRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
GetRuleGroupRequest::GetRuleGroupRequest() :
m_ruleGroupIdHasBeenSet(false)
{
}
Aws::String GetRuleGroupRequest::SerializePayload() const
{
JsonValue payload;
if(m_ruleGroupIdHasBeenSet)
{
payload.WithString("RuleGroupId", m_ruleGroupId);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection GetRuleGroupRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.GetRuleGroup"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GetRuleGroupResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetRuleGroupResult::GetRuleGroupResult()
{
}
GetRuleGroupResult::GetRuleGroupResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetRuleGroupResult& GetRuleGroupResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("RuleGroup"))
{
m_ruleGroup = jsonValue.GetObject("RuleGroup");
}
return *this;
}

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GetRuleRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
GetRuleRequest::GetRuleRequest() :
m_ruleIdHasBeenSet(false)
{
}
Aws::String GetRuleRequest::SerializePayload() const
{
JsonValue payload;
if(m_ruleIdHasBeenSet)
{
payload.WithString("RuleId", m_ruleId);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection GetRuleRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_Regional_20161128.GetRule"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GetRuleResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::WAFRegional::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetRuleResult::GetRuleResult()
{
}
GetRuleResult::GetRuleResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetRuleResult& GetRuleResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Rule"))
{
m_rule = jsonValue.GetObject("Rule");
}
return *this;
}

Some files were not shown because too many files have changed in this diff Show More