AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Query.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/QueryStatus.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 CloudTrail
24{
25namespace Model
26{
27
34 class Query
35 {
36 public:
37 AWS_CLOUDTRAIL_API Query();
38 AWS_CLOUDTRAIL_API Query(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDTRAIL_API Query& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetQueryId() const{ return m_queryId; }
48 inline bool QueryIdHasBeenSet() const { return m_queryIdHasBeenSet; }
49 inline void SetQueryId(const Aws::String& value) { m_queryIdHasBeenSet = true; m_queryId = value; }
50 inline void SetQueryId(Aws::String&& value) { m_queryIdHasBeenSet = true; m_queryId = std::move(value); }
51 inline void SetQueryId(const char* value) { m_queryIdHasBeenSet = true; m_queryId.assign(value); }
52 inline Query& WithQueryId(const Aws::String& value) { SetQueryId(value); return *this;}
53 inline Query& WithQueryId(Aws::String&& value) { SetQueryId(std::move(value)); return *this;}
54 inline Query& WithQueryId(const char* value) { SetQueryId(value); return *this;}
56
58
63 inline const QueryStatus& GetQueryStatus() const{ return m_queryStatus; }
64 inline bool QueryStatusHasBeenSet() const { return m_queryStatusHasBeenSet; }
65 inline void SetQueryStatus(const QueryStatus& value) { m_queryStatusHasBeenSet = true; m_queryStatus = value; }
66 inline void SetQueryStatus(QueryStatus&& value) { m_queryStatusHasBeenSet = true; m_queryStatus = std::move(value); }
67 inline Query& WithQueryStatus(const QueryStatus& value) { SetQueryStatus(value); return *this;}
68 inline Query& WithQueryStatus(QueryStatus&& value) { SetQueryStatus(std::move(value)); return *this;}
70
72
75 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
76 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
77 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
78 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
79 inline Query& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
80 inline Query& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
82 private:
83
84 Aws::String m_queryId;
85 bool m_queryIdHasBeenSet = false;
86
87 QueryStatus m_queryStatus;
88 bool m_queryStatusHasBeenSet = false;
89
90 Aws::Utils::DateTime m_creationTime;
91 bool m_creationTimeHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace CloudTrail
96} // namespace Aws
bool CreationTimeHasBeenSet() const
Definition Query.h:76
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition Query.h:78
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition Query.h:77
Query & WithQueryId(const Aws::String &value)
Definition Query.h:52
void SetQueryStatus(const QueryStatus &value)
Definition Query.h:65
Query & WithQueryStatus(QueryStatus &&value)
Definition Query.h:68
void SetQueryId(const char *value)
Definition Query.h:51
AWS_CLOUDTRAIL_API Query()
const QueryStatus & GetQueryStatus() const
Definition Query.h:63
bool QueryStatusHasBeenSet() const
Definition Query.h:64
AWS_CLOUDTRAIL_API Query & operator=(Aws::Utils::Json::JsonView jsonValue)
Query & WithQueryId(const char *value)
Definition Query.h:54
void SetQueryId(Aws::String &&value)
Definition Query.h:50
AWS_CLOUDTRAIL_API Query(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
Query & WithQueryId(Aws::String &&value)
Definition Query.h:53
Query & WithCreationTime(Aws::Utils::DateTime &&value)
Definition Query.h:80
const Aws::String & GetQueryId() const
Definition Query.h:47
bool QueryIdHasBeenSet() const
Definition Query.h:48
Query & WithQueryStatus(const QueryStatus &value)
Definition Query.h:67
Query & WithCreationTime(const Aws::Utils::DateTime &value)
Definition Query.h:79
void SetQueryId(const Aws::String &value)
Definition Query.h:49
const Aws::Utils::DateTime & GetCreationTime() const
Definition Query.h:75
void SetQueryStatus(QueryStatus &&value)
Definition Query.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue