/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::NetworkFirewall::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateRuleGroupRequest::UpdateRuleGroupRequest() : m_updateTokenHasBeenSet(false), m_ruleGroupArnHasBeenSet(false), m_ruleGroupNameHasBeenSet(false), m_ruleGroupHasBeenSet(false), m_rulesHasBeenSet(false), m_type(RuleGroupType::NOT_SET), m_typeHasBeenSet(false), m_descriptionHasBeenSet(false), m_dryRun(false), m_dryRunHasBeenSet(false), m_encryptionConfigurationHasBeenSet(false), m_sourceMetadataHasBeenSet(false) { } Aws::String UpdateRuleGroupRequest::SerializePayload() const { JsonValue payload; if(m_updateTokenHasBeenSet) { payload.WithString("UpdateToken", m_updateToken); } if(m_ruleGroupArnHasBeenSet) { payload.WithString("RuleGroupArn", m_ruleGroupArn); } if(m_ruleGroupNameHasBeenSet) { payload.WithString("RuleGroupName", m_ruleGroupName); } if(m_ruleGroupHasBeenSet) { payload.WithObject("RuleGroup", m_ruleGroup.Jsonize()); } if(m_rulesHasBeenSet) { payload.WithString("Rules", m_rules); } if(m_typeHasBeenSet) { payload.WithString("Type", RuleGroupTypeMapper::GetNameForRuleGroupType(m_type)); } if(m_descriptionHasBeenSet) { payload.WithString("Description", m_description); } if(m_dryRunHasBeenSet) { payload.WithBool("DryRun", m_dryRun); } if(m_encryptionConfigurationHasBeenSet) { payload.WithObject("EncryptionConfiguration", m_encryptionConfiguration.Jsonize()); } if(m_sourceMetadataHasBeenSet) { payload.WithObject("SourceMetadata", m_sourceMetadata.Jsonize()); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection UpdateRuleGroupRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "NetworkFirewall_20201112.UpdateRuleGroup")); return headers; }