AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetResourceSyncStatusResult.h
1
6#pragma once
7#include <aws/codestar-connections/CodeStarconnections_EXPORTS.h>
8#include <aws/codestar-connections/model/ResourceSyncAttempt.h>
9#include <aws/codestar-connections/model/Revision.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace CodeStarconnections {
25namespace Model {
27 public:
28 AWS_CODESTARCONNECTIONS_API GetResourceSyncStatusResult() = default;
30 AWS_CODESTARCONNECTIONS_API GetResourceSyncStatusResult& operator=(
32
34
38 inline const Revision& GetDesiredState() const { return m_desiredState; }
39 template <typename DesiredStateT = Revision>
40 void SetDesiredState(DesiredStateT&& value) {
41 m_desiredStateHasBeenSet = true;
42 m_desiredState = std::forward<DesiredStateT>(value);
43 }
44 template <typename DesiredStateT = Revision>
46 SetDesiredState(std::forward<DesiredStateT>(value));
47 return *this;
48 }
50
52
55 inline const ResourceSyncAttempt& GetLatestSuccessfulSync() const { return m_latestSuccessfulSync; }
56 template <typename LatestSuccessfulSyncT = ResourceSyncAttempt>
57 void SetLatestSuccessfulSync(LatestSuccessfulSyncT&& value) {
58 m_latestSuccessfulSyncHasBeenSet = true;
59 m_latestSuccessfulSync = std::forward<LatestSuccessfulSyncT>(value);
60 }
61 template <typename LatestSuccessfulSyncT = ResourceSyncAttempt>
62 GetResourceSyncStatusResult& WithLatestSuccessfulSync(LatestSuccessfulSyncT&& value) {
63 SetLatestSuccessfulSync(std::forward<LatestSuccessfulSyncT>(value));
64 return *this;
65 }
67
69
73 inline const ResourceSyncAttempt& GetLatestSync() const { return m_latestSync; }
74 template <typename LatestSyncT = ResourceSyncAttempt>
75 void SetLatestSync(LatestSyncT&& value) {
76 m_latestSyncHasBeenSet = true;
77 m_latestSync = std::forward<LatestSyncT>(value);
78 }
79 template <typename LatestSyncT = ResourceSyncAttempt>
81 SetLatestSync(std::forward<LatestSyncT>(value));
82 return *this;
83 }
85
87
88 inline const Aws::String& GetRequestId() const { return m_requestId; }
89 template <typename RequestIdT = Aws::String>
90 void SetRequestId(RequestIdT&& value) {
91 m_requestIdHasBeenSet = true;
92 m_requestId = std::forward<RequestIdT>(value);
93 }
94 template <typename RequestIdT = Aws::String>
96 SetRequestId(std::forward<RequestIdT>(value));
97 return *this;
98 }
100 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
101
102 private:
103 Revision m_desiredState;
104
105 ResourceSyncAttempt m_latestSuccessfulSync;
106
107 ResourceSyncAttempt m_latestSync;
108
109 Aws::String m_requestId;
110 Aws::Http::HttpResponseCode m_HttpResponseCode;
111 bool m_desiredStateHasBeenSet = false;
112 bool m_latestSuccessfulSyncHasBeenSet = false;
113 bool m_latestSyncHasBeenSet = false;
114 bool m_requestIdHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace CodeStarconnections
119} // namespace Aws
GetResourceSyncStatusResult & WithDesiredState(DesiredStateT &&value)
AWS_CODESTARCONNECTIONS_API GetResourceSyncStatusResult()=default
AWS_CODESTARCONNECTIONS_API GetResourceSyncStatusResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetResourceSyncStatusResult & WithLatestSync(LatestSyncT &&value)
AWS_CODESTARCONNECTIONS_API GetResourceSyncStatusResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetResourceSyncStatusResult & WithRequestId(RequestIdT &&value)
GetResourceSyncStatusResult & WithLatestSuccessfulSync(LatestSuccessfulSyncT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue