240 lines
9.5 KiB
C
240 lines
9.5 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/securityhub/SecurityHub_EXPORTS.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/securityhub/model/CidrBlockAssociation.h>
|
|||
|
|
#include <aws/securityhub/model/Ipv6CidrBlockAssociation.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Json
|
|||
|
|
{
|
|||
|
|
class JsonValue;
|
|||
|
|
class JsonView;
|
|||
|
|
} // namespace Json
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace SecurityHub
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Details about an EC2 VPC.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/AwsEc2VpcDetails">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_SECURITYHUB_API AwsEc2VpcDetails
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
AwsEc2VpcDetails();
|
|||
|
|
AwsEc2VpcDetails(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
AwsEc2VpcDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Information about the IPv4 CIDR blocks associated with the VPC.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<CidrBlockAssociation>& GetCidrBlockAssociationSet() const{ return m_cidrBlockAssociationSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Information about the IPv4 CIDR blocks associated with the VPC.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool CidrBlockAssociationSetHasBeenSet() const { return m_cidrBlockAssociationSetHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Information about the IPv4 CIDR blocks associated with the VPC.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCidrBlockAssociationSet(const Aws::Vector<CidrBlockAssociation>& value) { m_cidrBlockAssociationSetHasBeenSet = true; m_cidrBlockAssociationSet = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Information about the IPv4 CIDR blocks associated with the VPC.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCidrBlockAssociationSet(Aws::Vector<CidrBlockAssociation>&& value) { m_cidrBlockAssociationSetHasBeenSet = true; m_cidrBlockAssociationSet = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Information about the IPv4 CIDR blocks associated with the VPC.</p>
|
|||
|
|
*/
|
|||
|
|
inline AwsEc2VpcDetails& WithCidrBlockAssociationSet(const Aws::Vector<CidrBlockAssociation>& value) { SetCidrBlockAssociationSet(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Information about the IPv4 CIDR blocks associated with the VPC.</p>
|
|||
|
|
*/
|
|||
|
|
inline AwsEc2VpcDetails& WithCidrBlockAssociationSet(Aws::Vector<CidrBlockAssociation>&& value) { SetCidrBlockAssociationSet(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Information about the IPv4 CIDR blocks associated with the VPC.</p>
|
|||
|
|
*/
|
|||
|
|
inline AwsEc2VpcDetails& AddCidrBlockAssociationSet(const CidrBlockAssociation& value) { m_cidrBlockAssociationSetHasBeenSet = true; m_cidrBlockAssociationSet.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Information about the IPv4 CIDR blocks associated with the VPC.</p>
|
|||
|
|
*/
|
|||
|
|
inline AwsEc2VpcDetails& AddCidrBlockAssociationSet(CidrBlockAssociation&& value) { m_cidrBlockAssociationSetHasBeenSet = true; m_cidrBlockAssociationSet.push_back(std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Information about the IPv6 CIDR blocks associated with the VPC.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<Ipv6CidrBlockAssociation>& GetIpv6CidrBlockAssociationSet() const{ return m_ipv6CidrBlockAssociationSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Information about the IPv6 CIDR blocks associated with the VPC.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool Ipv6CidrBlockAssociationSetHasBeenSet() const { return m_ipv6CidrBlockAssociationSetHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Information about the IPv6 CIDR blocks associated with the VPC.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetIpv6CidrBlockAssociationSet(const Aws::Vector<Ipv6CidrBlockAssociation>& value) { m_ipv6CidrBlockAssociationSetHasBeenSet = true; m_ipv6CidrBlockAssociationSet = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Information about the IPv6 CIDR blocks associated with the VPC.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetIpv6CidrBlockAssociationSet(Aws::Vector<Ipv6CidrBlockAssociation>&& value) { m_ipv6CidrBlockAssociationSetHasBeenSet = true; m_ipv6CidrBlockAssociationSet = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Information about the IPv6 CIDR blocks associated with the VPC.</p>
|
|||
|
|
*/
|
|||
|
|
inline AwsEc2VpcDetails& WithIpv6CidrBlockAssociationSet(const Aws::Vector<Ipv6CidrBlockAssociation>& value) { SetIpv6CidrBlockAssociationSet(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Information about the IPv6 CIDR blocks associated with the VPC.</p>
|
|||
|
|
*/
|
|||
|
|
inline AwsEc2VpcDetails& WithIpv6CidrBlockAssociationSet(Aws::Vector<Ipv6CidrBlockAssociation>&& value) { SetIpv6CidrBlockAssociationSet(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Information about the IPv6 CIDR blocks associated with the VPC.</p>
|
|||
|
|
*/
|
|||
|
|
inline AwsEc2VpcDetails& AddIpv6CidrBlockAssociationSet(const Ipv6CidrBlockAssociation& value) { m_ipv6CidrBlockAssociationSetHasBeenSet = true; m_ipv6CidrBlockAssociationSet.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Information about the IPv6 CIDR blocks associated with the VPC.</p>
|
|||
|
|
*/
|
|||
|
|
inline AwsEc2VpcDetails& AddIpv6CidrBlockAssociationSet(Ipv6CidrBlockAssociation&& value) { m_ipv6CidrBlockAssociationSetHasBeenSet = true; m_ipv6CidrBlockAssociationSet.push_back(std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of the set of Dynamic Host Configuration Protocol (DHCP)
|
|||
|
|
* options that are associated with the VPC. If the default options are associated
|
|||
|
|
* with the VPC, then this is default.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetDhcpOptionsId() const{ return m_dhcpOptionsId; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of the set of Dynamic Host Configuration Protocol (DHCP)
|
|||
|
|
* options that are associated with the VPC. If the default options are associated
|
|||
|
|
* with the VPC, then this is default.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool DhcpOptionsIdHasBeenSet() const { return m_dhcpOptionsIdHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of the set of Dynamic Host Configuration Protocol (DHCP)
|
|||
|
|
* options that are associated with the VPC. If the default options are associated
|
|||
|
|
* with the VPC, then this is default.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDhcpOptionsId(const Aws::String& value) { m_dhcpOptionsIdHasBeenSet = true; m_dhcpOptionsId = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of the set of Dynamic Host Configuration Protocol (DHCP)
|
|||
|
|
* options that are associated with the VPC. If the default options are associated
|
|||
|
|
* with the VPC, then this is default.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDhcpOptionsId(Aws::String&& value) { m_dhcpOptionsIdHasBeenSet = true; m_dhcpOptionsId = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of the set of Dynamic Host Configuration Protocol (DHCP)
|
|||
|
|
* options that are associated with the VPC. If the default options are associated
|
|||
|
|
* with the VPC, then this is default.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDhcpOptionsId(const char* value) { m_dhcpOptionsIdHasBeenSet = true; m_dhcpOptionsId.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of the set of Dynamic Host Configuration Protocol (DHCP)
|
|||
|
|
* options that are associated with the VPC. If the default options are associated
|
|||
|
|
* with the VPC, then this is default.</p>
|
|||
|
|
*/
|
|||
|
|
inline AwsEc2VpcDetails& WithDhcpOptionsId(const Aws::String& value) { SetDhcpOptionsId(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of the set of Dynamic Host Configuration Protocol (DHCP)
|
|||
|
|
* options that are associated with the VPC. If the default options are associated
|
|||
|
|
* with the VPC, then this is default.</p>
|
|||
|
|
*/
|
|||
|
|
inline AwsEc2VpcDetails& WithDhcpOptionsId(Aws::String&& value) { SetDhcpOptionsId(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of the set of Dynamic Host Configuration Protocol (DHCP)
|
|||
|
|
* options that are associated with the VPC. If the default options are associated
|
|||
|
|
* with the VPC, then this is default.</p>
|
|||
|
|
*/
|
|||
|
|
inline AwsEc2VpcDetails& WithDhcpOptionsId(const char* value) { SetDhcpOptionsId(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The current state of the VPC.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetState() const{ return m_state; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The current state of the VPC.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The current state of the VPC.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The current state of the VPC.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The current state of the VPC.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The current state of the VPC.</p>
|
|||
|
|
*/
|
|||
|
|
inline AwsEc2VpcDetails& WithState(const Aws::String& value) { SetState(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The current state of the VPC.</p>
|
|||
|
|
*/
|
|||
|
|
inline AwsEc2VpcDetails& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The current state of the VPC.</p>
|
|||
|
|
*/
|
|||
|
|
inline AwsEc2VpcDetails& WithState(const char* value) { SetState(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::Vector<CidrBlockAssociation> m_cidrBlockAssociationSet;
|
|||
|
|
bool m_cidrBlockAssociationSetHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::Vector<Ipv6CidrBlockAssociation> m_ipv6CidrBlockAssociationSet;
|
|||
|
|
bool m_ipv6CidrBlockAssociationSetHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_dhcpOptionsId;
|
|||
|
|
bool m_dhcpOptionsIdHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_state;
|
|||
|
|
bool m_stateHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace SecurityHub
|
|||
|
|
} // namespace Aws
|