AWS SDK for C++  1.9.105
AWS SDK for C++
GrantAccessResult.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 template<typename RESULT_TYPE>
14 class AmazonWebServiceResult;
15 
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21 } // namespace Json
22 } // namespace Utils
23 namespace OpsWorks
24 {
25 namespace Model
26 {
34  {
35  public:
39 
40 
46  inline const TemporaryCredential& GetTemporaryCredential() const{ return m_temporaryCredential; }
47 
53  inline void SetTemporaryCredential(const TemporaryCredential& value) { m_temporaryCredential = value; }
54 
60  inline void SetTemporaryCredential(TemporaryCredential&& value) { m_temporaryCredential = std::move(value); }
61 
67  inline GrantAccessResult& WithTemporaryCredential(const TemporaryCredential& value) { SetTemporaryCredential(value); return *this;}
68 
74  inline GrantAccessResult& WithTemporaryCredential(TemporaryCredential&& value) { SetTemporaryCredential(std::move(value)); return *this;}
75 
76  private:
77 
78  TemporaryCredential m_temporaryCredential;
79  };
80 
81 } // namespace Model
82 } // namespace OpsWorks
83 } // namespace Aws
Aws::OpsWorks::Model::GrantAccessResult::WithTemporaryCredential
GrantAccessResult & WithTemporaryCredential(const TemporaryCredential &value)
Definition: GrantAccessResult.h:67
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
OpsWorks_EXPORTS.h
TemporaryCredential.h
Aws::OpsWorks::Model::GrantAccessResult::GrantAccessResult
GrantAccessResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::OpsWorks::Model::GrantAccessResult::SetTemporaryCredential
void SetTemporaryCredential(TemporaryCredential &&value)
Definition: GrantAccessResult.h:60
Aws::OpsWorks::Model::GrantAccessResult::GrantAccessResult
GrantAccessResult()
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::GrantAccessResult::operator=
GrantAccessResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::OpsWorks::Model::GrantAccessResult::SetTemporaryCredential
void SetTemporaryCredential(const TemporaryCredential &value)
Definition: GrantAccessResult.h:53
Aws::OpsWorks::Model::GrantAccessResult::GetTemporaryCredential
const TemporaryCredential & GetTemporaryCredential() const
Definition: GrantAccessResult.h:46
Aws::OpsWorks::Model::GrantAccessResult
Definition: GrantAccessResult.h:34
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::TemporaryCredential
Definition: TemporaryCredential.h:33
Aws::OpsWorks::Model::GrantAccessResult::WithTemporaryCredential
GrantAccessResult & WithTemporaryCredential(TemporaryCredential &&value)
Definition: GrantAccessResult.h:74