AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CreateConstraintResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/servicecatalog/ServiceCatalog_EXPORTS.h>
11#include <aws/servicecatalog/model/ConstraintDetail.h>
12#include <aws/servicecatalog/model/Status.h>
13
14#include <utility>
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Cbor {
21class CborValue;
22} // namespace Cbor
23} // namespace Utils
24namespace ServiceCatalog {
25namespace Model {
27 public:
28 AWS_SERVICECATALOG_API CreateConstraintResult() = default;
31
33
36 inline const ConstraintDetail& GetConstraintDetail() const { return m_constraintDetail; }
37 template <typename ConstraintDetailT = ConstraintDetail>
38 void SetConstraintDetail(ConstraintDetailT&& value) {
39 m_constraintDetailHasBeenSet = true;
40 m_constraintDetail = std::forward<ConstraintDetailT>(value);
41 }
42 template <typename ConstraintDetailT = ConstraintDetail>
43 CreateConstraintResult& WithConstraintDetail(ConstraintDetailT&& value) {
44 SetConstraintDetail(std::forward<ConstraintDetailT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetConstraintParameters() const { return m_constraintParameters; }
54 template <typename ConstraintParametersT = Aws::String>
55 void SetConstraintParameters(ConstraintParametersT&& value) {
56 m_constraintParametersHasBeenSet = true;
57 m_constraintParameters = std::forward<ConstraintParametersT>(value);
58 }
59 template <typename ConstraintParametersT = Aws::String>
60 CreateConstraintResult& WithConstraintParameters(ConstraintParametersT&& value) {
61 SetConstraintParameters(std::forward<ConstraintParametersT>(value));
62 return *this;
63 }
65
67
70 inline Status GetStatus() const { return m_status; }
71 inline void SetStatus(Status value) {
72 m_statusHasBeenSet = true;
73 m_status = value;
74 }
76 SetStatus(value);
77 return *this;
78 }
80
82
83 inline const Aws::String& GetRequestId() const { return m_requestId; }
84 template <typename RequestIdT = Aws::String>
85 void SetRequestId(RequestIdT&& value) {
86 m_requestIdHasBeenSet = true;
87 m_requestId = std::forward<RequestIdT>(value);
88 }
89 template <typename RequestIdT = Aws::String>
91 SetRequestId(std::forward<RequestIdT>(value));
92 return *this;
93 }
95 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
96
97 private:
98 ConstraintDetail m_constraintDetail;
99
100 Aws::String m_constraintParameters;
101
102 Status m_status{Status::NOT_SET};
103
104 Aws::String m_requestId;
105 Aws::Http::HttpResponseCode m_HttpResponseCode;
106 bool m_constraintDetailHasBeenSet = false;
107 bool m_constraintParametersHasBeenSet = false;
108 bool m_statusHasBeenSet = false;
109 bool m_requestIdHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace ServiceCatalog
114} // namespace Aws
AWS_SERVICECATALOG_API CreateConstraintResult(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
AWS_SERVICECATALOG_API CreateConstraintResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
CreateConstraintResult & WithConstraintParameters(ConstraintParametersT &&value)
void SetConstraintParameters(ConstraintParametersT &&value)
CreateConstraintResult & WithStatus(Status value)
CreateConstraintResult & WithConstraintDetail(ConstraintDetailT &&value)
AWS_SERVICECATALOG_API CreateConstraintResult()=default
CreateConstraintResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String