AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
InvalidNetworkAclEntriesViolation.h
1
6#pragma once
7#include <aws/fms/FMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/fms/model/EntryViolation.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace FMS
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_FMS_API InvalidNetworkAclEntriesViolation() = default;
41
42
44
47 inline const Aws::String& GetVpc() const { return m_vpc; }
48 inline bool VpcHasBeenSet() const { return m_vpcHasBeenSet; }
49 template<typename VpcT = Aws::String>
50 void SetVpc(VpcT&& value) { m_vpcHasBeenSet = true; m_vpc = std::forward<VpcT>(value); }
51 template<typename VpcT = Aws::String>
52 InvalidNetworkAclEntriesViolation& WithVpc(VpcT&& value) { SetVpc(std::forward<VpcT>(value)); return *this;}
54
56
59 inline const Aws::String& GetSubnet() const { return m_subnet; }
60 inline bool SubnetHasBeenSet() const { return m_subnetHasBeenSet; }
61 template<typename SubnetT = Aws::String>
62 void SetSubnet(SubnetT&& value) { m_subnetHasBeenSet = true; m_subnet = std::forward<SubnetT>(value); }
63 template<typename SubnetT = Aws::String>
64 InvalidNetworkAclEntriesViolation& WithSubnet(SubnetT&& value) { SetSubnet(std::forward<SubnetT>(value)); return *this;}
66
68
71 inline const Aws::String& GetSubnetAvailabilityZone() const { return m_subnetAvailabilityZone; }
72 inline bool SubnetAvailabilityZoneHasBeenSet() const { return m_subnetAvailabilityZoneHasBeenSet; }
73 template<typename SubnetAvailabilityZoneT = Aws::String>
74 void SetSubnetAvailabilityZone(SubnetAvailabilityZoneT&& value) { m_subnetAvailabilityZoneHasBeenSet = true; m_subnetAvailabilityZone = std::forward<SubnetAvailabilityZoneT>(value); }
75 template<typename SubnetAvailabilityZoneT = Aws::String>
76 InvalidNetworkAclEntriesViolation& WithSubnetAvailabilityZone(SubnetAvailabilityZoneT&& value) { SetSubnetAvailabilityZone(std::forward<SubnetAvailabilityZoneT>(value)); return *this;}
78
80
83 inline const Aws::String& GetCurrentAssociatedNetworkAcl() const { return m_currentAssociatedNetworkAcl; }
84 inline bool CurrentAssociatedNetworkAclHasBeenSet() const { return m_currentAssociatedNetworkAclHasBeenSet; }
85 template<typename CurrentAssociatedNetworkAclT = Aws::String>
86 void SetCurrentAssociatedNetworkAcl(CurrentAssociatedNetworkAclT&& value) { m_currentAssociatedNetworkAclHasBeenSet = true; m_currentAssociatedNetworkAcl = std::forward<CurrentAssociatedNetworkAclT>(value); }
87 template<typename CurrentAssociatedNetworkAclT = Aws::String>
88 InvalidNetworkAclEntriesViolation& WithCurrentAssociatedNetworkAcl(CurrentAssociatedNetworkAclT&& value) { SetCurrentAssociatedNetworkAcl(std::forward<CurrentAssociatedNetworkAclT>(value)); return *this;}
90
92
95 inline const Aws::Vector<EntryViolation>& GetEntryViolations() const { return m_entryViolations; }
96 inline bool EntryViolationsHasBeenSet() const { return m_entryViolationsHasBeenSet; }
97 template<typename EntryViolationsT = Aws::Vector<EntryViolation>>
98 void SetEntryViolations(EntryViolationsT&& value) { m_entryViolationsHasBeenSet = true; m_entryViolations = std::forward<EntryViolationsT>(value); }
99 template<typename EntryViolationsT = Aws::Vector<EntryViolation>>
100 InvalidNetworkAclEntriesViolation& WithEntryViolations(EntryViolationsT&& value) { SetEntryViolations(std::forward<EntryViolationsT>(value)); return *this;}
101 template<typename EntryViolationsT = EntryViolation>
102 InvalidNetworkAclEntriesViolation& AddEntryViolations(EntryViolationsT&& value) { m_entryViolationsHasBeenSet = true; m_entryViolations.emplace_back(std::forward<EntryViolationsT>(value)); return *this; }
104 private:
105
106 Aws::String m_vpc;
107 bool m_vpcHasBeenSet = false;
108
109 Aws::String m_subnet;
110 bool m_subnetHasBeenSet = false;
111
112 Aws::String m_subnetAvailabilityZone;
113 bool m_subnetAvailabilityZoneHasBeenSet = false;
114
115 Aws::String m_currentAssociatedNetworkAcl;
116 bool m_currentAssociatedNetworkAclHasBeenSet = false;
117
118 Aws::Vector<EntryViolation> m_entryViolations;
119 bool m_entryViolationsHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace FMS
124} // namespace Aws
InvalidNetworkAclEntriesViolation & WithVpc(VpcT &&value)
const Aws::Vector< EntryViolation > & GetEntryViolations() const
InvalidNetworkAclEntriesViolation & WithEntryViolations(EntryViolationsT &&value)
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
InvalidNetworkAclEntriesViolation & AddEntryViolations(EntryViolationsT &&value)
InvalidNetworkAclEntriesViolation & WithCurrentAssociatedNetworkAcl(CurrentAssociatedNetworkAclT &&value)
AWS_FMS_API InvalidNetworkAclEntriesViolation & operator=(Aws::Utils::Json::JsonView jsonValue)
InvalidNetworkAclEntriesViolation & WithSubnetAvailabilityZone(SubnetAvailabilityZoneT &&value)
AWS_FMS_API InvalidNetworkAclEntriesViolation(Aws::Utils::Json::JsonView jsonValue)
void SetCurrentAssociatedNetworkAcl(CurrentAssociatedNetworkAclT &&value)
InvalidNetworkAclEntriesViolation & WithSubnet(SubnetT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue