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

Contains details about an Amazon EC2 network access control list * (ACL).

See Also:

AWS * API Reference

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

Whether this is the default network ACL for the VPC.

*/ inline bool GetIsDefault() const{ return m_isDefault; } /** *

Whether this is the default network ACL for the VPC.

*/ inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; } /** *

Whether this is the default network ACL for the VPC.

*/ inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; } /** *

Whether this is the default network ACL for the VPC.

*/ inline AwsEc2NetworkAclDetails& WithIsDefault(bool value) { SetIsDefault(value); return *this;} /** *

The identifier of the network ACL.

*/ inline const Aws::String& GetNetworkAclId() const{ return m_networkAclId; } /** *

The identifier of the network ACL.

*/ inline bool NetworkAclIdHasBeenSet() const { return m_networkAclIdHasBeenSet; } /** *

The identifier of the network ACL.

*/ inline void SetNetworkAclId(const Aws::String& value) { m_networkAclIdHasBeenSet = true; m_networkAclId = value; } /** *

The identifier of the network ACL.

*/ inline void SetNetworkAclId(Aws::String&& value) { m_networkAclIdHasBeenSet = true; m_networkAclId = std::move(value); } /** *

The identifier of the network ACL.

*/ inline void SetNetworkAclId(const char* value) { m_networkAclIdHasBeenSet = true; m_networkAclId.assign(value); } /** *

The identifier of the network ACL.

*/ inline AwsEc2NetworkAclDetails& WithNetworkAclId(const Aws::String& value) { SetNetworkAclId(value); return *this;} /** *

The identifier of the network ACL.

*/ inline AwsEc2NetworkAclDetails& WithNetworkAclId(Aws::String&& value) { SetNetworkAclId(std::move(value)); return *this;} /** *

The identifier of the network ACL.

*/ inline AwsEc2NetworkAclDetails& WithNetworkAclId(const char* value) { SetNetworkAclId(value); return *this;} /** *

The identifier of the Amazon Web Services account that owns the network * ACL.

*/ inline const Aws::String& GetOwnerId() const{ return m_ownerId; } /** *

The identifier of the Amazon Web Services account that owns the network * ACL.

*/ inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; } /** *

The identifier of the Amazon Web Services account that owns the network * ACL.

*/ inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; } /** *

The identifier of the Amazon Web Services account that owns the network * ACL.

*/ inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); } /** *

The identifier of the Amazon Web Services account that owns the network * ACL.

*/ inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); } /** *

The identifier of the Amazon Web Services account that owns the network * ACL.

*/ inline AwsEc2NetworkAclDetails& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;} /** *

The identifier of the Amazon Web Services account that owns the network * ACL.

*/ inline AwsEc2NetworkAclDetails& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;} /** *

The identifier of the Amazon Web Services account that owns the network * ACL.

*/ inline AwsEc2NetworkAclDetails& WithOwnerId(const char* value) { SetOwnerId(value); return *this;} /** *

The identifier of the VPC for the network ACL.

*/ inline const Aws::String& GetVpcId() const{ return m_vpcId; } /** *

The identifier of the VPC for the network ACL.

*/ inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } /** *

The identifier of the VPC for the network ACL.

*/ inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } /** *

The identifier of the VPC for the network ACL.

*/ inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } /** *

The identifier of the VPC for the network ACL.

*/ inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } /** *

The identifier of the VPC for the network ACL.

*/ inline AwsEc2NetworkAclDetails& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *

The identifier of the VPC for the network ACL.

*/ inline AwsEc2NetworkAclDetails& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *

The identifier of the VPC for the network ACL.

*/ inline AwsEc2NetworkAclDetails& WithVpcId(const char* value) { SetVpcId(value); return *this;} /** *

Associations between the network ACL and subnets.

*/ inline const Aws::Vector& GetAssociations() const{ return m_associations; } /** *

Associations between the network ACL and subnets.

*/ inline bool AssociationsHasBeenSet() const { return m_associationsHasBeenSet; } /** *

Associations between the network ACL and subnets.

*/ inline void SetAssociations(const Aws::Vector& value) { m_associationsHasBeenSet = true; m_associations = value; } /** *

Associations between the network ACL and subnets.

*/ inline void SetAssociations(Aws::Vector&& value) { m_associationsHasBeenSet = true; m_associations = std::move(value); } /** *

Associations between the network ACL and subnets.

*/ inline AwsEc2NetworkAclDetails& WithAssociations(const Aws::Vector& value) { SetAssociations(value); return *this;} /** *

Associations between the network ACL and subnets.

*/ inline AwsEc2NetworkAclDetails& WithAssociations(Aws::Vector&& value) { SetAssociations(std::move(value)); return *this;} /** *

Associations between the network ACL and subnets.

*/ inline AwsEc2NetworkAclDetails& AddAssociations(const AwsEc2NetworkAclAssociation& value) { m_associationsHasBeenSet = true; m_associations.push_back(value); return *this; } /** *

Associations between the network ACL and subnets.

*/ inline AwsEc2NetworkAclDetails& AddAssociations(AwsEc2NetworkAclAssociation&& value) { m_associationsHasBeenSet = true; m_associations.push_back(std::move(value)); return *this; } /** *

The set of rules in the network ACL.

*/ inline const Aws::Vector& GetEntries() const{ return m_entries; } /** *

The set of rules in the network ACL.

*/ inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; } /** *

The set of rules in the network ACL.

*/ inline void SetEntries(const Aws::Vector& value) { m_entriesHasBeenSet = true; m_entries = value; } /** *

The set of rules in the network ACL.

*/ inline void SetEntries(Aws::Vector&& value) { m_entriesHasBeenSet = true; m_entries = std::move(value); } /** *

The set of rules in the network ACL.

*/ inline AwsEc2NetworkAclDetails& WithEntries(const Aws::Vector& value) { SetEntries(value); return *this;} /** *

The set of rules in the network ACL.

*/ inline AwsEc2NetworkAclDetails& WithEntries(Aws::Vector&& value) { SetEntries(std::move(value)); return *this;} /** *

The set of rules in the network ACL.

*/ inline AwsEc2NetworkAclDetails& AddEntries(const AwsEc2NetworkAclEntry& value) { m_entriesHasBeenSet = true; m_entries.push_back(value); return *this; } /** *

The set of rules in the network ACL.

*/ inline AwsEc2NetworkAclDetails& AddEntries(AwsEc2NetworkAclEntry&& value) { m_entriesHasBeenSet = true; m_entries.push_back(std::move(value)); return *this; } private: bool m_isDefault; bool m_isDefaultHasBeenSet = false; Aws::String m_networkAclId; bool m_networkAclIdHasBeenSet = false; Aws::String m_ownerId; bool m_ownerIdHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; Aws::Vector m_associations; bool m_associationsHasBeenSet = false; Aws::Vector m_entries; bool m_entriesHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws