AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateAccessTokenRequest.h
1
6#pragma once
7#include <aws/codecatalyst/CodeCatalyst_EXPORTS.h>
8#include <aws/codecatalyst/CodeCatalystRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CodeCatalyst
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CODECATALYST_API CreateAccessTokenRequest() = default;
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 "CreateAccessToken"; }
32
33 AWS_CODECATALYST_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template<typename NameT = Aws::String>
43 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
44 template<typename NameT = Aws::String>
45 CreateAccessTokenRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
47
49
54 inline const Aws::Utils::DateTime& GetExpiresTime() const { return m_expiresTime; }
55 inline bool ExpiresTimeHasBeenSet() const { return m_expiresTimeHasBeenSet; }
56 template<typename ExpiresTimeT = Aws::Utils::DateTime>
57 void SetExpiresTime(ExpiresTimeT&& value) { m_expiresTimeHasBeenSet = true; m_expiresTime = std::forward<ExpiresTimeT>(value); }
58 template<typename ExpiresTimeT = Aws::Utils::DateTime>
59 CreateAccessTokenRequest& WithExpiresTime(ExpiresTimeT&& value) { SetExpiresTime(std::forward<ExpiresTimeT>(value)); return *this;}
61 private:
62
63 Aws::String m_name;
64 bool m_nameHasBeenSet = false;
65
66 Aws::Utils::DateTime m_expiresTime{};
67 bool m_expiresTimeHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace CodeCatalyst
72} // namespace Aws
AWS_CODECATALYST_API CreateAccessTokenRequest()=default
CreateAccessTokenRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
CreateAccessTokenRequest & WithExpiresTime(ExpiresTimeT &&value)
AWS_CODECATALYST_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String