AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartQueryRequest.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/CloudTrailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CloudTrail
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CLOUDTRAIL_API StartQueryRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "StartQuery"; }
32
33 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetQueryStatement() const{ return m_queryStatement; }
43 inline bool QueryStatementHasBeenSet() const { return m_queryStatementHasBeenSet; }
44 inline void SetQueryStatement(const Aws::String& value) { m_queryStatementHasBeenSet = true; m_queryStatement = value; }
45 inline void SetQueryStatement(Aws::String&& value) { m_queryStatementHasBeenSet = true; m_queryStatement = std::move(value); }
46 inline void SetQueryStatement(const char* value) { m_queryStatementHasBeenSet = true; m_queryStatement.assign(value); }
47 inline StartQueryRequest& WithQueryStatement(const Aws::String& value) { SetQueryStatement(value); return *this;}
48 inline StartQueryRequest& WithQueryStatement(Aws::String&& value) { SetQueryStatement(std::move(value)); return *this;}
49 inline StartQueryRequest& WithQueryStatement(const char* value) { SetQueryStatement(value); return *this;}
51
53
56 inline const Aws::String& GetDeliveryS3Uri() const{ return m_deliveryS3Uri; }
57 inline bool DeliveryS3UriHasBeenSet() const { return m_deliveryS3UriHasBeenSet; }
58 inline void SetDeliveryS3Uri(const Aws::String& value) { m_deliveryS3UriHasBeenSet = true; m_deliveryS3Uri = value; }
59 inline void SetDeliveryS3Uri(Aws::String&& value) { m_deliveryS3UriHasBeenSet = true; m_deliveryS3Uri = std::move(value); }
60 inline void SetDeliveryS3Uri(const char* value) { m_deliveryS3UriHasBeenSet = true; m_deliveryS3Uri.assign(value); }
61 inline StartQueryRequest& WithDeliveryS3Uri(const Aws::String& value) { SetDeliveryS3Uri(value); return *this;}
62 inline StartQueryRequest& WithDeliveryS3Uri(Aws::String&& value) { SetDeliveryS3Uri(std::move(value)); return *this;}
63 inline StartQueryRequest& WithDeliveryS3Uri(const char* value) { SetDeliveryS3Uri(value); return *this;}
65
67
70 inline const Aws::String& GetQueryAlias() const{ return m_queryAlias; }
71 inline bool QueryAliasHasBeenSet() const { return m_queryAliasHasBeenSet; }
72 inline void SetQueryAlias(const Aws::String& value) { m_queryAliasHasBeenSet = true; m_queryAlias = value; }
73 inline void SetQueryAlias(Aws::String&& value) { m_queryAliasHasBeenSet = true; m_queryAlias = std::move(value); }
74 inline void SetQueryAlias(const char* value) { m_queryAliasHasBeenSet = true; m_queryAlias.assign(value); }
75 inline StartQueryRequest& WithQueryAlias(const Aws::String& value) { SetQueryAlias(value); return *this;}
76 inline StartQueryRequest& WithQueryAlias(Aws::String&& value) { SetQueryAlias(std::move(value)); return *this;}
77 inline StartQueryRequest& WithQueryAlias(const char* value) { SetQueryAlias(value); return *this;}
79
81
84 inline const Aws::Vector<Aws::String>& GetQueryParameters() const{ return m_queryParameters; }
85 inline bool QueryParametersHasBeenSet() const { return m_queryParametersHasBeenSet; }
86 inline void SetQueryParameters(const Aws::Vector<Aws::String>& value) { m_queryParametersHasBeenSet = true; m_queryParameters = value; }
87 inline void SetQueryParameters(Aws::Vector<Aws::String>&& value) { m_queryParametersHasBeenSet = true; m_queryParameters = std::move(value); }
89 inline StartQueryRequest& WithQueryParameters(Aws::Vector<Aws::String>&& value) { SetQueryParameters(std::move(value)); return *this;}
90 inline StartQueryRequest& AddQueryParameters(const Aws::String& value) { m_queryParametersHasBeenSet = true; m_queryParameters.push_back(value); return *this; }
91 inline StartQueryRequest& AddQueryParameters(Aws::String&& value) { m_queryParametersHasBeenSet = true; m_queryParameters.push_back(std::move(value)); return *this; }
92 inline StartQueryRequest& AddQueryParameters(const char* value) { m_queryParametersHasBeenSet = true; m_queryParameters.push_back(value); return *this; }
94 private:
95
96 Aws::String m_queryStatement;
97 bool m_queryStatementHasBeenSet = false;
98
99 Aws::String m_deliveryS3Uri;
100 bool m_deliveryS3UriHasBeenSet = false;
101
102 Aws::String m_queryAlias;
103 bool m_queryAliasHasBeenSet = false;
104
105 Aws::Vector<Aws::String> m_queryParameters;
106 bool m_queryParametersHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace CloudTrail
111} // namespace Aws
StartQueryRequest & WithDeliveryS3Uri(Aws::String &&value)
const Aws::String & GetQueryStatement() const
const Aws::String & GetDeliveryS3Uri() const
StartQueryRequest & WithQueryParameters(Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartQueryRequest & WithQueryAlias(const Aws::String &value)
StartQueryRequest & WithQueryParameters(const Aws::Vector< Aws::String > &value)
StartQueryRequest & AddQueryParameters(const Aws::String &value)
StartQueryRequest & WithQueryStatement(const Aws::String &value)
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
StartQueryRequest & AddQueryParameters(const char *value)
StartQueryRequest & WithDeliveryS3Uri(const char *value)
StartQueryRequest & WithQueryStatement(const char *value)
void SetDeliveryS3Uri(const Aws::String &value)
const Aws::Vector< Aws::String > & GetQueryParameters() const
StartQueryRequest & WithQueryStatement(Aws::String &&value)
StartQueryRequest & AddQueryParameters(Aws::String &&value)
void SetQueryParameters(Aws::Vector< Aws::String > &&value)
void SetQueryStatement(const Aws::String &value)
StartQueryRequest & WithQueryAlias(Aws::String &&value)
void SetQueryAlias(const Aws::String &value)
StartQueryRequest & WithDeliveryS3Uri(const Aws::String &value)
void SetQueryParameters(const Aws::Vector< Aws::String > &value)
const Aws::String & GetQueryAlias() const
StartQueryRequest & WithQueryAlias(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector