AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchGetRepositoriesError.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codecommit/model/BatchGetRepositoriesErrorCodeEnum.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 CodeCommit
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODECOMMIT_API BatchGetRepositoriesError();
39 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetRepositoryId() const{ return m_repositoryId; }
48 inline bool RepositoryIdHasBeenSet() const { return m_repositoryIdHasBeenSet; }
49 inline void SetRepositoryId(const Aws::String& value) { m_repositoryIdHasBeenSet = true; m_repositoryId = value; }
50 inline void SetRepositoryId(Aws::String&& value) { m_repositoryIdHasBeenSet = true; m_repositoryId = std::move(value); }
51 inline void SetRepositoryId(const char* value) { m_repositoryIdHasBeenSet = true; m_repositoryId.assign(value); }
52 inline BatchGetRepositoriesError& WithRepositoryId(const Aws::String& value) { SetRepositoryId(value); return *this;}
53 inline BatchGetRepositoriesError& WithRepositoryId(Aws::String&& value) { SetRepositoryId(std::move(value)); return *this;}
54 inline BatchGetRepositoriesError& WithRepositoryId(const char* value) { SetRepositoryId(value); return *this;}
56
58
62 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
63 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
64 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
65 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
66 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
67 inline BatchGetRepositoriesError& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
68 inline BatchGetRepositoriesError& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
69 inline BatchGetRepositoriesError& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
71
73
76 inline const BatchGetRepositoriesErrorCodeEnum& GetErrorCode() const{ return m_errorCode; }
77 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
78 inline void SetErrorCode(const BatchGetRepositoriesErrorCodeEnum& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
79 inline void SetErrorCode(BatchGetRepositoriesErrorCodeEnum&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
83
85
89 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
90 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
91 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
92 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
93 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
94 inline BatchGetRepositoriesError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
95 inline BatchGetRepositoriesError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
96 inline BatchGetRepositoriesError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
98 private:
99
100 Aws::String m_repositoryId;
101 bool m_repositoryIdHasBeenSet = false;
102
103 Aws::String m_repositoryName;
104 bool m_repositoryNameHasBeenSet = false;
105
107 bool m_errorCodeHasBeenSet = false;
108
109 Aws::String m_errorMessage;
110 bool m_errorMessageHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace CodeCommit
115} // namespace Aws
BatchGetRepositoriesError & WithRepositoryId(const char *value)
BatchGetRepositoriesError & WithErrorCode(const BatchGetRepositoriesErrorCodeEnum &value)
BatchGetRepositoriesError & WithRepositoryId(Aws::String &&value)
AWS_CODECOMMIT_API BatchGetRepositoriesError & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchGetRepositoriesError & WithErrorMessage(const char *value)
const BatchGetRepositoriesErrorCodeEnum & GetErrorCode() const
BatchGetRepositoriesError & WithErrorCode(BatchGetRepositoriesErrorCodeEnum &&value)
AWS_CODECOMMIT_API BatchGetRepositoriesError(Aws::Utils::Json::JsonView jsonValue)
BatchGetRepositoriesError & WithErrorMessage(Aws::String &&value)
BatchGetRepositoriesError & WithRepositoryId(const Aws::String &value)
BatchGetRepositoriesError & WithRepositoryName(Aws::String &&value)
void SetErrorCode(const BatchGetRepositoriesErrorCodeEnum &value)
BatchGetRepositoriesError & WithRepositoryName(const Aws::String &value)
BatchGetRepositoriesError & WithRepositoryName(const char *value)
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetErrorCode(BatchGetRepositoriesErrorCodeEnum &&value)
BatchGetRepositoriesError & WithErrorMessage(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue