AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetContactChannelArn(const Aws::String& value) { m_contactChannelArnHasBeenSet = true; m_contactChannelArn = value; }
50 inline void SetContactChannelArn(Aws::String&& value) { m_contactChannelArnHasBeenSet = true; m_contactChannelArn = std::move(value); }
51 inline void SetContactChannelArn(const char* value) { m_contactChannelArnHasBeenSet = true; m_contactChannelArn.assign(value); }
52 inline Receipt& WithContactChannelArn(const Aws::String& value) { SetContactChannelArn(value); return *this;}
53 inline Receipt& WithContactChannelArn(Aws::String&& value) { SetContactChannelArn(std::move(value)); return *this;}
54 inline Receipt& WithContactChannelArn(const char* value) { SetContactChannelArn(value); return *this;}
56
58
62 inline const ReceiptType& GetReceiptType() const{ return m_receiptType; }
63 inline bool ReceiptTypeHasBeenSet() const { return m_receiptTypeHasBeenSet; }
64 inline void SetReceiptType(const ReceiptType& value) { m_receiptTypeHasBeenSet = true; m_receiptType = value; }
65 inline void SetReceiptType(ReceiptType&& value) { m_receiptTypeHasBeenSet = true; m_receiptType = std::move(value); }
66 inline Receipt& WithReceiptType(const ReceiptType& value) { SetReceiptType(value); return *this;}
67 inline Receipt& WithReceiptType(ReceiptType&& value) { SetReceiptType(std::move(value)); return *this;}
69
71
74 inline const Aws::String& GetReceiptInfo() const{ return m_receiptInfo; }
75 inline bool ReceiptInfoHasBeenSet() const { return m_receiptInfoHasBeenSet; }
76 inline void SetReceiptInfo(const Aws::String& value) { m_receiptInfoHasBeenSet = true; m_receiptInfo = value; }
77 inline void SetReceiptInfo(Aws::String&& value) { m_receiptInfoHasBeenSet = true; m_receiptInfo = std::move(value); }
78 inline void SetReceiptInfo(const char* value) { m_receiptInfoHasBeenSet = true; m_receiptInfo.assign(value); }
79 inline Receipt& WithReceiptInfo(const Aws::String& value) { SetReceiptInfo(value); return *this;}
80 inline Receipt& WithReceiptInfo(Aws::String&& value) { SetReceiptInfo(std::move(value)); return *this;}
81 inline Receipt& WithReceiptInfo(const char* value) { SetReceiptInfo(value); return *this;}
83
85
89 inline const Aws::Utils::DateTime& GetReceiptTime() const{ return m_receiptTime; }
90 inline bool ReceiptTimeHasBeenSet() const { return m_receiptTimeHasBeenSet; }
91 inline void SetReceiptTime(const Aws::Utils::DateTime& value) { m_receiptTimeHasBeenSet = true; m_receiptTime = value; }
92 inline void SetReceiptTime(Aws::Utils::DateTime&& value) { m_receiptTimeHasBeenSet = true; m_receiptTime = std::move(value); }
93 inline Receipt& WithReceiptTime(const Aws::Utils::DateTime& value) { SetReceiptTime(value); return *this;}
94 inline Receipt& WithReceiptTime(Aws::Utils::DateTime&& value) { SetReceiptTime(std::move(value)); return *this;}
96 private:
97
98 Aws::String m_contactChannelArn;
99 bool m_contactChannelArnHasBeenSet = false;
100
101 ReceiptType m_receiptType;
102 bool m_receiptTypeHasBeenSet = false;
103
104 Aws::String m_receiptInfo;
105 bool m_receiptInfoHasBeenSet = false;
106
107 Aws::Utils::DateTime m_receiptTime;
108 bool m_receiptTimeHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace SSMContacts
113} // namespace Aws
const ReceiptType & GetReceiptType() const
Definition Receipt.h:62
Receipt & WithReceiptType(const ReceiptType &value)
Definition Receipt.h:66
Receipt & WithContactChannelArn(Aws::String &&value)
Definition Receipt.h:53
void SetReceiptInfo(const char *value)
Definition Receipt.h:78
Receipt & WithContactChannelArn(const char *value)
Definition Receipt.h:54
Receipt & WithReceiptInfo(const char *value)
Definition Receipt.h:81
bool ReceiptTypeHasBeenSet() const
Definition Receipt.h:63
Receipt & WithReceiptInfo(Aws::String &&value)
Definition Receipt.h:80
void SetReceiptType(const ReceiptType &value)
Definition Receipt.h:64
void SetReceiptTime(const Aws::Utils::DateTime &value)
Definition Receipt.h:91
Receipt & WithReceiptInfo(const Aws::String &value)
Definition Receipt.h:79
bool ContactChannelArnHasBeenSet() const
Definition Receipt.h:48
void SetReceiptInfo(const Aws::String &value)
Definition Receipt.h:76
Receipt & WithReceiptTime(Aws::Utils::DateTime &&value)
Definition Receipt.h:94
bool ReceiptInfoHasBeenSet() const
Definition Receipt.h:75
const Aws::Utils::DateTime & GetReceiptTime() const
Definition Receipt.h:89
const Aws::String & GetReceiptInfo() const
Definition Receipt.h:74
AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReceiptInfo(Aws::String &&value)
Definition Receipt.h:77
Receipt & WithContactChannelArn(const Aws::String &value)
Definition Receipt.h:52
AWS_SSMCONTACTS_API Receipt(Aws::Utils::Json::JsonView jsonValue)
bool ReceiptTimeHasBeenSet() const
Definition Receipt.h:90
Receipt & WithReceiptTime(const Aws::Utils::DateTime &value)
Definition Receipt.h:93
void SetContactChannelArn(const Aws::String &value)
Definition Receipt.h:49
Receipt & WithReceiptType(ReceiptType &&value)
Definition Receipt.h:67
AWS_SSMCONTACTS_API Receipt & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetReceiptTime(Aws::Utils::DateTime &&value)
Definition Receipt.h:92
const Aws::String & GetContactChannelArn() const
Definition Receipt.h:47
AWS_SSMCONTACTS_API Receipt()
void SetContactChannelArn(const char *value)
Definition Receipt.h:51
void SetReceiptType(ReceiptType &&value)
Definition Receipt.h:65
void SetContactChannelArn(Aws::String &&value)
Definition Receipt.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue