AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LegalTerm.h
1
6#pragma once
7#include <aws/marketplace-agreement/AgreementService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/marketplace-agreement/model/DocumentItem.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 AgreementService
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_AGREEMENTSERVICE_API LegalTerm();
38 AWS_AGREEMENTSERVICE_API LegalTerm(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AGREEMENTSERVICE_API LegalTerm& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_AGREEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Vector<DocumentItem>& GetDocuments() const{ return m_documents; }
49 inline bool DocumentsHasBeenSet() const { return m_documentsHasBeenSet; }
50 inline void SetDocuments(const Aws::Vector<DocumentItem>& value) { m_documentsHasBeenSet = true; m_documents = value; }
51 inline void SetDocuments(Aws::Vector<DocumentItem>&& value) { m_documentsHasBeenSet = true; m_documents = std::move(value); }
52 inline LegalTerm& WithDocuments(const Aws::Vector<DocumentItem>& value) { SetDocuments(value); return *this;}
53 inline LegalTerm& WithDocuments(Aws::Vector<DocumentItem>&& value) { SetDocuments(std::move(value)); return *this;}
54 inline LegalTerm& AddDocuments(const DocumentItem& value) { m_documentsHasBeenSet = true; m_documents.push_back(value); return *this; }
55 inline LegalTerm& AddDocuments(DocumentItem&& value) { m_documentsHasBeenSet = true; m_documents.push_back(std::move(value)); return *this; }
57
59
62 inline const Aws::String& GetType() const{ return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
65 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
66 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
67 inline LegalTerm& WithType(const Aws::String& value) { SetType(value); return *this;}
68 inline LegalTerm& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
69 inline LegalTerm& WithType(const char* value) { SetType(value); return *this;}
71 private:
72
73 Aws::Vector<DocumentItem> m_documents;
74 bool m_documentsHasBeenSet = false;
75
76 Aws::String m_type;
77 bool m_typeHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace AgreementService
82} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue