AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DeletionWarning.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/discovery/ApplicationDiscoveryService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ApplicationDiscoveryService {
20namespace Model {
21
29 public:
30 AWS_APPLICATIONDISCOVERYSERVICE_API DeletionWarning() = default;
31 AWS_APPLICATIONDISCOVERYSERVICE_API DeletionWarning(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPLICATIONDISCOVERYSERVICE_API DeletionWarning& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetConfigurationId() const { return m_configurationId; }
40 inline bool ConfigurationIdHasBeenSet() const { return m_configurationIdHasBeenSet; }
41 template <typename ConfigurationIdT = Aws::String>
42 void SetConfigurationId(ConfigurationIdT&& value) {
43 m_configurationIdHasBeenSet = true;
44 m_configurationId = std::forward<ConfigurationIdT>(value);
45 }
46 template <typename ConfigurationIdT = Aws::String>
47 DeletionWarning& WithConfigurationId(ConfigurationIdT&& value) {
48 SetConfigurationId(std::forward<ConfigurationIdT>(value));
49 return *this;
50 }
52
54
57 inline int GetWarningCode() const { return m_warningCode; }
58 inline bool WarningCodeHasBeenSet() const { return m_warningCodeHasBeenSet; }
59 inline void SetWarningCode(int value) {
60 m_warningCodeHasBeenSet = true;
61 m_warningCode = value;
62 }
63 inline DeletionWarning& WithWarningCode(int value) {
64 SetWarningCode(value);
65 return *this;
66 }
68
70
74 inline const Aws::String& GetWarningText() const { return m_warningText; }
75 inline bool WarningTextHasBeenSet() const { return m_warningTextHasBeenSet; }
76 template <typename WarningTextT = Aws::String>
77 void SetWarningText(WarningTextT&& value) {
78 m_warningTextHasBeenSet = true;
79 m_warningText = std::forward<WarningTextT>(value);
80 }
81 template <typename WarningTextT = Aws::String>
82 DeletionWarning& WithWarningText(WarningTextT&& value) {
83 SetWarningText(std::forward<WarningTextT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_configurationId;
89
90 int m_warningCode{0};
91
92 Aws::String m_warningText;
93 bool m_configurationIdHasBeenSet = false;
94 bool m_warningCodeHasBeenSet = false;
95 bool m_warningTextHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace ApplicationDiscoveryService
100} // namespace Aws
DeletionWarning & WithConfigurationId(ConfigurationIdT &&value)
AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONDISCOVERYSERVICE_API DeletionWarning & operator=(Aws::Utils::Json::JsonView jsonValue)
DeletionWarning & WithWarningText(WarningTextT &&value)
AWS_APPLICATIONDISCOVERYSERVICE_API DeletionWarning()=default
AWS_APPLICATIONDISCOVERYSERVICE_API DeletionWarning(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue