AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImportsListItem.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/cloudtrail/model/ImportStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CloudTrail
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_CLOUDTRAIL_API ImportsListItem();
39 AWS_CLOUDTRAIL_API ImportsListItem(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetImportId() const{ return m_importId; }
49 inline bool ImportIdHasBeenSet() const { return m_importIdHasBeenSet; }
50 inline void SetImportId(const Aws::String& value) { m_importIdHasBeenSet = true; m_importId = value; }
51 inline void SetImportId(Aws::String&& value) { m_importIdHasBeenSet = true; m_importId = std::move(value); }
52 inline void SetImportId(const char* value) { m_importIdHasBeenSet = true; m_importId.assign(value); }
53 inline ImportsListItem& WithImportId(const Aws::String& value) { SetImportId(value); return *this;}
54 inline ImportsListItem& WithImportId(Aws::String&& value) { SetImportId(std::move(value)); return *this;}
55 inline ImportsListItem& WithImportId(const char* value) { SetImportId(value); return *this;}
57
59
62 inline const ImportStatus& GetImportStatus() const{ return m_importStatus; }
63 inline bool ImportStatusHasBeenSet() const { return m_importStatusHasBeenSet; }
64 inline void SetImportStatus(const ImportStatus& value) { m_importStatusHasBeenSet = true; m_importStatus = value; }
65 inline void SetImportStatus(ImportStatus&& value) { m_importStatusHasBeenSet = true; m_importStatus = std::move(value); }
66 inline ImportsListItem& WithImportStatus(const ImportStatus& value) { SetImportStatus(value); return *this;}
67 inline ImportsListItem& WithImportStatus(ImportStatus&& value) { SetImportStatus(std::move(value)); return *this;}
69
71
74 inline const Aws::Vector<Aws::String>& GetDestinations() const{ return m_destinations; }
75 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
76 inline void SetDestinations(const Aws::Vector<Aws::String>& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
77 inline void SetDestinations(Aws::Vector<Aws::String>&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); }
78 inline ImportsListItem& WithDestinations(const Aws::Vector<Aws::String>& value) { SetDestinations(value); return *this;}
79 inline ImportsListItem& WithDestinations(Aws::Vector<Aws::String>&& value) { SetDestinations(std::move(value)); return *this;}
80 inline ImportsListItem& AddDestinations(const Aws::String& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
81 inline ImportsListItem& AddDestinations(Aws::String&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; }
82 inline ImportsListItem& AddDestinations(const char* value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
84
86
89 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
90 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
91 inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; }
92 inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); }
94 inline ImportsListItem& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
96
98
101 inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const{ return m_updatedTimestamp; }
102 inline bool UpdatedTimestampHasBeenSet() const { return m_updatedTimestampHasBeenSet; }
103 inline void SetUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_updatedTimestampHasBeenSet = true; m_updatedTimestamp = value; }
104 inline void SetUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_updatedTimestampHasBeenSet = true; m_updatedTimestamp = std::move(value); }
106 inline ImportsListItem& WithUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetUpdatedTimestamp(std::move(value)); return *this;}
108 private:
109
110 Aws::String m_importId;
111 bool m_importIdHasBeenSet = false;
112
113 ImportStatus m_importStatus;
114 bool m_importStatusHasBeenSet = false;
115
116 Aws::Vector<Aws::String> m_destinations;
117 bool m_destinationsHasBeenSet = false;
118
119 Aws::Utils::DateTime m_createdTimestamp;
120 bool m_createdTimestampHasBeenSet = false;
121
122 Aws::Utils::DateTime m_updatedTimestamp;
123 bool m_updatedTimestampHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace CloudTrail
128} // namespace Aws
ImportsListItem & WithUpdatedTimestamp(const Aws::Utils::DateTime &value)
ImportsListItem & WithImportId(const char *value)
void SetCreatedTimestamp(Aws::Utils::DateTime &&value)
void SetImportStatus(const ImportStatus &value)
void SetDestinations(Aws::Vector< Aws::String > &&value)
ImportsListItem & WithImportStatus(ImportStatus &&value)
void SetCreatedTimestamp(const Aws::Utils::DateTime &value)
void SetUpdatedTimestamp(Aws::Utils::DateTime &&value)
ImportsListItem & WithCreatedTimestamp(const Aws::Utils::DateTime &value)
ImportsListItem & AddDestinations(const char *value)
const Aws::Vector< Aws::String > & GetDestinations() const
void SetUpdatedTimestamp(const Aws::Utils::DateTime &value)
ImportsListItem & AddDestinations(Aws::String &&value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
const Aws::Utils::DateTime & GetUpdatedTimestamp() const
AWS_CLOUDTRAIL_API ImportsListItem(Aws::Utils::Json::JsonView jsonValue)
ImportsListItem & WithDestinations(Aws::Vector< Aws::String > &&value)
ImportsListItem & AddDestinations(const Aws::String &value)
void SetImportId(Aws::String &&value)
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
ImportsListItem & WithImportId(Aws::String &&value)
ImportsListItem & WithImportStatus(const ImportStatus &value)
ImportsListItem & WithUpdatedTimestamp(Aws::Utils::DateTime &&value)
ImportsListItem & WithDestinations(const Aws::Vector< Aws::String > &value)
ImportsListItem & WithCreatedTimestamp(Aws::Utils::DateTime &&value)
const Aws::String & GetImportId() const
void SetImportId(const Aws::String &value)
void SetImportStatus(ImportStatus &&value)
ImportsListItem & WithImportId(const Aws::String &value)
AWS_CLOUDTRAIL_API ImportsListItem & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDestinations(const Aws::Vector< Aws::String > &value)
const ImportStatus & GetImportStatus() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue