7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/model/AwsEc2SecurityGroupUserIdGroupPair.h>
11#include <aws/securityhub/model/AwsEc2SecurityGroupIpRange.h>
12#include <aws/securityhub/model/AwsEc2SecurityGroupIpv6Range.h>
13#include <aws/securityhub/model/AwsEc2SecurityGroupPrefixListId.h>
61 inline void SetIpProtocol(
const char* value) { m_ipProtocolHasBeenSet =
true; m_ipProtocol.assign(value); }
75 inline void SetFromPort(
int value) { m_fromPortHasBeenSet =
true; m_fromPort = value; }
87 inline void SetToPort(
int value) { m_toPortHasBeenSet =
true; m_toPort = value; }
151 bool m_ipProtocolHasBeenSet =
false;
154 bool m_fromPortHasBeenSet =
false;
157 bool m_toPortHasBeenSet =
false;
160 bool m_userIdGroupPairsHasBeenSet =
false;
163 bool m_ipRangesHasBeenSet =
false;
166 bool m_ipv6RangesHasBeenSet =
false;
169 bool m_prefixListIdsHasBeenSet =
false;
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsEc2SecurityGroupIpPermission & WithIpRanges(Aws::Vector< AwsEc2SecurityGroupIpRange > &&value)
AwsEc2SecurityGroupIpPermission & AddPrefixListIds(const AwsEc2SecurityGroupPrefixListId &value)
AWS_SECURITYHUB_API AwsEc2SecurityGroupIpPermission(Aws::Utils::Json::JsonView jsonValue)
void SetToPort(int value)
AwsEc2SecurityGroupIpPermission & WithPrefixListIds(const Aws::Vector< AwsEc2SecurityGroupPrefixListId > &value)
bool PrefixListIdsHasBeenSet() const
void SetIpProtocol(const char *value)
AwsEc2SecurityGroupIpPermission & WithIpProtocol(const char *value)
void SetIpv6Ranges(const Aws::Vector< AwsEc2SecurityGroupIpv6Range > &value)
AWS_SECURITYHUB_API AwsEc2SecurityGroupIpPermission()
AwsEc2SecurityGroupIpPermission & WithIpProtocol(Aws::String &&value)
AwsEc2SecurityGroupIpPermission & WithToPort(int value)
bool UserIdGroupPairsHasBeenSet() const
const Aws::Vector< AwsEc2SecurityGroupIpv6Range > & GetIpv6Ranges() const
AwsEc2SecurityGroupIpPermission & WithFromPort(int value)
AWS_SECURITYHUB_API AwsEc2SecurityGroupIpPermission & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIpProtocol(Aws::String &&value)
bool FromPortHasBeenSet() const
AwsEc2SecurityGroupIpPermission & WithUserIdGroupPairs(Aws::Vector< AwsEc2SecurityGroupUserIdGroupPair > &&value)
AwsEc2SecurityGroupIpPermission & WithIpv6Ranges(Aws::Vector< AwsEc2SecurityGroupIpv6Range > &&value)
AwsEc2SecurityGroupIpPermission & AddUserIdGroupPairs(const AwsEc2SecurityGroupUserIdGroupPair &value)
void SetUserIdGroupPairs(Aws::Vector< AwsEc2SecurityGroupUserIdGroupPair > &&value)
bool ToPortHasBeenSet() const
const Aws::Vector< AwsEc2SecurityGroupUserIdGroupPair > & GetUserIdGroupPairs() const
AwsEc2SecurityGroupIpPermission & AddIpv6Ranges(const AwsEc2SecurityGroupIpv6Range &value)
void SetPrefixListIds(Aws::Vector< AwsEc2SecurityGroupPrefixListId > &&value)
void SetUserIdGroupPairs(const Aws::Vector< AwsEc2SecurityGroupUserIdGroupPair > &value)
AwsEc2SecurityGroupIpPermission & AddIpRanges(const AwsEc2SecurityGroupIpRange &value)
void SetFromPort(int value)
void SetIpRanges(Aws::Vector< AwsEc2SecurityGroupIpRange > &&value)
AwsEc2SecurityGroupIpPermission & AddUserIdGroupPairs(AwsEc2SecurityGroupUserIdGroupPair &&value)
void SetPrefixListIds(const Aws::Vector< AwsEc2SecurityGroupPrefixListId > &value)
bool IpProtocolHasBeenSet() const
AwsEc2SecurityGroupIpPermission & WithPrefixListIds(Aws::Vector< AwsEc2SecurityGroupPrefixListId > &&value)
bool IpRangesHasBeenSet() const
const Aws::Vector< AwsEc2SecurityGroupIpRange > & GetIpRanges() const
AwsEc2SecurityGroupIpPermission & WithIpv6Ranges(const Aws::Vector< AwsEc2SecurityGroupIpv6Range > &value)
bool Ipv6RangesHasBeenSet() const
const Aws::Vector< AwsEc2SecurityGroupPrefixListId > & GetPrefixListIds() const
void SetIpv6Ranges(Aws::Vector< AwsEc2SecurityGroupIpv6Range > &&value)
AwsEc2SecurityGroupIpPermission & AddPrefixListIds(AwsEc2SecurityGroupPrefixListId &&value)
AwsEc2SecurityGroupIpPermission & WithIpProtocol(const Aws::String &value)
AwsEc2SecurityGroupIpPermission & AddIpv6Ranges(AwsEc2SecurityGroupIpv6Range &&value)
AwsEc2SecurityGroupIpPermission & WithUserIdGroupPairs(const Aws::Vector< AwsEc2SecurityGroupUserIdGroupPair > &value)
AwsEc2SecurityGroupIpPermission & AddIpRanges(AwsEc2SecurityGroupIpRange &&value)
AwsEc2SecurityGroupIpPermission & WithIpRanges(const Aws::Vector< AwsEc2SecurityGroupIpRange > &value)
void SetIpProtocol(const Aws::String &value)
void SetIpRanges(const Aws::Vector< AwsEc2SecurityGroupIpRange > &value)
const Aws::String & GetIpProtocol() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue