AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetConfigRuleName(const Aws::String& value) { m_configRuleNameHasBeenSet = true; m_configRuleName = value; }
51 inline void SetConfigRuleName(Aws::String&& value) { m_configRuleNameHasBeenSet = true; m_configRuleName = std::move(value); }
52 inline void SetConfigRuleName(const char* value) { m_configRuleNameHasBeenSet = true; m_configRuleName.assign(value); }
53 inline RemediationException& WithConfigRuleName(const Aws::String& value) { SetConfigRuleName(value); return *this;}
54 inline RemediationException& WithConfigRuleName(Aws::String&& value) { SetConfigRuleName(std::move(value)); return *this;}
55 inline RemediationException& WithConfigRuleName(const char* value) { SetConfigRuleName(value); return *this;}
57
59
62 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
63 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
64 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
65 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
66 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
67 inline RemediationException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
68 inline RemediationException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
69 inline RemediationException& WithResourceType(const char* value) { SetResourceType(value); return *this;}
71
73
76 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
77 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
78 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
79 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
80 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
81 inline RemediationException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
82 inline RemediationException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
83 inline RemediationException& WithResourceId(const char* value) { SetResourceId(value); return *this;}
85
87
90 inline const Aws::String& GetMessage() const{ return m_message; }
91 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
92 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
93 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
94 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
95 inline RemediationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
96 inline RemediationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
97 inline RemediationException& WithMessage(const char* value) { SetMessage(value); return *this;}
99
101
104 inline const Aws::Utils::DateTime& GetExpirationTime() const{ return m_expirationTime; }
105 inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; }
106 inline void SetExpirationTime(const Aws::Utils::DateTime& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = value; }
107 inline void SetExpirationTime(Aws::Utils::DateTime&& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = std::move(value); }
109 inline RemediationException& WithExpirationTime(Aws::Utils::DateTime&& value) { SetExpirationTime(std::move(value)); return *this;}
111 private:
112
113 Aws::String m_configRuleName;
114 bool m_configRuleNameHasBeenSet = false;
115
116 Aws::String m_resourceType;
117 bool m_resourceTypeHasBeenSet = false;
118
119 Aws::String m_resourceId;
120 bool m_resourceIdHasBeenSet = false;
121
122 Aws::String m_message;
123 bool m_messageHasBeenSet = false;
124
125 Aws::Utils::DateTime m_expirationTime;
126 bool m_expirationTimeHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace ConfigService
131} // namespace Aws
RemediationException & WithMessage(const char *value)
AWS_CONFIGSERVICE_API RemediationException(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetExpirationTime() const
RemediationException & WithResourceType(const Aws::String &value)
void SetExpirationTime(Aws::Utils::DateTime &&value)
void SetExpirationTime(const Aws::Utils::DateTime &value)
RemediationException & WithExpirationTime(Aws::Utils::DateTime &&value)
RemediationException & WithResourceType(const char *value)
RemediationException & WithResourceType(Aws::String &&value)
RemediationException & WithExpirationTime(const Aws::Utils::DateTime &value)
RemediationException & WithMessage(Aws::String &&value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
RemediationException & WithMessage(const Aws::String &value)
RemediationException & WithConfigRuleName(const Aws::String &value)
RemediationException & WithConfigRuleName(const char *value)
AWS_CONFIGSERVICE_API RemediationException & operator=(Aws::Utils::Json::JsonView jsonValue)
RemediationException & WithConfigRuleName(Aws::String &&value)
RemediationException & WithResourceId(const Aws::String &value)
RemediationException & WithResourceId(Aws::String &&value)
RemediationException & WithResourceId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue