AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FailedResource.h
1
6#pragma once
7#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ResourceGroups
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_RESOURCEGROUPS_API FailedResource();
36 AWS_RESOURCEGROUPS_API FailedResource(Aws::Utils::Json::JsonView jsonValue);
37 AWS_RESOURCEGROUPS_API FailedResource& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_RESOURCEGROUPS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
47 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
48 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
49 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
50 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
51 inline FailedResource& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
52 inline FailedResource& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
53 inline FailedResource& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
55
57
60 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
61 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
62 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
63 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
64 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
65 inline FailedResource& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
66 inline FailedResource& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
67 inline FailedResource& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
69
71
74 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
75 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
76 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
77 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
78 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
79 inline FailedResource& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
80 inline FailedResource& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
81 inline FailedResource& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
83 private:
84
85 Aws::String m_resourceArn;
86 bool m_resourceArnHasBeenSet = false;
87
88 Aws::String m_errorMessage;
89 bool m_errorMessageHasBeenSet = false;
90
91 Aws::String m_errorCode;
92 bool m_errorCodeHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace ResourceGroups
97} // namespace Aws
FailedResource & WithResourceArn(const Aws::String &value)
AWS_RESOURCEGROUPS_API FailedResource()
const Aws::String & GetResourceArn() const
void SetErrorMessage(const Aws::String &value)
FailedResource & WithErrorCode(Aws::String &&value)
void SetErrorMessage(Aws::String &&value)
FailedResource & WithErrorMessage(const Aws::String &value)
FailedResource & WithResourceArn(Aws::String &&value)
const Aws::String & GetErrorCode() const
FailedResource & WithResourceArn(const char *value)
const Aws::String & GetErrorMessage() const
void SetErrorCode(const Aws::String &value)
AWS_RESOURCEGROUPS_API Aws::Utils::Json::JsonValue Jsonize() const
FailedResource & WithErrorMessage(Aws::String &&value)
AWS_RESOURCEGROUPS_API FailedResource & operator=(Aws::Utils::Json::JsonView jsonValue)
FailedResource & WithErrorCode(const char *value)
void SetResourceArn(const Aws::String &value)
FailedResource & WithErrorMessage(const char *value)
AWS_RESOURCEGROUPS_API FailedResource(Aws::Utils::Json::JsonView jsonValue)
FailedResource & WithErrorCode(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue