AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Receipt.h
1
6#pragma once
7#include <aws/ssm-contacts/SSMContacts_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm-contacts/model/ReceiptType.h>
10#include <aws/core/utils/DateTime.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 SSMContacts
24{
25namespace Model
26{
27
33 class Receipt
34 {
35 public:
36 AWS_SSMCONTACTS_API Receipt() = default;
37 AWS_SSMCONTACTS_API Receipt(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SSMCONTACTS_API Receipt& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetContactChannelArn() const { return m_contactChannelArn; }
48 inline bool ContactChannelArnHasBeenSet() const { return m_contactChannelArnHasBeenSet; }
49 template<typename ContactChannelArnT = Aws::String>
50 void SetContactChannelArn(ContactChannelArnT&& value) { m_contactChannelArnHasBeenSet = true; m_contactChannelArn = std::forward<ContactChannelArnT>(value); }
51 template<typename ContactChannelArnT = Aws::String>
52 Receipt& WithContactChannelArn(ContactChannelArnT&& value) { SetContactChannelArn(std::forward<ContactChannelArnT>(value)); return *this;}
54
56
60 inline ReceiptType GetReceiptType() const { return m_receiptType; }
61 inline bool ReceiptTypeHasBeenSet() const { return m_receiptTypeHasBeenSet; }
62 inline void SetReceiptType(ReceiptType value) { m_receiptTypeHasBeenSet = true; m_receiptType = value; }
63 inline Receipt& WithReceiptType(ReceiptType value) { SetReceiptType(value); return *this;}
65
67
70 inline const Aws::String& GetReceiptInfo() const { return m_receiptInfo; }
71 inline bool ReceiptInfoHasBeenSet() const { return m_receiptInfoHasBeenSet; }
72 template<typename ReceiptInfoT = Aws::String>
73 void SetReceiptInfo(ReceiptInfoT&& value) { m_receiptInfoHasBeenSet = true; m_receiptInfo = std::forward<ReceiptInfoT>(value); }
74 template<typename ReceiptInfoT = Aws::String>
75 Receipt& WithReceiptInfo(ReceiptInfoT&& value) { SetReceiptInfo(std::forward<ReceiptInfoT>(value)); return *this;}
77
79
83 inline const Aws::Utils::DateTime& GetReceiptTime() const { return m_receiptTime; }
84 inline bool ReceiptTimeHasBeenSet() const { return m_receiptTimeHasBeenSet; }
85 template<typename ReceiptTimeT = Aws::Utils::DateTime>
86 void SetReceiptTime(ReceiptTimeT&& value) { m_receiptTimeHasBeenSet = true; m_receiptTime = std::forward<ReceiptTimeT>(value); }
87 template<typename ReceiptTimeT = Aws::Utils::DateTime>
88 Receipt& WithReceiptTime(ReceiptTimeT&& value) { SetReceiptTime(std::forward<ReceiptTimeT>(value)); return *this;}
90 private:
91
92 Aws::String m_contactChannelArn;
93 bool m_contactChannelArnHasBeenSet = false;
94
95 ReceiptType m_receiptType{ReceiptType::NOT_SET};
96 bool m_receiptTypeHasBeenSet = false;
97
98 Aws::String m_receiptInfo;
99 bool m_receiptInfoHasBeenSet = false;
100
101 Aws::Utils::DateTime m_receiptTime{};
102 bool m_receiptTimeHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace SSMContacts
107} // namespace Aws
ReceiptType GetReceiptType() const
Definition Receipt.h:60
Receipt & WithContactChannelArn(ContactChannelArnT &&value)
Definition Receipt.h:52
bool ReceiptTypeHasBeenSet() const
Definition Receipt.h:61
bool ContactChannelArnHasBeenSet() const
Definition Receipt.h:48
bool ReceiptInfoHasBeenSet() const
Definition Receipt.h:71
void SetReceiptType(ReceiptType value)
Definition Receipt.h:62
const Aws::Utils::DateTime & GetReceiptTime() const
Definition Receipt.h:83
const Aws::String & GetReceiptInfo() const
Definition Receipt.h:70
AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReceiptTime(ReceiptTimeT &&value)
Definition Receipt.h:86
Receipt & WithReceiptType(ReceiptType value)
Definition Receipt.h:63
AWS_SSMCONTACTS_API Receipt(Aws::Utils::Json::JsonView jsonValue)
bool ReceiptTimeHasBeenSet() const
Definition Receipt.h:84
void SetContactChannelArn(ContactChannelArnT &&value)
Definition Receipt.h:50
Receipt & WithReceiptInfo(ReceiptInfoT &&value)
Definition Receipt.h:75
Receipt & WithReceiptTime(ReceiptTimeT &&value)
Definition Receipt.h:88
AWS_SSMCONTACTS_API Receipt & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetReceiptInfo(ReceiptInfoT &&value)
Definition Receipt.h:73
const Aws::String & GetContactChannelArn() const
Definition Receipt.h:47
AWS_SSMCONTACTS_API Receipt()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue