/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a stale rule in a security group.See Also:
AWS
* API Reference
The start of the port range for the TCP and UDP protocols, or an ICMP type
* number. A value of -1 indicates all ICMP types.
The start of the port range for the TCP and UDP protocols, or an ICMP type
* number. A value of -1 indicates all ICMP types.
The start of the port range for the TCP and UDP protocols, or an ICMP type
* number. A value of -1 indicates all ICMP types.
The start of the port range for the TCP and UDP protocols, or an ICMP type
* number. A value of -1 indicates all ICMP types.
The IP protocol name (for tcp, udp, and
* icmp) or number (see Protocol
* Numbers).
The IP protocol name (for tcp, udp, and
* icmp) or number (see Protocol
* Numbers).
The IP protocol name (for tcp, udp, and
* icmp) or number (see Protocol
* Numbers).
The IP protocol name (for tcp, udp, and
* icmp) or number (see Protocol
* Numbers).
The IP protocol name (for tcp, udp, and
* icmp) or number (see Protocol
* Numbers).
The IP protocol name (for tcp, udp, and
* icmp) or number (see Protocol
* Numbers).
The IP protocol name (for tcp, udp, and
* icmp) or number (see Protocol
* Numbers).
The IP protocol name (for tcp, udp, and
* icmp) or number (see Protocol
* Numbers).
The IP ranges. Not applicable for stale security group rules.
*/ inline const Aws::VectorThe IP ranges. Not applicable for stale security group rules.
*/ inline bool IpRangesHasBeenSet() const { return m_ipRangesHasBeenSet; } /** *The IP ranges. Not applicable for stale security group rules.
*/ inline void SetIpRanges(const Aws::VectorThe IP ranges. Not applicable for stale security group rules.
*/ inline void SetIpRanges(Aws::VectorThe IP ranges. Not applicable for stale security group rules.
*/ inline StaleIpPermission& WithIpRanges(const Aws::VectorThe IP ranges. Not applicable for stale security group rules.
*/ inline StaleIpPermission& WithIpRanges(Aws::VectorThe IP ranges. Not applicable for stale security group rules.
*/ inline StaleIpPermission& AddIpRanges(const Aws::String& value) { m_ipRangesHasBeenSet = true; m_ipRanges.push_back(value); return *this; } /** *The IP ranges. Not applicable for stale security group rules.
*/ inline StaleIpPermission& AddIpRanges(Aws::String&& value) { m_ipRangesHasBeenSet = true; m_ipRanges.push_back(std::move(value)); return *this; } /** *The IP ranges. Not applicable for stale security group rules.
*/ inline StaleIpPermission& AddIpRanges(const char* value) { m_ipRangesHasBeenSet = true; m_ipRanges.push_back(value); return *this; } /** *The prefix list IDs. Not applicable for stale security group rules.
*/ inline const Aws::VectorThe prefix list IDs. Not applicable for stale security group rules.
*/ inline bool PrefixListIdsHasBeenSet() const { return m_prefixListIdsHasBeenSet; } /** *The prefix list IDs. Not applicable for stale security group rules.
*/ inline void SetPrefixListIds(const Aws::VectorThe prefix list IDs. Not applicable for stale security group rules.
*/ inline void SetPrefixListIds(Aws::VectorThe prefix list IDs. Not applicable for stale security group rules.
*/ inline StaleIpPermission& WithPrefixListIds(const Aws::VectorThe prefix list IDs. Not applicable for stale security group rules.
*/ inline StaleIpPermission& WithPrefixListIds(Aws::VectorThe prefix list IDs. Not applicable for stale security group rules.
*/ inline StaleIpPermission& AddPrefixListIds(const Aws::String& value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds.push_back(value); return *this; } /** *The prefix list IDs. Not applicable for stale security group rules.
*/ inline StaleIpPermission& AddPrefixListIds(Aws::String&& value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds.push_back(std::move(value)); return *this; } /** *The prefix list IDs. Not applicable for stale security group rules.
*/ inline StaleIpPermission& AddPrefixListIds(const char* value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds.push_back(value); return *this; } /** *The end of the port range for the TCP and UDP protocols, or an ICMP type
* number. A value of -1 indicates all ICMP types.
The end of the port range for the TCP and UDP protocols, or an ICMP type
* number. A value of -1 indicates all ICMP types.
The end of the port range for the TCP and UDP protocols, or an ICMP type
* number. A value of -1 indicates all ICMP types.
The end of the port range for the TCP and UDP protocols, or an ICMP type
* number. A value of -1 indicates all ICMP types.
The security group pairs. Returns the ID of the referenced security group and * VPC, and the ID and status of the VPC peering connection.
*/ inline const Aws::VectorThe security group pairs. Returns the ID of the referenced security group and * VPC, and the ID and status of the VPC peering connection.
*/ inline bool UserIdGroupPairsHasBeenSet() const { return m_userIdGroupPairsHasBeenSet; } /** *The security group pairs. Returns the ID of the referenced security group and * VPC, and the ID and status of the VPC peering connection.
*/ inline void SetUserIdGroupPairs(const Aws::VectorThe security group pairs. Returns the ID of the referenced security group and * VPC, and the ID and status of the VPC peering connection.
*/ inline void SetUserIdGroupPairs(Aws::VectorThe security group pairs. Returns the ID of the referenced security group and * VPC, and the ID and status of the VPC peering connection.
*/ inline StaleIpPermission& WithUserIdGroupPairs(const Aws::VectorThe security group pairs. Returns the ID of the referenced security group and * VPC, and the ID and status of the VPC peering connection.
*/ inline StaleIpPermission& WithUserIdGroupPairs(Aws::VectorThe security group pairs. Returns the ID of the referenced security group and * VPC, and the ID and status of the VPC peering connection.
*/ inline StaleIpPermission& AddUserIdGroupPairs(const UserIdGroupPair& value) { m_userIdGroupPairsHasBeenSet = true; m_userIdGroupPairs.push_back(value); return *this; } /** *The security group pairs. Returns the ID of the referenced security group and * VPC, and the ID and status of the VPC peering connection.
*/ inline StaleIpPermission& AddUserIdGroupPairs(UserIdGroupPair&& value) { m_userIdGroupPairsHasBeenSet = true; m_userIdGroupPairs.push_back(std::move(value)); return *this; } private: int m_fromPort; bool m_fromPortHasBeenSet; Aws::String m_ipProtocol; bool m_ipProtocolHasBeenSet; Aws::Vector