AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConditionalSpecification.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lexv2-models/model/DefaultConditionalBranch.h>
10#include <aws/lexv2-models/model/ConditionalBranch.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LexModelsV2
24{
25namespace Model
26{
27
39 {
40 public:
41 AWS_LEXMODELSV2_API ConditionalSpecification();
44 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline bool GetActive() const{ return m_active; }
53 inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
54 inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; }
55 inline ConditionalSpecification& WithActive(bool value) { SetActive(value); return *this;}
57
59
64 inline const Aws::Vector<ConditionalBranch>& GetConditionalBranches() const{ return m_conditionalBranches; }
65 inline bool ConditionalBranchesHasBeenSet() const { return m_conditionalBranchesHasBeenSet; }
66 inline void SetConditionalBranches(const Aws::Vector<ConditionalBranch>& value) { m_conditionalBranchesHasBeenSet = true; m_conditionalBranches = value; }
67 inline void SetConditionalBranches(Aws::Vector<ConditionalBranch>&& value) { m_conditionalBranchesHasBeenSet = true; m_conditionalBranches = std::move(value); }
70 inline ConditionalSpecification& AddConditionalBranches(const ConditionalBranch& value) { m_conditionalBranchesHasBeenSet = true; m_conditionalBranches.push_back(value); return *this; }
71 inline ConditionalSpecification& AddConditionalBranches(ConditionalBranch&& value) { m_conditionalBranchesHasBeenSet = true; m_conditionalBranches.push_back(std::move(value)); return *this; }
73
75
80 inline const DefaultConditionalBranch& GetDefaultBranch() const{ return m_defaultBranch; }
81 inline bool DefaultBranchHasBeenSet() const { return m_defaultBranchHasBeenSet; }
82 inline void SetDefaultBranch(const DefaultConditionalBranch& value) { m_defaultBranchHasBeenSet = true; m_defaultBranch = value; }
83 inline void SetDefaultBranch(DefaultConditionalBranch&& value) { m_defaultBranchHasBeenSet = true; m_defaultBranch = std::move(value); }
85 inline ConditionalSpecification& WithDefaultBranch(DefaultConditionalBranch&& value) { SetDefaultBranch(std::move(value)); return *this;}
87 private:
88
89 bool m_active;
90 bool m_activeHasBeenSet = false;
91
92 Aws::Vector<ConditionalBranch> m_conditionalBranches;
93 bool m_conditionalBranchesHasBeenSet = false;
94
95 DefaultConditionalBranch m_defaultBranch;
96 bool m_defaultBranchHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace LexModelsV2
101} // namespace Aws
void SetConditionalBranches(const Aws::Vector< ConditionalBranch > &value)
ConditionalSpecification & AddConditionalBranches(ConditionalBranch &&value)
ConditionalSpecification & WithDefaultBranch(const DefaultConditionalBranch &value)
void SetConditionalBranches(Aws::Vector< ConditionalBranch > &&value)
ConditionalSpecification & WithConditionalBranches(const Aws::Vector< ConditionalBranch > &value)
ConditionalSpecification & WithDefaultBranch(DefaultConditionalBranch &&value)
AWS_LEXMODELSV2_API ConditionalSpecification(Aws::Utils::Json::JsonView jsonValue)
ConditionalSpecification & WithActive(bool value)
void SetDefaultBranch(const DefaultConditionalBranch &value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
ConditionalSpecification & WithConditionalBranches(Aws::Vector< ConditionalBranch > &&value)
AWS_LEXMODELSV2_API ConditionalSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDefaultBranch(DefaultConditionalBranch &&value)
ConditionalSpecification & AddConditionalBranches(const ConditionalBranch &value)
const Aws::Vector< ConditionalBranch > & GetConditionalBranches() const
const DefaultConditionalBranch & GetDefaultBranch() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue