AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
SlotPriority.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace LexModelsV2 {
20namespace Model {
21
29 public:
30 AWS_LEXMODELSV2_API SlotPriority() = default;
31 AWS_LEXMODELSV2_API SlotPriority(Aws::Utils::Json::JsonView jsonValue);
32 AWS_LEXMODELSV2_API SlotPriority& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline int GetPriority() const { return m_priority; }
40 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
41 inline void SetPriority(int value) {
42 m_priorityHasBeenSet = true;
43 m_priority = value;
44 }
45 inline SlotPriority& WithPriority(int value) {
46 SetPriority(value);
47 return *this;
48 }
50
52
55 inline const Aws::String& GetSlotId() const { return m_slotId; }
56 inline bool SlotIdHasBeenSet() const { return m_slotIdHasBeenSet; }
57 template <typename SlotIdT = Aws::String>
58 void SetSlotId(SlotIdT&& value) {
59 m_slotIdHasBeenSet = true;
60 m_slotId = std::forward<SlotIdT>(value);
61 }
62 template <typename SlotIdT = Aws::String>
63 SlotPriority& WithSlotId(SlotIdT&& value) {
64 SetSlotId(std::forward<SlotIdT>(value));
65 return *this;
66 }
68 private:
69 int m_priority{0};
70
71 Aws::String m_slotId;
72 bool m_priorityHasBeenSet = false;
73 bool m_slotIdHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace LexModelsV2
78} // namespace Aws
AWS_LEXMODELSV2_API SlotPriority()=default
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
SlotPriority & WithSlotId(SlotIdT &&value)
AWS_LEXMODELSV2_API SlotPriority & operator=(Aws::Utils::Json::JsonView jsonValue)
SlotPriority & WithPriority(int value)
const Aws::String & GetSlotId() const
AWS_LEXMODELSV2_API SlotPriority(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue