AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RemediationException.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ConfigService
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_CONFIGSERVICE_API RemediationException() = default;
39 AWS_CONFIGSERVICE_API RemediationException(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetConfigRuleName() const { return m_configRuleName; }
49 inline bool ConfigRuleNameHasBeenSet() const { return m_configRuleNameHasBeenSet; }
50 template<typename ConfigRuleNameT = Aws::String>
51 void SetConfigRuleName(ConfigRuleNameT&& value) { m_configRuleNameHasBeenSet = true; m_configRuleName = std::forward<ConfigRuleNameT>(value); }
52 template<typename ConfigRuleNameT = Aws::String>
53 RemediationException& WithConfigRuleName(ConfigRuleNameT&& value) { SetConfigRuleName(std::forward<ConfigRuleNameT>(value)); return *this;}
55
57
60 inline const Aws::String& GetResourceType() const { return m_resourceType; }
61 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
62 template<typename ResourceTypeT = Aws::String>
63 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
64 template<typename ResourceTypeT = Aws::String>
65 RemediationException& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
67
69
72 inline const Aws::String& GetResourceId() const { return m_resourceId; }
73 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
74 template<typename ResourceIdT = Aws::String>
75 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
76 template<typename ResourceIdT = Aws::String>
77 RemediationException& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
79
81
84 inline const Aws::String& GetMessage() const { return m_message; }
85 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
86 template<typename MessageT = Aws::String>
87 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
88 template<typename MessageT = Aws::String>
89 RemediationException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
91
93
96 inline const Aws::Utils::DateTime& GetExpirationTime() const { return m_expirationTime; }
97 inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; }
98 template<typename ExpirationTimeT = Aws::Utils::DateTime>
99 void SetExpirationTime(ExpirationTimeT&& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = std::forward<ExpirationTimeT>(value); }
100 template<typename ExpirationTimeT = Aws::Utils::DateTime>
101 RemediationException& WithExpirationTime(ExpirationTimeT&& value) { SetExpirationTime(std::forward<ExpirationTimeT>(value)); return *this;}
103 private:
104
105 Aws::String m_configRuleName;
106 bool m_configRuleNameHasBeenSet = false;
107
108 Aws::String m_resourceType;
109 bool m_resourceTypeHasBeenSet = false;
110
111 Aws::String m_resourceId;
112 bool m_resourceIdHasBeenSet = false;
113
114 Aws::String m_message;
115 bool m_messageHasBeenSet = false;
116
117 Aws::Utils::DateTime m_expirationTime{};
118 bool m_expirationTimeHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace ConfigService
123} // namespace Aws
RemediationException & WithMessage(MessageT &&value)
AWS_CONFIGSERVICE_API RemediationException(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetExpirationTime() const
AWS_CONFIGSERVICE_API RemediationException()=default
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
RemediationException & WithExpirationTime(ExpirationTimeT &&value)
RemediationException & WithResourceType(ResourceTypeT &&value)
AWS_CONFIGSERVICE_API RemediationException & operator=(Aws::Utils::Json::JsonView jsonValue)
RemediationException & WithResourceId(ResourceIdT &&value)
RemediationException & WithConfigRuleName(ConfigRuleNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue