/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

A set of TCP flags and masks to inspect for.

See Also:

AWS * API Reference

*/ class RuleGroupSourceStatelessRuleMatchAttributesTcpFlags { public: AWS_SECURITYHUB_API RuleGroupSourceStatelessRuleMatchAttributesTcpFlags(); AWS_SECURITYHUB_API RuleGroupSourceStatelessRuleMatchAttributesTcpFlags(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API RuleGroupSourceStatelessRuleMatchAttributesTcpFlags& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Defines the flags from the Masks setting that must be set in * order for the packet to match. Flags that are listed must be set. Flags that are * not listed must not be set.

*/ inline const Aws::Vector& GetFlags() const{ return m_flags; } /** *

Defines the flags from the Masks setting that must be set in * order for the packet to match. Flags that are listed must be set. Flags that are * not listed must not be set.

*/ inline bool FlagsHasBeenSet() const { return m_flagsHasBeenSet; } /** *

Defines the flags from the Masks setting that must be set in * order for the packet to match. Flags that are listed must be set. Flags that are * not listed must not be set.

*/ inline void SetFlags(const Aws::Vector& value) { m_flagsHasBeenSet = true; m_flags = value; } /** *

Defines the flags from the Masks setting that must be set in * order for the packet to match. Flags that are listed must be set. Flags that are * not listed must not be set.

*/ inline void SetFlags(Aws::Vector&& value) { m_flagsHasBeenSet = true; m_flags = std::move(value); } /** *

Defines the flags from the Masks setting that must be set in * order for the packet to match. Flags that are listed must be set. Flags that are * not listed must not be set.

*/ inline RuleGroupSourceStatelessRuleMatchAttributesTcpFlags& WithFlags(const Aws::Vector& value) { SetFlags(value); return *this;} /** *

Defines the flags from the Masks setting that must be set in * order for the packet to match. Flags that are listed must be set. Flags that are * not listed must not be set.

*/ inline RuleGroupSourceStatelessRuleMatchAttributesTcpFlags& WithFlags(Aws::Vector&& value) { SetFlags(std::move(value)); return *this;} /** *

Defines the flags from the Masks setting that must be set in * order for the packet to match. Flags that are listed must be set. Flags that are * not listed must not be set.

*/ inline RuleGroupSourceStatelessRuleMatchAttributesTcpFlags& AddFlags(const Aws::String& value) { m_flagsHasBeenSet = true; m_flags.push_back(value); return *this; } /** *

Defines the flags from the Masks setting that must be set in * order for the packet to match. Flags that are listed must be set. Flags that are * not listed must not be set.

*/ inline RuleGroupSourceStatelessRuleMatchAttributesTcpFlags& AddFlags(Aws::String&& value) { m_flagsHasBeenSet = true; m_flags.push_back(std::move(value)); return *this; } /** *

Defines the flags from the Masks setting that must be set in * order for the packet to match. Flags that are listed must be set. Flags that are * not listed must not be set.

*/ inline RuleGroupSourceStatelessRuleMatchAttributesTcpFlags& AddFlags(const char* value) { m_flagsHasBeenSet = true; m_flags.push_back(value); return *this; } /** *

The set of flags to consider in the inspection. If not specified, then all * flags are inspected.

*/ inline const Aws::Vector& GetMasks() const{ return m_masks; } /** *

The set of flags to consider in the inspection. If not specified, then all * flags are inspected.

*/ inline bool MasksHasBeenSet() const { return m_masksHasBeenSet; } /** *

The set of flags to consider in the inspection. If not specified, then all * flags are inspected.

*/ inline void SetMasks(const Aws::Vector& value) { m_masksHasBeenSet = true; m_masks = value; } /** *

The set of flags to consider in the inspection. If not specified, then all * flags are inspected.

*/ inline void SetMasks(Aws::Vector&& value) { m_masksHasBeenSet = true; m_masks = std::move(value); } /** *

The set of flags to consider in the inspection. If not specified, then all * flags are inspected.

*/ inline RuleGroupSourceStatelessRuleMatchAttributesTcpFlags& WithMasks(const Aws::Vector& value) { SetMasks(value); return *this;} /** *

The set of flags to consider in the inspection. If not specified, then all * flags are inspected.

*/ inline RuleGroupSourceStatelessRuleMatchAttributesTcpFlags& WithMasks(Aws::Vector&& value) { SetMasks(std::move(value)); return *this;} /** *

The set of flags to consider in the inspection. If not specified, then all * flags are inspected.

*/ inline RuleGroupSourceStatelessRuleMatchAttributesTcpFlags& AddMasks(const Aws::String& value) { m_masksHasBeenSet = true; m_masks.push_back(value); return *this; } /** *

The set of flags to consider in the inspection. If not specified, then all * flags are inspected.

*/ inline RuleGroupSourceStatelessRuleMatchAttributesTcpFlags& AddMasks(Aws::String&& value) { m_masksHasBeenSet = true; m_masks.push_back(std::move(value)); return *this; } /** *

The set of flags to consider in the inspection. If not specified, then all * flags are inspected.

*/ inline RuleGroupSourceStatelessRuleMatchAttributesTcpFlags& AddMasks(const char* value) { m_masksHasBeenSet = true; m_masks.push_back(value); return *this; } private: Aws::Vector m_flags; bool m_flagsHasBeenSet = false; Aws::Vector m_masks; bool m_masksHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws