AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
InvalidLayerPartException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecr/ECR_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ECR {
20namespace Model {
21
30 public:
31 AWS_ECR_API InvalidLayerPartException() = default;
35
37
40 inline const Aws::String& GetRegistryId() const { return m_registryId; }
41 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
42 template <typename RegistryIdT = Aws::String>
43 void SetRegistryId(RegistryIdT&& value) {
44 m_registryIdHasBeenSet = true;
45 m_registryId = std::forward<RegistryIdT>(value);
46 }
47 template <typename RegistryIdT = Aws::String>
49 SetRegistryId(std::forward<RegistryIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
59 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
60 template <typename RepositoryNameT = Aws::String>
61 void SetRepositoryName(RepositoryNameT&& value) {
62 m_repositoryNameHasBeenSet = true;
63 m_repositoryName = std::forward<RepositoryNameT>(value);
64 }
65 template <typename RepositoryNameT = Aws::String>
67 SetRepositoryName(std::forward<RepositoryNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetUploadId() const { return m_uploadId; }
77 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
78 template <typename UploadIdT = Aws::String>
79 void SetUploadId(UploadIdT&& value) {
80 m_uploadIdHasBeenSet = true;
81 m_uploadId = std::forward<UploadIdT>(value);
82 }
83 template <typename UploadIdT = Aws::String>
85 SetUploadId(std::forward<UploadIdT>(value));
86 return *this;
87 }
89
91
95 inline long long GetLastValidByteReceived() const { return m_lastValidByteReceived; }
96 inline bool LastValidByteReceivedHasBeenSet() const { return m_lastValidByteReceivedHasBeenSet; }
97 inline void SetLastValidByteReceived(long long value) {
98 m_lastValidByteReceivedHasBeenSet = true;
99 m_lastValidByteReceived = value;
100 }
103 return *this;
104 }
106
108
111 inline const Aws::String& GetMessage() const { return m_message; }
112 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
113 template <typename MessageT = Aws::String>
114 void SetMessage(MessageT&& value) {
115 m_messageHasBeenSet = true;
116 m_message = std::forward<MessageT>(value);
117 }
118 template <typename MessageT = Aws::String>
120 SetMessage(std::forward<MessageT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_registryId;
126
127 Aws::String m_repositoryName;
128
129 Aws::String m_uploadId;
130
131 long long m_lastValidByteReceived{0};
132
133 Aws::String m_message;
134 bool m_registryIdHasBeenSet = false;
135 bool m_repositoryNameHasBeenSet = false;
136 bool m_uploadIdHasBeenSet = false;
137 bool m_lastValidByteReceivedHasBeenSet = false;
138 bool m_messageHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace ECR
143} // namespace Aws
InvalidLayerPartException & WithMessage(MessageT &&value)
AWS_ECR_API InvalidLayerPartException()=default
AWS_ECR_API InvalidLayerPartException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
InvalidLayerPartException & WithRegistryId(RegistryIdT &&value)
InvalidLayerPartException & WithUploadId(UploadIdT &&value)
InvalidLayerPartException & WithLastValidByteReceived(long long value)
InvalidLayerPartException & WithRepositoryName(RepositoryNameT &&value)
AWS_ECR_API InvalidLayerPartException(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue