AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
AssociateServiceResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
10#include <aws/devops-agent/model/Association.h>
11#include <aws/devops-agent/model/GenericWebhook.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 DevOpsAgent {
25namespace Model {
33 public:
34 AWS_DEVOPSAGENT_API AssociateServiceResult() = default;
37
39
40 inline const Association& GetAssociation() const { return m_association; }
41 template <typename AssociationT = Association>
42 void SetAssociation(AssociationT&& value) {
43 m_associationHasBeenSet = true;
44 m_association = std::forward<AssociationT>(value);
45 }
46 template <typename AssociationT = Association>
47 AssociateServiceResult& WithAssociation(AssociationT&& value) {
48 SetAssociation(std::forward<AssociationT>(value));
49 return *this;
50 }
52
54
57 inline const GenericWebhook& GetWebhook() const { return m_webhook; }
58 template <typename WebhookT = GenericWebhook>
59 void SetWebhook(WebhookT&& value) {
60 m_webhookHasBeenSet = true;
61 m_webhook = std::forward<WebhookT>(value);
62 }
63 template <typename WebhookT = GenericWebhook>
65 SetWebhook(std::forward<WebhookT>(value));
66 return *this;
67 }
69
71
72 inline const Aws::String& GetRequestId() const { return m_requestId; }
73 template <typename RequestIdT = Aws::String>
74 void SetRequestId(RequestIdT&& value) {
75 m_requestIdHasBeenSet = true;
76 m_requestId = std::forward<RequestIdT>(value);
77 }
78 template <typename RequestIdT = Aws::String>
80 SetRequestId(std::forward<RequestIdT>(value));
81 return *this;
82 }
84 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
85
86 private:
87 Association m_association;
88
89 GenericWebhook m_webhook;
90
91 Aws::String m_requestId;
92 Aws::Http::HttpResponseCode m_HttpResponseCode;
93 bool m_associationHasBeenSet = false;
94 bool m_webhookHasBeenSet = false;
95 bool m_requestIdHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace DevOpsAgent
100} // namespace Aws
AWS_DEVOPSAGENT_API AssociateServiceResult()=default
AssociateServiceResult & WithAssociation(AssociationT &&value)
AssociateServiceResult & WithRequestId(RequestIdT &&value)
AWS_DEVOPSAGENT_API AssociateServiceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_DEVOPSAGENT_API AssociateServiceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AssociateServiceResult & WithWebhook(WebhookT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue