AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AppliedTerminology.h
1
6#pragma once
7#include <aws/translate/Translate_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/translate/model/Term.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 Translate
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_TRANSLATE_API AppliedTerminology();
41 AWS_TRANSLATE_API AppliedTerminology(Aws::Utils::Json::JsonView jsonValue);
43 AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::String& GetName() const{ return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
55 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
56 inline AppliedTerminology& WithName(const Aws::String& value) { SetName(value); return *this;}
57 inline AppliedTerminology& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
58 inline AppliedTerminology& WithName(const char* value) { SetName(value); return *this;}
60
62
68 inline const Aws::Vector<Term>& GetTerms() const{ return m_terms; }
69 inline bool TermsHasBeenSet() const { return m_termsHasBeenSet; }
70 inline void SetTerms(const Aws::Vector<Term>& value) { m_termsHasBeenSet = true; m_terms = value; }
71 inline void SetTerms(Aws::Vector<Term>&& value) { m_termsHasBeenSet = true; m_terms = std::move(value); }
72 inline AppliedTerminology& WithTerms(const Aws::Vector<Term>& value) { SetTerms(value); return *this;}
73 inline AppliedTerminology& WithTerms(Aws::Vector<Term>&& value) { SetTerms(std::move(value)); return *this;}
74 inline AppliedTerminology& AddTerms(const Term& value) { m_termsHasBeenSet = true; m_terms.push_back(value); return *this; }
75 inline AppliedTerminology& AddTerms(Term&& value) { m_termsHasBeenSet = true; m_terms.push_back(std::move(value)); return *this; }
77 private:
78
79 Aws::String m_name;
80 bool m_nameHasBeenSet = false;
81
82 Aws::Vector<Term> m_terms;
83 bool m_termsHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace Translate
88} // namespace Aws
void SetName(const Aws::String &value)
AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TRANSLATE_API AppliedTerminology(Aws::Utils::Json::JsonView jsonValue)
AppliedTerminology & WithTerms(Aws::Vector< Term > &&value)
AppliedTerminology & AddTerms(Term &&value)
void SetTerms(Aws::Vector< Term > &&value)
void SetTerms(const Aws::Vector< Term > &value)
AppliedTerminology & WithName(const Aws::String &value)
AppliedTerminology & WithTerms(const Aws::Vector< Term > &value)
AppliedTerminology & WithName(const char *value)
const Aws::Vector< Term > & GetTerms() const
AppliedTerminology & WithName(Aws::String &&value)
AWS_TRANSLATE_API AppliedTerminology & operator=(Aws::Utils::Json::JsonView jsonValue)
AppliedTerminology & AddTerms(const Term &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue