AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ImageReplicationStatus.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecr/ECR_EXPORTS.h>
9#include <aws/ecr/model/ReplicationStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ECR {
21namespace Model {
22
30 public:
31 AWS_ECR_API ImageReplicationStatus() = default;
35
37
40 inline const Aws::String& GetRegion() const { return m_region; }
41 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
42 template <typename RegionT = Aws::String>
43 void SetRegion(RegionT&& value) {
44 m_regionHasBeenSet = true;
45 m_region = std::forward<RegionT>(value);
46 }
47 template <typename RegionT = Aws::String>
49 SetRegion(std::forward<RegionT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetRegistryId() const { return m_registryId; }
60 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
61 template <typename RegistryIdT = Aws::String>
62 void SetRegistryId(RegistryIdT&& value) {
63 m_registryIdHasBeenSet = true;
64 m_registryId = std::forward<RegistryIdT>(value);
65 }
66 template <typename RegistryIdT = Aws::String>
67 ImageReplicationStatus& WithRegistryId(RegistryIdT&& value) {
68 SetRegistryId(std::forward<RegistryIdT>(value));
69 return *this;
70 }
72
74
77 inline ReplicationStatus GetStatus() const { return m_status; }
78 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
79 inline void SetStatus(ReplicationStatus value) {
80 m_statusHasBeenSet = true;
81 m_status = value;
82 }
84 SetStatus(value);
85 return *this;
86 }
88
90
93 inline const Aws::String& GetFailureCode() const { return m_failureCode; }
94 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
95 template <typename FailureCodeT = Aws::String>
96 void SetFailureCode(FailureCodeT&& value) {
97 m_failureCodeHasBeenSet = true;
98 m_failureCode = std::forward<FailureCodeT>(value);
99 }
100 template <typename FailureCodeT = Aws::String>
102 SetFailureCode(std::forward<FailureCodeT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_region;
108
109 Aws::String m_registryId;
110
112
113 Aws::String m_failureCode;
114 bool m_regionHasBeenSet = false;
115 bool m_registryIdHasBeenSet = false;
116 bool m_statusHasBeenSet = false;
117 bool m_failureCodeHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace ECR
122} // namespace Aws
AWS_ECR_API ImageReplicationStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
ImageReplicationStatus & WithStatus(ReplicationStatus value)
ImageReplicationStatus & WithRegistryId(RegistryIdT &&value)
ImageReplicationStatus & WithRegion(RegionT &&value)
ImageReplicationStatus & WithFailureCode(FailureCodeT &&value)
AWS_ECR_API ImageReplicationStatus()=default
AWS_ECR_API ImageReplicationStatus(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue