AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsEc2InstanceViolation.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/AwsEc2NetworkInterfaceViolation.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
34 {
35 public:
36 AWS_FMS_API AwsEc2InstanceViolation() = default;
40
41
43
46 inline const Aws::String& GetViolationTarget() const { return m_violationTarget; }
47 inline bool ViolationTargetHasBeenSet() const { return m_violationTargetHasBeenSet; }
48 template<typename ViolationTargetT = Aws::String>
49 void SetViolationTarget(ViolationTargetT&& value) { m_violationTargetHasBeenSet = true; m_violationTarget = std::forward<ViolationTargetT>(value); }
50 template<typename ViolationTargetT = Aws::String>
51 AwsEc2InstanceViolation& WithViolationTarget(ViolationTargetT&& value) { SetViolationTarget(std::forward<ViolationTargetT>(value)); return *this;}
53
55
58 inline const Aws::Vector<AwsEc2NetworkInterfaceViolation>& GetAwsEc2NetworkInterfaceViolations() const { return m_awsEc2NetworkInterfaceViolations; }
59 inline bool AwsEc2NetworkInterfaceViolationsHasBeenSet() const { return m_awsEc2NetworkInterfaceViolationsHasBeenSet; }
60 template<typename AwsEc2NetworkInterfaceViolationsT = Aws::Vector<AwsEc2NetworkInterfaceViolation>>
61 void SetAwsEc2NetworkInterfaceViolations(AwsEc2NetworkInterfaceViolationsT&& value) { m_awsEc2NetworkInterfaceViolationsHasBeenSet = true; m_awsEc2NetworkInterfaceViolations = std::forward<AwsEc2NetworkInterfaceViolationsT>(value); }
62 template<typename AwsEc2NetworkInterfaceViolationsT = Aws::Vector<AwsEc2NetworkInterfaceViolation>>
63 AwsEc2InstanceViolation& WithAwsEc2NetworkInterfaceViolations(AwsEc2NetworkInterfaceViolationsT&& value) { SetAwsEc2NetworkInterfaceViolations(std::forward<AwsEc2NetworkInterfaceViolationsT>(value)); return *this;}
64 template<typename AwsEc2NetworkInterfaceViolationsT = AwsEc2NetworkInterfaceViolation>
65 AwsEc2InstanceViolation& AddAwsEc2NetworkInterfaceViolations(AwsEc2NetworkInterfaceViolationsT&& value) { m_awsEc2NetworkInterfaceViolationsHasBeenSet = true; m_awsEc2NetworkInterfaceViolations.emplace_back(std::forward<AwsEc2NetworkInterfaceViolationsT>(value)); return *this; }
67 private:
68
69 Aws::String m_violationTarget;
70 bool m_violationTargetHasBeenSet = false;
71
72 Aws::Vector<AwsEc2NetworkInterfaceViolation> m_awsEc2NetworkInterfaceViolations;
73 bool m_awsEc2NetworkInterfaceViolationsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace FMS
78} // 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