AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GrantAccessResult.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/opsworks/model/TemporaryCredential.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace OpsWorks
25{
26namespace Model
27{
35 {
36 public:
37 AWS_OPSWORKS_API GrantAccessResult();
40
41
43
48 inline const TemporaryCredential& GetTemporaryCredential() const{ return m_temporaryCredential; }
49 inline void SetTemporaryCredential(const TemporaryCredential& value) { m_temporaryCredential = value; }
50 inline void SetTemporaryCredential(TemporaryCredential&& value) { m_temporaryCredential = std::move(value); }
52 inline GrantAccessResult& WithTemporaryCredential(TemporaryCredential&& value) { SetTemporaryCredential(std::move(value)); return *this;}
54
56
57 inline const Aws::String& GetRequestId() const{ return m_requestId; }
58 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
59 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
60 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
61 inline GrantAccessResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
62 inline GrantAccessResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
63 inline GrantAccessResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
65 private:
66
67 TemporaryCredential m_temporaryCredential;
68
69 Aws::String m_requestId;
70 };
71
72} // namespace Model
73} // namespace OpsWorks
74} // namespace Aws
GrantAccessResult & WithTemporaryCredential(TemporaryCredential &&value)
GrantAccessResult & WithTemporaryCredential(const TemporaryCredential &value)
void SetTemporaryCredential(TemporaryCredential &&value)
void SetRequestId(const Aws::String &value)
GrantAccessResult & WithRequestId(const Aws::String &value)
GrantAccessResult & WithRequestId(Aws::String &&value)
AWS_OPSWORKS_API GrantAccessResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetRequestId() const
GrantAccessResult & WithRequestId(const char *value)
AWS_OPSWORKS_API GrantAccessResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetTemporaryCredential(const TemporaryCredential &value)
const TemporaryCredential & GetTemporaryCredential() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue