AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
GenerateAccessLogsRequest.h
1
6#pragma once
7#include <aws/amplify/Amplify_EXPORTS.h>
8#include <aws/amplify/AmplifyRequest.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Amplify
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_AMPLIFY_API GenerateAccessLogsRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "GenerateAccessLogs"; }
36
37 AWS_AMPLIFY_API Aws::String SerializePayload() const override;
38
39
41
45 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
46 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
47 template<typename StartTimeT = Aws::Utils::DateTime>
48 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
49 template<typename StartTimeT = Aws::Utils::DateTime>
50 GenerateAccessLogsRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
52
54
58 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
59 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
60 template<typename EndTimeT = Aws::Utils::DateTime>
61 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
62 template<typename EndTimeT = Aws::Utils::DateTime>
63 GenerateAccessLogsRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
65
67
70 inline const Aws::String& GetDomainName() const { return m_domainName; }
71 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
72 template<typename DomainNameT = Aws::String>
73 void SetDomainName(DomainNameT&& value) { m_domainNameHasBeenSet = true; m_domainName = std::forward<DomainNameT>(value); }
74 template<typename DomainNameT = Aws::String>
75 GenerateAccessLogsRequest& WithDomainName(DomainNameT&& value) { SetDomainName(std::forward<DomainNameT>(value)); return *this;}
77
79
82 inline const Aws::String& GetAppId() const { return m_appId; }
83 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
84 template<typename AppIdT = Aws::String>
85 void SetAppId(AppIdT&& value) { m_appIdHasBeenSet = true; m_appId = std::forward<AppIdT>(value); }
86 template<typename AppIdT = Aws::String>
87 GenerateAccessLogsRequest& WithAppId(AppIdT&& value) { SetAppId(std::forward<AppIdT>(value)); return *this;}
89 private:
90
91 Aws::Utils::DateTime m_startTime{};
92 bool m_startTimeHasBeenSet = false;
93
94 Aws::Utils::DateTime m_endTime{};
95 bool m_endTimeHasBeenSet = false;
96
97 Aws::String m_domainName;
98 bool m_domainNameHasBeenSet = false;
99
100 Aws::String m_appId;
101 bool m_appIdHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace Amplify
106} // namespace Aws
GenerateAccessLogsRequest & WithAppId(AppIdT &&value)
GenerateAccessLogsRequest & WithEndTime(EndTimeT &&value)
GenerateAccessLogsRequest & WithDomainName(DomainNameT &&value)
const Aws::Utils::DateTime & GetStartTime() const
GenerateAccessLogsRequest & WithStartTime(StartTimeT &&value)
AWS_AMPLIFY_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_AMPLIFY_API GenerateAccessLogsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String