AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AuthorizationData.h
1
6#pragma once
7#include <aws/ecr-public/ECRPublic_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 ECRPublic
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ECRPUBLIC_API AuthorizationData();
37 AWS_ECRPUBLIC_API AuthorizationData(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ECRPUBLIC_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline const Aws::String& GetAuthorizationToken() const{ return m_authorizationToken; }
50 inline bool AuthorizationTokenHasBeenSet() const { return m_authorizationTokenHasBeenSet; }
51 inline void SetAuthorizationToken(const Aws::String& value) { m_authorizationTokenHasBeenSet = true; m_authorizationToken = value; }
52 inline void SetAuthorizationToken(Aws::String&& value) { m_authorizationTokenHasBeenSet = true; m_authorizationToken = std::move(value); }
53 inline void SetAuthorizationToken(const char* value) { m_authorizationTokenHasBeenSet = true; m_authorizationToken.assign(value); }
54 inline AuthorizationData& WithAuthorizationToken(const Aws::String& value) { SetAuthorizationToken(value); return *this;}
55 inline AuthorizationData& WithAuthorizationToken(Aws::String&& value) { SetAuthorizationToken(std::move(value)); return *this;}
56 inline AuthorizationData& WithAuthorizationToken(const char* value) { SetAuthorizationToken(value); return *this;}
58
60
64 inline const Aws::Utils::DateTime& GetExpiresAt() const{ return m_expiresAt; }
65 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
66 inline void SetExpiresAt(const Aws::Utils::DateTime& value) { m_expiresAtHasBeenSet = true; m_expiresAt = value; }
67 inline void SetExpiresAt(Aws::Utils::DateTime&& value) { m_expiresAtHasBeenSet = true; m_expiresAt = std::move(value); }
68 inline AuthorizationData& WithExpiresAt(const Aws::Utils::DateTime& value) { SetExpiresAt(value); return *this;}
69 inline AuthorizationData& WithExpiresAt(Aws::Utils::DateTime&& value) { SetExpiresAt(std::move(value)); return *this;}
71 private:
72
73 Aws::String m_authorizationToken;
74 bool m_authorizationTokenHasBeenSet = false;
75
76 Aws::Utils::DateTime m_expiresAt;
77 bool m_expiresAtHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace ECRPublic
82} // namespace Aws
AWS_ECRPUBLIC_API AuthorizationData & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAuthorizationToken(const Aws::String &value)
AuthorizationData & WithAuthorizationToken(const char *value)
const Aws::Utils::DateTime & GetExpiresAt() const
AuthorizationData & WithAuthorizationToken(const Aws::String &value)
void SetExpiresAt(const Aws::Utils::DateTime &value)
void SetExpiresAt(Aws::Utils::DateTime &&value)
AuthorizationData & WithExpiresAt(Aws::Utils::DateTime &&value)
AWS_ECRPUBLIC_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAuthorizationToken() const
AuthorizationData & WithExpiresAt(const Aws::Utils::DateTime &value)
void SetAuthorizationToken(Aws::String &&value)
AWS_ECRPUBLIC_API AuthorizationData(Aws::Utils::Json::JsonView jsonValue)
AuthorizationData & WithAuthorizationToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue