AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AwsEc2InstanceViolation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/fms/FMS_EXPORTS.h>
10#include <aws/fms/model/AwsEc2NetworkInterfaceViolation.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace FMS {
22namespace Model {
23
30 public:
31 AWS_FMS_API AwsEc2InstanceViolation() = default;
35
37
40 inline const Aws::String& GetViolationTarget() const { return m_violationTarget; }
41 inline bool ViolationTargetHasBeenSet() const { return m_violationTargetHasBeenSet; }
42 template <typename ViolationTargetT = Aws::String>
43 void SetViolationTarget(ViolationTargetT&& value) {
44 m_violationTargetHasBeenSet = true;
45 m_violationTarget = std::forward<ViolationTargetT>(value);
46 }
47 template <typename ViolationTargetT = Aws::String>
48 AwsEc2InstanceViolation& WithViolationTarget(ViolationTargetT&& value) {
49 SetViolationTarget(std::forward<ViolationTargetT>(value));
50 return *this;
51 }
53
55
59 return m_awsEc2NetworkInterfaceViolations;
60 }
61 inline bool AwsEc2NetworkInterfaceViolationsHasBeenSet() const { return m_awsEc2NetworkInterfaceViolationsHasBeenSet; }
62 template <typename AwsEc2NetworkInterfaceViolationsT = Aws::Vector<AwsEc2NetworkInterfaceViolation>>
63 void SetAwsEc2NetworkInterfaceViolations(AwsEc2NetworkInterfaceViolationsT&& value) {
64 m_awsEc2NetworkInterfaceViolationsHasBeenSet = true;
65 m_awsEc2NetworkInterfaceViolations = std::forward<AwsEc2NetworkInterfaceViolationsT>(value);
66 }
67 template <typename AwsEc2NetworkInterfaceViolationsT = Aws::Vector<AwsEc2NetworkInterfaceViolation>>
68 AwsEc2InstanceViolation& WithAwsEc2NetworkInterfaceViolations(AwsEc2NetworkInterfaceViolationsT&& value) {
69 SetAwsEc2NetworkInterfaceViolations(std::forward<AwsEc2NetworkInterfaceViolationsT>(value));
70 return *this;
71 }
72 template <typename AwsEc2NetworkInterfaceViolationsT = AwsEc2NetworkInterfaceViolation>
73 AwsEc2InstanceViolation& AddAwsEc2NetworkInterfaceViolations(AwsEc2NetworkInterfaceViolationsT&& value) {
74 m_awsEc2NetworkInterfaceViolationsHasBeenSet = true;
75 m_awsEc2NetworkInterfaceViolations.emplace_back(std::forward<AwsEc2NetworkInterfaceViolationsT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_violationTarget;
81
82 Aws::Vector<AwsEc2NetworkInterfaceViolation> m_awsEc2NetworkInterfaceViolations;
83 bool m_violationTargetHasBeenSet = false;
84 bool m_awsEc2NetworkInterfaceViolationsHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace FMS
89} // namespace Aws
AWS_FMS_API AwsEc2InstanceViolation()=default
const Aws::Vector< AwsEc2NetworkInterfaceViolation > & GetAwsEc2NetworkInterfaceViolations() const
AwsEc2InstanceViolation & AddAwsEc2NetworkInterfaceViolations(AwsEc2NetworkInterfaceViolationsT &&value)
AwsEc2InstanceViolation & WithAwsEc2NetworkInterfaceViolations(AwsEc2NetworkInterfaceViolationsT &&value)
void SetAwsEc2NetworkInterfaceViolations(AwsEc2NetworkInterfaceViolationsT &&value)
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FMS_API AwsEc2InstanceViolation & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsEc2InstanceViolation & WithViolationTarget(ViolationTargetT &&value)
void SetViolationTarget(ViolationTargetT &&value)
AWS_FMS_API AwsEc2InstanceViolation(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue