AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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); }
51 inline AwsEc2InstanceViolation& WithViolationTarget(const Aws::String& value) { SetViolationTarget(value); return *this;}
52 inline AwsEc2InstanceViolation& WithViolationTarget(Aws::String&& value) { SetViolationTarget(std::move(value)); return *this;}
53 inline AwsEc2InstanceViolation& WithViolationTarget(const char* value) { SetViolationTarget(value); return *this;}
55
57
60 inline const Aws::Vector<AwsEc2NetworkInterfaceViolation>& GetAwsEc2NetworkInterfaceViolations() const{ return m_awsEc2NetworkInterfaceViolations; }
61 inline bool AwsEc2NetworkInterfaceViolationsHasBeenSet() const { return m_awsEc2NetworkInterfaceViolationsHasBeenSet; }
62 inline void SetAwsEc2NetworkInterfaceViolations(const Aws::Vector<AwsEc2NetworkInterfaceViolation>& value) { m_awsEc2NetworkInterfaceViolationsHasBeenSet = true; m_awsEc2NetworkInterfaceViolations = value; }
63 inline void SetAwsEc2NetworkInterfaceViolations(Aws::Vector<AwsEc2NetworkInterfaceViolation>&& value) { m_awsEc2NetworkInterfaceViolationsHasBeenSet = true; m_awsEc2NetworkInterfaceViolations = std::move(value); }
66 inline AwsEc2InstanceViolation& AddAwsEc2NetworkInterfaceViolations(const AwsEc2NetworkInterfaceViolation& value) { m_awsEc2NetworkInterfaceViolationsHasBeenSet = true; m_awsEc2NetworkInterfaceViolations.push_back(value); return *this; }
67 inline AwsEc2InstanceViolation& AddAwsEc2NetworkInterfaceViolations(AwsEc2NetworkInterfaceViolation&& value) { m_awsEc2NetworkInterfaceViolationsHasBeenSet = true; m_awsEc2NetworkInterfaceViolations.push_back(std::move(value)); return *this; }
69 private:
70
71 Aws::String m_violationTarget;
72 bool m_violationTargetHasBeenSet = false;
73
74 Aws::Vector<AwsEc2NetworkInterfaceViolation> m_awsEc2NetworkInterfaceViolations;
75 bool m_awsEc2NetworkInterfaceViolationsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace FMS
80} // namespace Aws
void SetViolationTarget(const Aws::String &value)
void SetAwsEc2NetworkInterfaceViolations(Aws::Vector< AwsEc2NetworkInterfaceViolation > &&value)
AwsEc2InstanceViolation & WithAwsEc2NetworkInterfaceViolations(const Aws::Vector< AwsEc2NetworkInterfaceViolation > &value)
AwsEc2InstanceViolation & WithViolationTarget(const char *value)
AwsEc2InstanceViolation & AddAwsEc2NetworkInterfaceViolations(const AwsEc2NetworkInterfaceViolation &value)
void SetAwsEc2NetworkInterfaceViolations(const Aws::Vector< AwsEc2NetworkInterfaceViolation > &value)
AwsEc2InstanceViolation & WithViolationTarget(const Aws::String &value)
const Aws::Vector< AwsEc2NetworkInterfaceViolation > & GetAwsEc2NetworkInterfaceViolations() const
AwsEc2InstanceViolation & WithViolationTarget(Aws::String &&value)
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FMS_API AwsEc2InstanceViolation & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsEc2InstanceViolation & AddAwsEc2NetworkInterfaceViolations(AwsEc2NetworkInterfaceViolation &&value)
AwsEc2InstanceViolation & WithAwsEc2NetworkInterfaceViolations(Aws::Vector< AwsEc2NetworkInterfaceViolation > &&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