AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetServiceInstanceSyncStatusResult.h
1
6#pragma once
7#include <aws/proton/Proton_EXPORTS.h>
8#include <aws/proton/model/Revision.h>
9#include <aws/proton/model/ResourceSyncAttempt.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Proton
26{
27namespace Model
28{
30 {
31 public:
32 AWS_PROTON_API GetServiceInstanceSyncStatusResult() = default;
35
36
38
41 inline const Revision& GetDesiredState() const { return m_desiredState; }
42 template<typename DesiredStateT = Revision>
43 void SetDesiredState(DesiredStateT&& value) { m_desiredStateHasBeenSet = true; m_desiredState = std::forward<DesiredStateT>(value); }
44 template<typename DesiredStateT = Revision>
45 GetServiceInstanceSyncStatusResult& WithDesiredState(DesiredStateT&& value) { SetDesiredState(std::forward<DesiredStateT>(value)); return *this;}
47
49
53 inline const ResourceSyncAttempt& GetLatestSuccessfulSync() const { return m_latestSuccessfulSync; }
54 template<typename LatestSuccessfulSyncT = ResourceSyncAttempt>
55 void SetLatestSuccessfulSync(LatestSuccessfulSyncT&& value) { m_latestSuccessfulSyncHasBeenSet = true; m_latestSuccessfulSync = std::forward<LatestSuccessfulSyncT>(value); }
56 template<typename LatestSuccessfulSyncT = ResourceSyncAttempt>
57 GetServiceInstanceSyncStatusResult& WithLatestSuccessfulSync(LatestSuccessfulSyncT&& value) { SetLatestSuccessfulSync(std::forward<LatestSuccessfulSyncT>(value)); return *this;}
59
61
64 inline const ResourceSyncAttempt& GetLatestSync() const { return m_latestSync; }
65 template<typename LatestSyncT = ResourceSyncAttempt>
66 void SetLatestSync(LatestSyncT&& value) { m_latestSyncHasBeenSet = true; m_latestSync = std::forward<LatestSyncT>(value); }
67 template<typename LatestSyncT = ResourceSyncAttempt>
68 GetServiceInstanceSyncStatusResult& WithLatestSync(LatestSyncT&& value) { SetLatestSync(std::forward<LatestSyncT>(value)); return *this;}
70
72
73 inline const Aws::String& GetRequestId() const { return m_requestId; }
74 template<typename RequestIdT = Aws::String>
75 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
76 template<typename RequestIdT = Aws::String>
77 GetServiceInstanceSyncStatusResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
79 private:
80
81 Revision m_desiredState;
82 bool m_desiredStateHasBeenSet = false;
83
84 ResourceSyncAttempt m_latestSuccessfulSync;
85 bool m_latestSuccessfulSyncHasBeenSet = false;
86
87 ResourceSyncAttempt m_latestSync;
88 bool m_latestSyncHasBeenSet = false;
89
90 Aws::String m_requestId;
91 bool m_requestIdHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Proton
96} // namespace Aws
AWS_PROTON_API GetServiceInstanceSyncStatusResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetServiceInstanceSyncStatusResult & WithLatestSuccessfulSync(LatestSuccessfulSyncT &&value)
GetServiceInstanceSyncStatusResult & WithDesiredState(DesiredStateT &&value)
GetServiceInstanceSyncStatusResult & WithRequestId(RequestIdT &&value)
GetServiceInstanceSyncStatusResult & WithLatestSync(LatestSyncT &&value)
AWS_PROTON_API GetServiceInstanceSyncStatusResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue