This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-fms/include/aws/fms/model/SecurityGroupRuleDescription.h

286 lines
9.8 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/fms/FMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace FMS
{
namespace Model
{
/**
* <p>Describes a set of permissions for a security group rule.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/SecurityGroupRuleDescription">AWS
* API Reference</a></p>
*/
class AWS_FMS_API SecurityGroupRuleDescription
{
public:
SecurityGroupRuleDescription();
SecurityGroupRuleDescription(Aws::Utils::Json::JsonView jsonValue);
SecurityGroupRuleDescription& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The IPv4 ranges for the security group rule.</p>
*/
inline const Aws::String& GetIPV4Range() const{ return m_iPV4Range; }
/**
* <p>The IPv4 ranges for the security group rule.</p>
*/
inline bool IPV4RangeHasBeenSet() const { return m_iPV4RangeHasBeenSet; }
/**
* <p>The IPv4 ranges for the security group rule.</p>
*/
inline void SetIPV4Range(const Aws::String& value) { m_iPV4RangeHasBeenSet = true; m_iPV4Range = value; }
/**
* <p>The IPv4 ranges for the security group rule.</p>
*/
inline void SetIPV4Range(Aws::String&& value) { m_iPV4RangeHasBeenSet = true; m_iPV4Range = std::move(value); }
/**
* <p>The IPv4 ranges for the security group rule.</p>
*/
inline void SetIPV4Range(const char* value) { m_iPV4RangeHasBeenSet = true; m_iPV4Range.assign(value); }
/**
* <p>The IPv4 ranges for the security group rule.</p>
*/
inline SecurityGroupRuleDescription& WithIPV4Range(const Aws::String& value) { SetIPV4Range(value); return *this;}
/**
* <p>The IPv4 ranges for the security group rule.</p>
*/
inline SecurityGroupRuleDescription& WithIPV4Range(Aws::String&& value) { SetIPV4Range(std::move(value)); return *this;}
/**
* <p>The IPv4 ranges for the security group rule.</p>
*/
inline SecurityGroupRuleDescription& WithIPV4Range(const char* value) { SetIPV4Range(value); return *this;}
/**
* <p>The IPv6 ranges for the security group rule.</p>
*/
inline const Aws::String& GetIPV6Range() const{ return m_iPV6Range; }
/**
* <p>The IPv6 ranges for the security group rule.</p>
*/
inline bool IPV6RangeHasBeenSet() const { return m_iPV6RangeHasBeenSet; }
/**
* <p>The IPv6 ranges for the security group rule.</p>
*/
inline void SetIPV6Range(const Aws::String& value) { m_iPV6RangeHasBeenSet = true; m_iPV6Range = value; }
/**
* <p>The IPv6 ranges for the security group rule.</p>
*/
inline void SetIPV6Range(Aws::String&& value) { m_iPV6RangeHasBeenSet = true; m_iPV6Range = std::move(value); }
/**
* <p>The IPv6 ranges for the security group rule.</p>
*/
inline void SetIPV6Range(const char* value) { m_iPV6RangeHasBeenSet = true; m_iPV6Range.assign(value); }
/**
* <p>The IPv6 ranges for the security group rule.</p>
*/
inline SecurityGroupRuleDescription& WithIPV6Range(const Aws::String& value) { SetIPV6Range(value); return *this;}
/**
* <p>The IPv6 ranges for the security group rule.</p>
*/
inline SecurityGroupRuleDescription& WithIPV6Range(Aws::String&& value) { SetIPV6Range(std::move(value)); return *this;}
/**
* <p>The IPv6 ranges for the security group rule.</p>
*/
inline SecurityGroupRuleDescription& WithIPV6Range(const char* value) { SetIPV6Range(value); return *this;}
/**
* <p>The ID of the prefix list for the security group rule.</p>
*/
inline const Aws::String& GetPrefixListId() const{ return m_prefixListId; }
/**
* <p>The ID of the prefix list for the security group rule.</p>
*/
inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
/**
* <p>The ID of the prefix list for the security group rule.</p>
*/
inline void SetPrefixListId(const Aws::String& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = value; }
/**
* <p>The ID of the prefix list for the security group rule.</p>
*/
inline void SetPrefixListId(Aws::String&& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = std::move(value); }
/**
* <p>The ID of the prefix list for the security group rule.</p>
*/
inline void SetPrefixListId(const char* value) { m_prefixListIdHasBeenSet = true; m_prefixListId.assign(value); }
/**
* <p>The ID of the prefix list for the security group rule.</p>
*/
inline SecurityGroupRuleDescription& WithPrefixListId(const Aws::String& value) { SetPrefixListId(value); return *this;}
/**
* <p>The ID of the prefix list for the security group rule.</p>
*/
inline SecurityGroupRuleDescription& WithPrefixListId(Aws::String&& value) { SetPrefixListId(std::move(value)); return *this;}
/**
* <p>The ID of the prefix list for the security group rule.</p>
*/
inline SecurityGroupRuleDescription& WithPrefixListId(const char* value) { SetPrefixListId(value); return *this;}
/**
* <p>The IP protocol name (<code>tcp</code>, <code>udp</code>, <code>icmp</code>,
* <code>icmpv6</code>) or number.</p>
*/
inline const Aws::String& GetProtocol() const{ return m_protocol; }
/**
* <p>The IP protocol name (<code>tcp</code>, <code>udp</code>, <code>icmp</code>,
* <code>icmpv6</code>) or number.</p>
*/
inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
/**
* <p>The IP protocol name (<code>tcp</code>, <code>udp</code>, <code>icmp</code>,
* <code>icmpv6</code>) or number.</p>
*/
inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
/**
* <p>The IP protocol name (<code>tcp</code>, <code>udp</code>, <code>icmp</code>,
* <code>icmpv6</code>) or number.</p>
*/
inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
/**
* <p>The IP protocol name (<code>tcp</code>, <code>udp</code>, <code>icmp</code>,
* <code>icmpv6</code>) or number.</p>
*/
inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
/**
* <p>The IP protocol name (<code>tcp</code>, <code>udp</code>, <code>icmp</code>,
* <code>icmpv6</code>) or number.</p>
*/
inline SecurityGroupRuleDescription& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
/**
* <p>The IP protocol name (<code>tcp</code>, <code>udp</code>, <code>icmp</code>,
* <code>icmpv6</code>) or number.</p>
*/
inline SecurityGroupRuleDescription& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
/**
* <p>The IP protocol name (<code>tcp</code>, <code>udp</code>, <code>icmp</code>,
* <code>icmpv6</code>) or number.</p>
*/
inline SecurityGroupRuleDescription& WithProtocol(const char* value) { SetProtocol(value); return *this;}
/**
* <p>The start of the port range for the TCP and UDP protocols, or an ICMP/ICMPv6
* type number. A value of <code>-1</code> indicates all ICMP/ICMPv6 types.</p>
*/
inline long long GetFromPort() const{ return m_fromPort; }
/**
* <p>The start of the port range for the TCP and UDP protocols, or an ICMP/ICMPv6
* type number. A value of <code>-1</code> indicates all ICMP/ICMPv6 types.</p>
*/
inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
/**
* <p>The start of the port range for the TCP and UDP protocols, or an ICMP/ICMPv6
* type number. A value of <code>-1</code> indicates all ICMP/ICMPv6 types.</p>
*/
inline void SetFromPort(long long value) { m_fromPortHasBeenSet = true; m_fromPort = value; }
/**
* <p>The start of the port range for the TCP and UDP protocols, or an ICMP/ICMPv6
* type number. A value of <code>-1</code> indicates all ICMP/ICMPv6 types.</p>
*/
inline SecurityGroupRuleDescription& WithFromPort(long long value) { SetFromPort(value); return *this;}
/**
* <p>The end of the port range for the TCP and UDP protocols, or an ICMP/ICMPv6
* code. A value of <code>-1</code> indicates all ICMP/ICMPv6 codes.</p>
*/
inline long long GetToPort() const{ return m_toPort; }
/**
* <p>The end of the port range for the TCP and UDP protocols, or an ICMP/ICMPv6
* code. A value of <code>-1</code> indicates all ICMP/ICMPv6 codes.</p>
*/
inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
/**
* <p>The end of the port range for the TCP and UDP protocols, or an ICMP/ICMPv6
* code. A value of <code>-1</code> indicates all ICMP/ICMPv6 codes.</p>
*/
inline void SetToPort(long long value) { m_toPortHasBeenSet = true; m_toPort = value; }
/**
* <p>The end of the port range for the TCP and UDP protocols, or an ICMP/ICMPv6
* code. A value of <code>-1</code> indicates all ICMP/ICMPv6 codes.</p>
*/
inline SecurityGroupRuleDescription& WithToPort(long long value) { SetToPort(value); return *this;}
private:
Aws::String m_iPV4Range;
bool m_iPV4RangeHasBeenSet;
Aws::String m_iPV6Range;
bool m_iPV6RangeHasBeenSet;
Aws::String m_prefixListId;
bool m_prefixListIdHasBeenSet;
Aws::String m_protocol;
bool m_protocolHasBeenSet;
long long m_fromPort;
bool m_fromPortHasBeenSet;
long long m_toPort;
bool m_toPortHasBeenSet;
};
} // namespace Model
} // namespace FMS
} // namespace Aws