AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ConfigurationPolicyAssociationSummary.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/model/TargetType.h>
10#include <aws/securityhub/model/AssociationType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/securityhub/model/ConfigurationPolicyAssociationStatus.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SecurityHub
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_SECURITYHUB_API ConfigurationPolicyAssociationSummary() = default;
43 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetConfigurationPolicyId() const { return m_configurationPolicyId; }
51 inline bool ConfigurationPolicyIdHasBeenSet() const { return m_configurationPolicyIdHasBeenSet; }
52 template<typename ConfigurationPolicyIdT = Aws::String>
53 void SetConfigurationPolicyId(ConfigurationPolicyIdT&& value) { m_configurationPolicyIdHasBeenSet = true; m_configurationPolicyId = std::forward<ConfigurationPolicyIdT>(value); }
54 template<typename ConfigurationPolicyIdT = Aws::String>
55 ConfigurationPolicyAssociationSummary& WithConfigurationPolicyId(ConfigurationPolicyIdT&& value) { SetConfigurationPolicyId(std::forward<ConfigurationPolicyIdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetTargetId() const { return m_targetId; }
63 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
64 template<typename TargetIdT = Aws::String>
65 void SetTargetId(TargetIdT&& value) { m_targetIdHasBeenSet = true; m_targetId = std::forward<TargetIdT>(value); }
66 template<typename TargetIdT = Aws::String>
67 ConfigurationPolicyAssociationSummary& WithTargetId(TargetIdT&& value) { SetTargetId(std::forward<TargetIdT>(value)); return *this;}
69
71
75 inline TargetType GetTargetType() const { return m_targetType; }
76 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
77 inline void SetTargetType(TargetType value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
80
82
87 inline AssociationType GetAssociationType() const { return m_associationType; }
88 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
89 inline void SetAssociationType(AssociationType value) { m_associationTypeHasBeenSet = true; m_associationType = value; }
92
94
98 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
99 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
100 template<typename UpdatedAtT = Aws::Utils::DateTime>
101 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
102 template<typename UpdatedAtT = Aws::Utils::DateTime>
103 ConfigurationPolicyAssociationSummary& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
105
107
111 inline ConfigurationPolicyAssociationStatus GetAssociationStatus() const { return m_associationStatus; }
112 inline bool AssociationStatusHasBeenSet() const { return m_associationStatusHasBeenSet; }
113 inline void SetAssociationStatus(ConfigurationPolicyAssociationStatus value) { m_associationStatusHasBeenSet = true; m_associationStatus = value; }
116
118
122 inline const Aws::String& GetAssociationStatusMessage() const { return m_associationStatusMessage; }
123 inline bool AssociationStatusMessageHasBeenSet() const { return m_associationStatusMessageHasBeenSet; }
124 template<typename AssociationStatusMessageT = Aws::String>
125 void SetAssociationStatusMessage(AssociationStatusMessageT&& value) { m_associationStatusMessageHasBeenSet = true; m_associationStatusMessage = std::forward<AssociationStatusMessageT>(value); }
126 template<typename AssociationStatusMessageT = Aws::String>
127 ConfigurationPolicyAssociationSummary& WithAssociationStatusMessage(AssociationStatusMessageT&& value) { SetAssociationStatusMessage(std::forward<AssociationStatusMessageT>(value)); return *this;}
129 private:
130
131 Aws::String m_configurationPolicyId;
132 bool m_configurationPolicyIdHasBeenSet = false;
133
134 Aws::String m_targetId;
135 bool m_targetIdHasBeenSet = false;
136
137 TargetType m_targetType{TargetType::NOT_SET};
138 bool m_targetTypeHasBeenSet = false;
139
140 AssociationType m_associationType{AssociationType::NOT_SET};
141 bool m_associationTypeHasBeenSet = false;
142
143 Aws::Utils::DateTime m_updatedAt{};
144 bool m_updatedAtHasBeenSet = false;
145
147 bool m_associationStatusHasBeenSet = false;
148
149 Aws::String m_associationStatusMessage;
150 bool m_associationStatusMessageHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace SecurityHub
155} // namespace Aws
AWS_SECURITYHUB_API ConfigurationPolicyAssociationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ConfigurationPolicyAssociationSummary & WithAssociationType(AssociationType value)
ConfigurationPolicyAssociationSummary & WithUpdatedAt(UpdatedAtT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API ConfigurationPolicyAssociationSummary(Aws::Utils::Json::JsonView jsonValue)
ConfigurationPolicyAssociationSummary & WithTargetId(TargetIdT &&value)
ConfigurationPolicyAssociationSummary & WithAssociationStatusMessage(AssociationStatusMessageT &&value)
ConfigurationPolicyAssociationSummary & WithAssociationStatus(ConfigurationPolicyAssociationStatus value)
ConfigurationPolicyAssociationSummary & WithTargetType(TargetType value)
ConfigurationPolicyAssociationSummary & WithConfigurationPolicyId(ConfigurationPolicyIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue