AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ImageReplicationStatus.h
1
6#pragma once
7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecr/model/ReplicationStatus.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 ECR
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ECR_API ImageReplicationStatus() = default;
40
41
43
46 inline const Aws::String& GetRegion() const { return m_region; }
47 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
48 template<typename RegionT = Aws::String>
49 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
50 template<typename RegionT = Aws::String>
51 ImageReplicationStatus& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
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) { m_registryIdHasBeenSet = true; m_registryId = std::forward<RegistryIdT>(value); }
63 template<typename RegistryIdT = Aws::String>
64 ImageReplicationStatus& WithRegistryId(RegistryIdT&& value) { SetRegistryId(std::forward<RegistryIdT>(value)); return *this;}
66
68
71 inline ReplicationStatus GetStatus() const { return m_status; }
72 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
73 inline void SetStatus(ReplicationStatus value) { m_statusHasBeenSet = true; m_status = value; }
74 inline ImageReplicationStatus& WithStatus(ReplicationStatus value) { SetStatus(value); return *this;}
76
78
81 inline const Aws::String& GetFailureCode() const { return m_failureCode; }
82 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
83 template<typename FailureCodeT = Aws::String>
84 void SetFailureCode(FailureCodeT&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::forward<FailureCodeT>(value); }
85 template<typename FailureCodeT = Aws::String>
86 ImageReplicationStatus& WithFailureCode(FailureCodeT&& value) { SetFailureCode(std::forward<FailureCodeT>(value)); return *this;}
88 private:
89
90 Aws::String m_region;
91 bool m_regionHasBeenSet = false;
92
93 Aws::String m_registryId;
94 bool m_registryIdHasBeenSet = false;
95
97 bool m_statusHasBeenSet = false;
98
99 Aws::String m_failureCode;
100 bool m_failureCodeHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace ECR
105} // 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