AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
ExecutionParameter.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/servicecatalog/ServiceCatalog_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace ServiceCatalog {
21namespace Model {
22
30 public:
31 AWS_SERVICECATALOG_API ExecutionParameter() = default;
32 AWS_SERVICECATALOG_API ExecutionParameter(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_SERVICECATALOG_API ExecutionParameter& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_SERVICECATALOG_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 ExecutionParameter& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
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 ExecutionParameter& WithType(TypeT&& value) {
67 SetType(std::forward<TypeT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Vector<Aws::String>& GetDefaultValues() const { return m_defaultValues; }
77 inline bool DefaultValuesHasBeenSet() const { return m_defaultValuesHasBeenSet; }
78 template <typename DefaultValuesT = Aws::Vector<Aws::String>>
79 void SetDefaultValues(DefaultValuesT&& value) {
80 m_defaultValuesHasBeenSet = true;
81 m_defaultValues = std::forward<DefaultValuesT>(value);
82 }
83 template <typename DefaultValuesT = Aws::Vector<Aws::String>>
84 ExecutionParameter& WithDefaultValues(DefaultValuesT&& value) {
85 SetDefaultValues(std::forward<DefaultValuesT>(value));
86 return *this;
87 }
88 template <typename DefaultValuesT = Aws::String>
89 ExecutionParameter& AddDefaultValues(DefaultValuesT&& value) {
90 m_defaultValuesHasBeenSet = true;
91 m_defaultValues.emplace_back(std::forward<DefaultValuesT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_name;
97
98 Aws::String m_type;
99
100 Aws::Vector<Aws::String> m_defaultValues;
101 bool m_nameHasBeenSet = false;
102 bool m_typeHasBeenSet = false;
103 bool m_defaultValuesHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace ServiceCatalog
108} // namespace Aws
ExecutionParameter & AddDefaultValues(DefaultValuesT &&value)
const Aws::Vector< Aws::String > & GetDefaultValues() const
ExecutionParameter & WithType(TypeT &&value)
AWS_SERVICECATALOG_API ExecutionParameter(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_SERVICECATALOG_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ExecutionParameter & WithDefaultValues(DefaultValuesT &&value)
AWS_SERVICECATALOG_API ExecutionParameter & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ExecutionParameter & WithName(NameT &&value)
AWS_SERVICECATALOG_API ExecutionParameter()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector