AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ParameterObject.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/datapipeline/DataPipeline_EXPORTS.h>
10#include <aws/datapipeline/model/ParameterAttribute.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DataPipeline {
22namespace Model {
23
30 public:
31 AWS_DATAPIPELINE_API ParameterObject() = default;
32 AWS_DATAPIPELINE_API ParameterObject(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DATAPIPELINE_API ParameterObject& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DATAPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetId() const { return m_id; }
41 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
42 template <typename IdT = Aws::String>
43 void SetId(IdT&& value) {
44 m_idHasBeenSet = true;
45 m_id = std::forward<IdT>(value);
46 }
47 template <typename IdT = Aws::String>
48 ParameterObject& WithId(IdT&& value) {
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<ParameterAttribute>& GetAttributes() const { return m_attributes; }
59 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
60 template <typename AttributesT = Aws::Vector<ParameterAttribute>>
61 void SetAttributes(AttributesT&& value) {
62 m_attributesHasBeenSet = true;
63 m_attributes = std::forward<AttributesT>(value);
64 }
65 template <typename AttributesT = Aws::Vector<ParameterAttribute>>
66 ParameterObject& WithAttributes(AttributesT&& value) {
67 SetAttributes(std::forward<AttributesT>(value));
68 return *this;
69 }
70 template <typename AttributesT = ParameterAttribute>
71 ParameterObject& AddAttributes(AttributesT&& value) {
72 m_attributesHasBeenSet = true;
73 m_attributes.emplace_back(std::forward<AttributesT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_id;
79
81 bool m_idHasBeenSet = false;
82 bool m_attributesHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace DataPipeline
87} // namespace Aws
ParameterObject & WithAttributes(AttributesT &&value)
const Aws::Vector< ParameterAttribute > & GetAttributes() const
AWS_DATAPIPELINE_API ParameterObject & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
ParameterObject & AddAttributes(AttributesT &&value)
AWS_DATAPIPELINE_API ParameterObject()=default
ParameterObject & WithId(IdT &&value)
AWS_DATAPIPELINE_API ParameterObject(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue