AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TCPFlagField.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/network-firewall/model/TCPFlag.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace NetworkFirewall
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_NETWORKFIREWALL_API TCPFlagField();
37 AWS_NETWORKFIREWALL_API TCPFlagField(Aws::Utils::Json::JsonView jsonValue);
38 AWS_NETWORKFIREWALL_API TCPFlagField& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
53 inline const Aws::Vector<TCPFlag>& GetFlags() const{ return m_flags; }
54 inline bool FlagsHasBeenSet() const { return m_flagsHasBeenSet; }
55 inline void SetFlags(const Aws::Vector<TCPFlag>& value) { m_flagsHasBeenSet = true; m_flags = value; }
56 inline void SetFlags(Aws::Vector<TCPFlag>&& value) { m_flagsHasBeenSet = true; m_flags = std::move(value); }
57 inline TCPFlagField& WithFlags(const Aws::Vector<TCPFlag>& value) { SetFlags(value); return *this;}
58 inline TCPFlagField& WithFlags(Aws::Vector<TCPFlag>&& value) { SetFlags(std::move(value)); return *this;}
59 inline TCPFlagField& AddFlags(const TCPFlag& value) { m_flagsHasBeenSet = true; m_flags.push_back(value); return *this; }
60 inline TCPFlagField& AddFlags(TCPFlag&& value) { m_flagsHasBeenSet = true; m_flags.push_back(std::move(value)); return *this; }
62
64
68 inline const Aws::Vector<TCPFlag>& GetMasks() const{ return m_masks; }
69 inline bool MasksHasBeenSet() const { return m_masksHasBeenSet; }
70 inline void SetMasks(const Aws::Vector<TCPFlag>& value) { m_masksHasBeenSet = true; m_masks = value; }
71 inline void SetMasks(Aws::Vector<TCPFlag>&& value) { m_masksHasBeenSet = true; m_masks = std::move(value); }
72 inline TCPFlagField& WithMasks(const Aws::Vector<TCPFlag>& value) { SetMasks(value); return *this;}
73 inline TCPFlagField& WithMasks(Aws::Vector<TCPFlag>&& value) { SetMasks(std::move(value)); return *this;}
74 inline TCPFlagField& AddMasks(const TCPFlag& value) { m_masksHasBeenSet = true; m_masks.push_back(value); return *this; }
75 inline TCPFlagField& AddMasks(TCPFlag&& value) { m_masksHasBeenSet = true; m_masks.push_back(std::move(value)); return *this; }
77 private:
78
80 bool m_flagsHasBeenSet = false;
81
83 bool m_masksHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace NetworkFirewall
88} // namespace Aws
AWS_NETWORKFIREWALL_API TCPFlagField()
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
TCPFlagField & WithMasks(Aws::Vector< TCPFlag > &&value)
AWS_NETWORKFIREWALL_API TCPFlagField(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< TCPFlag > & GetMasks() const
TCPFlagField & AddMasks(const TCPFlag &value)
void SetFlags(Aws::Vector< TCPFlag > &&value)
TCPFlagField & WithMasks(const Aws::Vector< TCPFlag > &value)
const Aws::Vector< TCPFlag > & GetFlags() const
TCPFlagField & AddMasks(TCPFlag &&value)
AWS_NETWORKFIREWALL_API TCPFlagField & operator=(Aws::Utils::Json::JsonView jsonValue)
TCPFlagField & AddFlags(TCPFlag &&value)
void SetMasks(Aws::Vector< TCPFlag > &&value)
void SetMasks(const Aws::Vector< TCPFlag > &value)
void SetFlags(const Aws::Vector< TCPFlag > &value)
TCPFlagField & WithFlags(const Aws::Vector< TCPFlag > &value)
TCPFlagField & WithFlags(Aws::Vector< TCPFlag > &&value)
TCPFlagField & AddFlags(const TCPFlag &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue