AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
ConstraintDetail.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/servicecatalog/ServiceCatalog_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace ServiceCatalog {
20namespace Model {
21
28 public:
29 AWS_SERVICECATALOG_API ConstraintDetail() = default;
30 AWS_SERVICECATALOG_API ConstraintDetail(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
31 AWS_SERVICECATALOG_API ConstraintDetail& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_SERVICECATALOG_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
33
35
38 inline const Aws::String& GetConstraintId() const { return m_constraintId; }
39 inline bool ConstraintIdHasBeenSet() const { return m_constraintIdHasBeenSet; }
40 template <typename ConstraintIdT = Aws::String>
41 void SetConstraintId(ConstraintIdT&& value) {
42 m_constraintIdHasBeenSet = true;
43 m_constraintId = std::forward<ConstraintIdT>(value);
44 }
45 template <typename ConstraintIdT = Aws::String>
46 ConstraintDetail& WithConstraintId(ConstraintIdT&& value) {
47 SetConstraintId(std::forward<ConstraintIdT>(value));
48 return *this;
49 }
51
53
58 inline const Aws::String& GetType() const { return m_type; }
59 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
60 template <typename TypeT = Aws::String>
61 void SetType(TypeT&& value) {
62 m_typeHasBeenSet = true;
63 m_type = std::forward<TypeT>(value);
64 }
65 template <typename TypeT = Aws::String>
66 ConstraintDetail& WithType(TypeT&& value) {
67 SetType(std::forward<TypeT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
84 ConstraintDetail& WithDescription(DescriptionT&& value) {
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetOwner() const { return m_owner; }
95 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
96 template <typename OwnerT = Aws::String>
97 void SetOwner(OwnerT&& value) {
98 m_ownerHasBeenSet = true;
99 m_owner = std::forward<OwnerT>(value);
100 }
101 template <typename OwnerT = Aws::String>
102 ConstraintDetail& WithOwner(OwnerT&& value) {
103 SetOwner(std::forward<OwnerT>(value));
104 return *this;
105 }
107
109
114 inline const Aws::String& GetProductId() const { return m_productId; }
115 inline bool ProductIdHasBeenSet() const { return m_productIdHasBeenSet; }
116 template <typename ProductIdT = Aws::String>
117 void SetProductId(ProductIdT&& value) {
118 m_productIdHasBeenSet = true;
119 m_productId = std::forward<ProductIdT>(value);
120 }
121 template <typename ProductIdT = Aws::String>
122 ConstraintDetail& WithProductId(ProductIdT&& value) {
123 SetProductId(std::forward<ProductIdT>(value));
124 return *this;
125 }
127
129
134 inline const Aws::String& GetPortfolioId() const { return m_portfolioId; }
135 inline bool PortfolioIdHasBeenSet() const { return m_portfolioIdHasBeenSet; }
136 template <typename PortfolioIdT = Aws::String>
137 void SetPortfolioId(PortfolioIdT&& value) {
138 m_portfolioIdHasBeenSet = true;
139 m_portfolioId = std::forward<PortfolioIdT>(value);
140 }
141 template <typename PortfolioIdT = Aws::String>
142 ConstraintDetail& WithPortfolioId(PortfolioIdT&& value) {
143 SetPortfolioId(std::forward<PortfolioIdT>(value));
144 return *this;
145 }
147 private:
148 Aws::String m_constraintId;
149
150 Aws::String m_type;
151
152 Aws::String m_description;
153
154 Aws::String m_owner;
155
156 Aws::String m_productId;
157
158 Aws::String m_portfolioId;
159 bool m_constraintIdHasBeenSet = false;
160 bool m_typeHasBeenSet = false;
161 bool m_descriptionHasBeenSet = false;
162 bool m_ownerHasBeenSet = false;
163 bool m_productIdHasBeenSet = false;
164 bool m_portfolioIdHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace ServiceCatalog
169} // namespace Aws
ConstraintDetail & WithOwner(OwnerT &&value)
ConstraintDetail & WithPortfolioId(PortfolioIdT &&value)
AWS_SERVICECATALOG_API ConstraintDetail & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ConstraintDetail & WithDescription(DescriptionT &&value)
AWS_SERVICECATALOG_API ConstraintDetail()=default
AWS_SERVICECATALOG_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ConstraintDetail & WithType(TypeT &&value)
ConstraintDetail & WithProductId(ProductIdT &&value)
ConstraintDetail & WithConstraintId(ConstraintIdT &&value)
AWS_SERVICECATALOG_API ConstraintDetail(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String