7#include <aws/fms/FMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
47 template<
typename IPV4RangeT = Aws::String>
48 void SetIPV4Range(IPV4RangeT&& value) { m_iPV4RangeHasBeenSet =
true; m_iPV4Range = std::forward<IPV4RangeT>(value); }
49 template<
typename IPV4RangeT = Aws::String>
59 template<
typename IPV6RangeT = Aws::String>
60 void SetIPV6Range(IPV6RangeT&& value) { m_iPV6RangeHasBeenSet =
true; m_iPV6Range = std::forward<IPV6RangeT>(value); }
61 template<
typename IPV6RangeT = Aws::String>
71 template<
typename PrefixListIdT = Aws::String>
72 void SetPrefixListId(PrefixListIdT&& value) { m_prefixListIdHasBeenSet =
true; m_prefixListId = std::forward<PrefixListIdT>(value); }
73 template<
typename PrefixListIdT = Aws::String>
84 template<
typename ProtocolT = Aws::String>
85 void SetProtocol(ProtocolT&& value) { m_protocolHasBeenSet =
true; m_protocol = std::forward<ProtocolT>(value); }
86 template<
typename ProtocolT = Aws::String>
97 inline void SetFromPort(
long long value) { m_fromPortHasBeenSet =
true; m_fromPort = value; }
108 inline void SetToPort(
long long value) { m_toPortHasBeenSet =
true; m_toPort = value; }
114 bool m_iPV4RangeHasBeenSet =
false;
117 bool m_iPV6RangeHasBeenSet =
false;
120 bool m_prefixListIdHasBeenSet =
false;
123 bool m_protocolHasBeenSet =
false;
125 long long m_fromPort{0};
126 bool m_fromPortHasBeenSet =
false;
128 long long m_toPort{0};
129 bool m_toPortHasBeenSet =
false;
const Aws::String & GetPrefixListId() const
SecurityGroupRuleDescription & WithProtocol(ProtocolT &&value)
bool PrefixListIdHasBeenSet() const
long long GetFromPort() const
SecurityGroupRuleDescription & WithIPV6Range(IPV6RangeT &&value)
SecurityGroupRuleDescription & WithIPV4Range(IPV4RangeT &&value)
AWS_FMS_API SecurityGroupRuleDescription(Aws::Utils::Json::JsonView jsonValue)
SecurityGroupRuleDescription & WithFromPort(long long value)
bool IPV4RangeHasBeenSet() const
AWS_FMS_API SecurityGroupRuleDescription()=default
const Aws::String & GetIPV6Range() const
bool FromPortHasBeenSet() const
void SetToPort(long long value)
bool ProtocolHasBeenSet() const
bool IPV6RangeHasBeenSet() const
SecurityGroupRuleDescription & WithToPort(long long value)
void SetProtocol(ProtocolT &&value)
void SetIPV6Range(IPV6RangeT &&value)
void SetFromPort(long long value)
SecurityGroupRuleDescription & WithPrefixListId(PrefixListIdT &&value)
long long GetToPort() const
AWS_FMS_API SecurityGroupRuleDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetIPV4Range() const
void SetPrefixListId(PrefixListIdT &&value)
void SetIPV4Range(IPV4RangeT &&value)
bool ToPortHasBeenSet() const
const Aws::String & GetProtocol() const
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue