AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AccessTokenSummary.h
1
6#pragma once
7#include <aws/codecatalyst/CodeCatalyst_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeCatalyst
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODECATALYST_API AccessTokenSummary();
37 AWS_CODECATALYST_API AccessTokenSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetId() const{ return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
49 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
50 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
51 inline AccessTokenSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
52 inline AccessTokenSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
53 inline AccessTokenSummary& WithId(const char* value) { SetId(value); return *this;}
55
57
60 inline const Aws::String& GetName() const{ return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
63 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 inline AccessTokenSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
66 inline AccessTokenSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
67 inline AccessTokenSummary& WithName(const char* value) { SetName(value); return *this;}
69
71
76 inline const Aws::Utils::DateTime& GetExpiresTime() const{ return m_expiresTime; }
77 inline bool ExpiresTimeHasBeenSet() const { return m_expiresTimeHasBeenSet; }
78 inline void SetExpiresTime(const Aws::Utils::DateTime& value) { m_expiresTimeHasBeenSet = true; m_expiresTime = value; }
79 inline void SetExpiresTime(Aws::Utils::DateTime&& value) { m_expiresTimeHasBeenSet = true; m_expiresTime = std::move(value); }
80 inline AccessTokenSummary& WithExpiresTime(const Aws::Utils::DateTime& value) { SetExpiresTime(value); return *this;}
81 inline AccessTokenSummary& WithExpiresTime(Aws::Utils::DateTime&& value) { SetExpiresTime(std::move(value)); return *this;}
83 private:
84
85 Aws::String m_id;
86 bool m_idHasBeenSet = false;
87
88 Aws::String m_name;
89 bool m_nameHasBeenSet = false;
90
91 Aws::Utils::DateTime m_expiresTime;
92 bool m_expiresTimeHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace CodeCatalyst
97} // namespace Aws
AccessTokenSummary & WithName(const char *value)
AWS_CODECATALYST_API AccessTokenSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetExpiresTime() const
AccessTokenSummary & WithId(Aws::String &&value)
AccessTokenSummary & WithExpiresTime(Aws::Utils::DateTime &&value)
void SetExpiresTime(Aws::Utils::DateTime &&value)
AccessTokenSummary & WithExpiresTime(const Aws::Utils::DateTime &value)
void SetExpiresTime(const Aws::Utils::DateTime &value)
AWS_CODECATALYST_API AccessTokenSummary(Aws::Utils::Json::JsonView jsonValue)
AccessTokenSummary & WithName(Aws::String &&value)
AccessTokenSummary & WithName(const Aws::String &value)
AccessTokenSummary & WithId(const char *value)
AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const
AccessTokenSummary & WithId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue