AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
SecurityProfileTargetMapping.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/model/SecurityProfileIdentifier.h>
9#include <aws/iot/model/SecurityProfileTarget.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoT {
21namespace Model {
22
30 public:
31 AWS_IOT_API SecurityProfileTargetMapping() = default;
35
37
40 inline const SecurityProfileIdentifier& GetSecurityProfileIdentifier() const { return m_securityProfileIdentifier; }
41 inline bool SecurityProfileIdentifierHasBeenSet() const { return m_securityProfileIdentifierHasBeenSet; }
42 template <typename SecurityProfileIdentifierT = SecurityProfileIdentifier>
43 void SetSecurityProfileIdentifier(SecurityProfileIdentifierT&& value) {
44 m_securityProfileIdentifierHasBeenSet = true;
45 m_securityProfileIdentifier = std::forward<SecurityProfileIdentifierT>(value);
46 }
47 template <typename SecurityProfileIdentifierT = SecurityProfileIdentifier>
48 SecurityProfileTargetMapping& WithSecurityProfileIdentifier(SecurityProfileIdentifierT&& value) {
49 SetSecurityProfileIdentifier(std::forward<SecurityProfileIdentifierT>(value));
50 return *this;
51 }
53
55
59 inline const SecurityProfileTarget& GetTarget() const { return m_target; }
60 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
61 template <typename TargetT = SecurityProfileTarget>
62 void SetTarget(TargetT&& value) {
63 m_targetHasBeenSet = true;
64 m_target = std::forward<TargetT>(value);
65 }
66 template <typename TargetT = SecurityProfileTarget>
68 SetTarget(std::forward<TargetT>(value));
69 return *this;
70 }
72 private:
73 SecurityProfileIdentifier m_securityProfileIdentifier;
74
75 SecurityProfileTarget m_target;
76 bool m_securityProfileIdentifierHasBeenSet = false;
77 bool m_targetHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace IoT
82} // namespace Aws
SecurityProfileTargetMapping & WithSecurityProfileIdentifier(SecurityProfileIdentifierT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API SecurityProfileTargetMapping(Aws::Utils::Json::JsonView jsonValue)
const SecurityProfileIdentifier & GetSecurityProfileIdentifier() const
AWS_IOT_API SecurityProfileTargetMapping()=default
void SetSecurityProfileIdentifier(SecurityProfileIdentifierT &&value)
SecurityProfileTargetMapping & WithTarget(TargetT &&value)
AWS_IOT_API SecurityProfileTargetMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue