AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
ConstraintSummary.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 ConstraintSummary() = default;
30 AWS_SERVICECATALOG_API ConstraintSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
31 AWS_SERVICECATALOG_API ConstraintSummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_SERVICECATALOG_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
33
35
40 inline const Aws::String& GetType() const { return m_type; }
41 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
42 template <typename TypeT = Aws::String>
43 void SetType(TypeT&& value) {
44 m_typeHasBeenSet = true;
45 m_type = std::forward<TypeT>(value);
46 }
47 template <typename TypeT = Aws::String>
48 ConstraintSummary& WithType(TypeT&& value) {
49 SetType(std::forward<TypeT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
66 ConstraintSummary& WithDescription(DescriptionT&& value) {
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_type;
73
74 Aws::String m_description;
75 bool m_typeHasBeenSet = false;
76 bool m_descriptionHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace ServiceCatalog
81} // namespace Aws
ConstraintSummary & WithDescription(DescriptionT &&value)
AWS_SERVICECATALOG_API ConstraintSummary()=default
AWS_SERVICECATALOG_API ConstraintSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_SERVICECATALOG_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_SERVICECATALOG_API ConstraintSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ConstraintSummary & WithType(TypeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String