AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LicenseOperationFailure.h
1
6#pragma once
7#include <aws/license-manager/LicenseManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/license-manager/model/ResourceType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/license-manager/model/Metadata.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 LicenseManager
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_LICENSEMANAGER_API LicenseOperationFailure();
39 AWS_LICENSEMANAGER_API LicenseOperationFailure(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
49 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
50 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
51 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
52 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
53 inline LicenseOperationFailure& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
54 inline LicenseOperationFailure& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
55 inline LicenseOperationFailure& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
57
59
62 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
63 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
64 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
65 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
66 inline LicenseOperationFailure& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
67 inline LicenseOperationFailure& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
69
71
74 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
75 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
76 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
77 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
78 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
79 inline LicenseOperationFailure& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
80 inline LicenseOperationFailure& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
81 inline LicenseOperationFailure& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
83
85
88 inline const Aws::Utils::DateTime& GetFailureTime() const{ return m_failureTime; }
89 inline bool FailureTimeHasBeenSet() const { return m_failureTimeHasBeenSet; }
90 inline void SetFailureTime(const Aws::Utils::DateTime& value) { m_failureTimeHasBeenSet = true; m_failureTime = value; }
91 inline void SetFailureTime(Aws::Utils::DateTime&& value) { m_failureTimeHasBeenSet = true; m_failureTime = std::move(value); }
92 inline LicenseOperationFailure& WithFailureTime(const Aws::Utils::DateTime& value) { SetFailureTime(value); return *this;}
93 inline LicenseOperationFailure& WithFailureTime(Aws::Utils::DateTime&& value) { SetFailureTime(std::move(value)); return *this;}
95
97
100 inline const Aws::String& GetOperationName() const{ return m_operationName; }
101 inline bool OperationNameHasBeenSet() const { return m_operationNameHasBeenSet; }
102 inline void SetOperationName(const Aws::String& value) { m_operationNameHasBeenSet = true; m_operationName = value; }
103 inline void SetOperationName(Aws::String&& value) { m_operationNameHasBeenSet = true; m_operationName = std::move(value); }
104 inline void SetOperationName(const char* value) { m_operationNameHasBeenSet = true; m_operationName.assign(value); }
105 inline LicenseOperationFailure& WithOperationName(const Aws::String& value) { SetOperationName(value); return *this;}
106 inline LicenseOperationFailure& WithOperationName(Aws::String&& value) { SetOperationName(std::move(value)); return *this;}
107 inline LicenseOperationFailure& WithOperationName(const char* value) { SetOperationName(value); return *this;}
109
111
114 inline const Aws::String& GetResourceOwnerId() const{ return m_resourceOwnerId; }
115 inline bool ResourceOwnerIdHasBeenSet() const { return m_resourceOwnerIdHasBeenSet; }
116 inline void SetResourceOwnerId(const Aws::String& value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId = value; }
117 inline void SetResourceOwnerId(Aws::String&& value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId = std::move(value); }
118 inline void SetResourceOwnerId(const char* value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId.assign(value); }
119 inline LicenseOperationFailure& WithResourceOwnerId(const Aws::String& value) { SetResourceOwnerId(value); return *this;}
120 inline LicenseOperationFailure& WithResourceOwnerId(Aws::String&& value) { SetResourceOwnerId(std::move(value)); return *this;}
121 inline LicenseOperationFailure& WithResourceOwnerId(const char* value) { SetResourceOwnerId(value); return *this;}
123
125
128 inline const Aws::String& GetOperationRequestedBy() const{ return m_operationRequestedBy; }
129 inline bool OperationRequestedByHasBeenSet() const { return m_operationRequestedByHasBeenSet; }
130 inline void SetOperationRequestedBy(const Aws::String& value) { m_operationRequestedByHasBeenSet = true; m_operationRequestedBy = value; }
131 inline void SetOperationRequestedBy(Aws::String&& value) { m_operationRequestedByHasBeenSet = true; m_operationRequestedBy = std::move(value); }
132 inline void SetOperationRequestedBy(const char* value) { m_operationRequestedByHasBeenSet = true; m_operationRequestedBy.assign(value); }
134 inline LicenseOperationFailure& WithOperationRequestedBy(Aws::String&& value) { SetOperationRequestedBy(std::move(value)); return *this;}
135 inline LicenseOperationFailure& WithOperationRequestedBy(const char* value) { SetOperationRequestedBy(value); return *this;}
137
139
142 inline const Aws::Vector<Metadata>& GetMetadataList() const{ return m_metadataList; }
143 inline bool MetadataListHasBeenSet() const { return m_metadataListHasBeenSet; }
144 inline void SetMetadataList(const Aws::Vector<Metadata>& value) { m_metadataListHasBeenSet = true; m_metadataList = value; }
145 inline void SetMetadataList(Aws::Vector<Metadata>&& value) { m_metadataListHasBeenSet = true; m_metadataList = std::move(value); }
147 inline LicenseOperationFailure& WithMetadataList(Aws::Vector<Metadata>&& value) { SetMetadataList(std::move(value)); return *this;}
148 inline LicenseOperationFailure& AddMetadataList(const Metadata& value) { m_metadataListHasBeenSet = true; m_metadataList.push_back(value); return *this; }
149 inline LicenseOperationFailure& AddMetadataList(Metadata&& value) { m_metadataListHasBeenSet = true; m_metadataList.push_back(std::move(value)); return *this; }
151 private:
152
153 Aws::String m_resourceArn;
154 bool m_resourceArnHasBeenSet = false;
155
156 ResourceType m_resourceType;
157 bool m_resourceTypeHasBeenSet = false;
158
159 Aws::String m_errorMessage;
160 bool m_errorMessageHasBeenSet = false;
161
162 Aws::Utils::DateTime m_failureTime;
163 bool m_failureTimeHasBeenSet = false;
164
165 Aws::String m_operationName;
166 bool m_operationNameHasBeenSet = false;
167
168 Aws::String m_resourceOwnerId;
169 bool m_resourceOwnerIdHasBeenSet = false;
170
171 Aws::String m_operationRequestedBy;
172 bool m_operationRequestedByHasBeenSet = false;
173
174 Aws::Vector<Metadata> m_metadataList;
175 bool m_metadataListHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace LicenseManager
180} // namespace Aws
const Aws::Vector< Metadata > & GetMetadataList() const
LicenseOperationFailure & WithErrorMessage(Aws::String &&value)
LicenseOperationFailure & WithResourceArn(Aws::String &&value)
AWS_LICENSEMANAGER_API LicenseOperationFailure & operator=(Aws::Utils::Json::JsonView jsonValue)
LicenseOperationFailure & WithResourceType(const ResourceType &value)
LicenseOperationFailure & WithResourceType(ResourceType &&value)
LicenseOperationFailure & WithMetadataList(Aws::Vector< Metadata > &&value)
void SetFailureTime(const Aws::Utils::DateTime &value)
LicenseOperationFailure & WithOperationName(Aws::String &&value)
LicenseOperationFailure & WithOperationRequestedBy(const char *value)
LicenseOperationFailure & WithFailureTime(const Aws::Utils::DateTime &value)
LicenseOperationFailure & AddMetadataList(const Metadata &value)
LicenseOperationFailure & WithResourceOwnerId(const Aws::String &value)
void SetMetadataList(const Aws::Vector< Metadata > &value)
LicenseOperationFailure & WithResourceArn(const char *value)
LicenseOperationFailure & WithOperationName(const Aws::String &value)
LicenseOperationFailure & WithFailureTime(Aws::Utils::DateTime &&value)
LicenseOperationFailure & WithOperationRequestedBy(const Aws::String &value)
LicenseOperationFailure & WithErrorMessage(const char *value)
AWS_LICENSEMANAGER_API LicenseOperationFailure(Aws::Utils::Json::JsonView jsonValue)
LicenseOperationFailure & WithResourceOwnerId(Aws::String &&value)
LicenseOperationFailure & AddMetadataList(Metadata &&value)
LicenseOperationFailure & WithOperationRequestedBy(Aws::String &&value)
LicenseOperationFailure & WithMetadataList(const Aws::Vector< Metadata > &value)
LicenseOperationFailure & WithResourceOwnerId(const char *value)
LicenseOperationFailure & WithResourceArn(const Aws::String &value)
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
LicenseOperationFailure & WithOperationName(const char *value)
LicenseOperationFailure & WithErrorMessage(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue