AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsEc2NetworkInterfaceViolation.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace FMS
23{
24namespace Model
25{
26
34 {
35 public:
40
41
43
46 inline const Aws::String& GetViolationTarget() const{ return m_violationTarget; }
47 inline bool ViolationTargetHasBeenSet() const { return m_violationTargetHasBeenSet; }
48 inline void SetViolationTarget(const Aws::String& value) { m_violationTargetHasBeenSet = true; m_violationTarget = value; }
49 inline void SetViolationTarget(Aws::String&& value) { m_violationTargetHasBeenSet = true; m_violationTarget = std::move(value); }
50 inline void SetViolationTarget(const char* value) { m_violationTargetHasBeenSet = true; m_violationTarget.assign(value); }
52 inline AwsEc2NetworkInterfaceViolation& WithViolationTarget(Aws::String&& value) { SetViolationTarget(std::move(value)); return *this;}
53 inline AwsEc2NetworkInterfaceViolation& WithViolationTarget(const char* value) { SetViolationTarget(value); return *this;}
55
57
61 inline const Aws::Vector<Aws::String>& GetViolatingSecurityGroups() const{ return m_violatingSecurityGroups; }
62 inline bool ViolatingSecurityGroupsHasBeenSet() const { return m_violatingSecurityGroupsHasBeenSet; }
63 inline void SetViolatingSecurityGroups(const Aws::Vector<Aws::String>& value) { m_violatingSecurityGroupsHasBeenSet = true; m_violatingSecurityGroups = value; }
64 inline void SetViolatingSecurityGroups(Aws::Vector<Aws::String>&& value) { m_violatingSecurityGroupsHasBeenSet = true; m_violatingSecurityGroups = std::move(value); }
67 inline AwsEc2NetworkInterfaceViolation& AddViolatingSecurityGroups(const Aws::String& value) { m_violatingSecurityGroupsHasBeenSet = true; m_violatingSecurityGroups.push_back(value); return *this; }
68 inline AwsEc2NetworkInterfaceViolation& AddViolatingSecurityGroups(Aws::String&& value) { m_violatingSecurityGroupsHasBeenSet = true; m_violatingSecurityGroups.push_back(std::move(value)); return *this; }
69 inline AwsEc2NetworkInterfaceViolation& AddViolatingSecurityGroups(const char* value) { m_violatingSecurityGroupsHasBeenSet = true; m_violatingSecurityGroups.push_back(value); return *this; }
71 private:
72
73 Aws::String m_violationTarget;
74 bool m_violationTargetHasBeenSet = false;
75
76 Aws::Vector<Aws::String> m_violatingSecurityGroups;
77 bool m_violatingSecurityGroupsHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace FMS
82} // namespace Aws
AWS_FMS_API AwsEc2NetworkInterfaceViolation(Aws::Utils::Json::JsonView jsonValue)
AwsEc2NetworkInterfaceViolation & WithViolationTarget(Aws::String &&value)
const Aws::Vector< Aws::String > & GetViolatingSecurityGroups() const
AwsEc2NetworkInterfaceViolation & WithViolatingSecurityGroups(const Aws::Vector< Aws::String > &value)
void SetViolatingSecurityGroups(const Aws::Vector< Aws::String > &value)
AwsEc2NetworkInterfaceViolation & AddViolatingSecurityGroups(const char *value)
AWS_FMS_API AwsEc2NetworkInterfaceViolation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetViolatingSecurityGroups(Aws::Vector< Aws::String > &&value)
AwsEc2NetworkInterfaceViolation & WithViolationTarget(const char *value)
AwsEc2NetworkInterfaceViolation & AddViolatingSecurityGroups(Aws::String &&value)
AwsEc2NetworkInterfaceViolation & AddViolatingSecurityGroups(const Aws::String &value)
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
AwsEc2NetworkInterfaceViolation & WithViolatingSecurityGroups(Aws::Vector< Aws::String > &&value)
AwsEc2NetworkInterfaceViolation & WithViolationTarget(const Aws::String &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