AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PackageVersionError.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/codeartifact/model/PackageVersionErrorCode.h>
9#include <aws/core/utils/memory/stl/AWSString.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 CodeArtifact
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CODEARTIFACT_API PackageVersionError();
36 AWS_CODEARTIFACT_API PackageVersionError(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
50 inline const PackageVersionErrorCode& GetErrorCode() const{ return m_errorCode; }
51 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
52 inline void SetErrorCode(const PackageVersionErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
53 inline void SetErrorCode(PackageVersionErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
54 inline PackageVersionError& WithErrorCode(const PackageVersionErrorCode& value) { SetErrorCode(value); return *this;}
55 inline PackageVersionError& WithErrorCode(PackageVersionErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
57
59
62 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
63 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
64 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
65 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
66 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
67 inline PackageVersionError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
68 inline PackageVersionError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
69 inline PackageVersionError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
71 private:
72
73 PackageVersionErrorCode m_errorCode;
74 bool m_errorCodeHasBeenSet = false;
75
76 Aws::String m_errorMessage;
77 bool m_errorMessageHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace CodeArtifact
82} // namespace Aws
PackageVersionError & WithErrorMessage(const Aws::String &value)
PackageVersionError & WithErrorCode(const PackageVersionErrorCode &value)
void SetErrorCode(const PackageVersionErrorCode &value)
PackageVersionError & WithErrorMessage(Aws::String &&value)
const PackageVersionErrorCode & GetErrorCode() const
AWS_CODEARTIFACT_API PackageVersionError & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEARTIFACT_API PackageVersionError(Aws::Utils::Json::JsonView jsonValue)
PackageVersionError & WithErrorMessage(const char *value)
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetErrorCode(PackageVersionErrorCode &&value)
PackageVersionError & WithErrorCode(PackageVersionErrorCode &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue