AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
PatchDelivery.h
1
6#pragma once
7#include <aws/continuum/Continuum_EXPORTS.h>
8#include <aws/continuum/model/DeliveryStatus.h>
9#include <aws/continuum/model/DestinationTarget.h>
10#include <aws/core/utils/DateTime.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Continuum {
22namespace Model {
23
32 public:
33 AWS_CONTINUUM_API PatchDelivery() = default;
34 AWS_CONTINUUM_API PatchDelivery(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONTINUUM_API PatchDelivery& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline DeliveryStatus GetStatus() const { return m_status; }
43 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
44 inline void SetStatus(DeliveryStatus value) {
45 m_statusHasBeenSet = true;
46 m_status = value;
47 }
49 SetStatus(value);
50 return *this;
51 }
53
55
60 inline const DestinationTarget& GetTarget() const { return m_target; }
61 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
62 template <typename TargetT = DestinationTarget>
63 void SetTarget(TargetT&& value) {
64 m_targetHasBeenSet = true;
65 m_target = std::forward<TargetT>(value);
66 }
67 template <typename TargetT = DestinationTarget>
68 PatchDelivery& WithTarget(TargetT&& value) {
69 SetTarget(std::forward<TargetT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
79 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
80 template <typename UpdatedAtT = Aws::Utils::DateTime>
81 void SetUpdatedAt(UpdatedAtT&& value) {
82 m_updatedAtHasBeenSet = true;
83 m_updatedAt = std::forward<UpdatedAtT>(value);
84 }
85 template <typename UpdatedAtT = Aws::Utils::DateTime>
86 PatchDelivery& WithUpdatedAt(UpdatedAtT&& value) {
87 SetUpdatedAt(std::forward<UpdatedAtT>(value));
88 return *this;
89 }
91 private:
93
94 DestinationTarget m_target;
95
96 Aws::Utils::DateTime m_updatedAt{};
97 bool m_statusHasBeenSet = false;
98 bool m_targetHasBeenSet = false;
99 bool m_updatedAtHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace Continuum
104} // namespace Aws
PatchDelivery & WithUpdatedAt(UpdatedAtT &&value)
const DestinationTarget & GetTarget() const
AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const
PatchDelivery & WithStatus(DeliveryStatus value)
void SetStatus(DeliveryStatus value)
void SetUpdatedAt(UpdatedAtT &&value)
AWS_CONTINUUM_API PatchDelivery & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONTINUUM_API PatchDelivery(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetUpdatedAt() const
PatchDelivery & WithTarget(TargetT &&value)
AWS_CONTINUUM_API PatchDelivery()=default
Aws::Utils::Json::JsonValue JsonValue