AWS SDK for C++

AWS SDK for C++ Version 1.11.832

Loading...
Searching...
No Matches
CompositeSliConfig.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/CompositeSliComponent.h>
9#include <aws/application-signals/model/SelectionConfig.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ApplicationSignals {
22namespace Model {
23
32 public:
33 AWS_APPLICATIONSIGNALS_API CompositeSliConfig() = default;
34 AWS_APPLICATIONSIGNALS_API CompositeSliConfig(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPLICATIONSIGNALS_API CompositeSliConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline const SelectionConfig& GetSelectionConfig() const { return m_selectionConfig; }
45 inline bool SelectionConfigHasBeenSet() const { return m_selectionConfigHasBeenSet; }
46 template <typename SelectionConfigT = SelectionConfig>
47 void SetSelectionConfig(SelectionConfigT&& value) {
48 m_selectionConfigHasBeenSet = true;
49 m_selectionConfig = std::forward<SelectionConfigT>(value);
50 }
51 template <typename SelectionConfigT = SelectionConfig>
52 CompositeSliConfig& WithSelectionConfig(SelectionConfigT&& value) {
53 SetSelectionConfig(std::forward<SelectionConfigT>(value));
54 return *this;
55 }
57
59
65 inline const Aws::Vector<CompositeSliComponent>& GetComponents() const { return m_components; }
66 inline bool ComponentsHasBeenSet() const { return m_componentsHasBeenSet; }
67 template <typename ComponentsT = Aws::Vector<CompositeSliComponent>>
68 void SetComponents(ComponentsT&& value) {
69 m_componentsHasBeenSet = true;
70 m_components = std::forward<ComponentsT>(value);
71 }
72 template <typename ComponentsT = Aws::Vector<CompositeSliComponent>>
73 CompositeSliConfig& WithComponents(ComponentsT&& value) {
74 SetComponents(std::forward<ComponentsT>(value));
75 return *this;
76 }
77 template <typename ComponentsT = CompositeSliComponent>
78 CompositeSliConfig& AddComponents(ComponentsT&& value) {
79 m_componentsHasBeenSet = true;
80 m_components.emplace_back(std::forward<ComponentsT>(value));
81 return *this;
82 }
84 private:
85 SelectionConfig m_selectionConfig;
86
88 bool m_selectionConfigHasBeenSet = false;
89 bool m_componentsHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace ApplicationSignals
94} // namespace Aws
AWS_APPLICATIONSIGNALS_API CompositeSliConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONSIGNALS_API CompositeSliConfig(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< CompositeSliComponent > & GetComponents() const
CompositeSliConfig & WithComponents(ComponentsT &&value)
CompositeSliConfig & WithSelectionConfig(SelectionConfigT &&value)
CompositeSliConfig & AddComponents(ComponentsT &&value)
AWS_APPLICATIONSIGNALS_API CompositeSliConfig()=default
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue