AWS SDK for C++  1.8.55
AWS SDK for C++
UpdateRoleDescriptionResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iam/IAM_EXPORTS.h>
8 #include <aws/iam/model/Role.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlDocument;
22 } // namespace Xml
23 } // namespace Utils
24 namespace IAM
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
39  inline const Role& GetRole() const{ return m_role; }
40 
44  inline void SetRole(const Role& value) { m_role = value; }
45 
49  inline void SetRole(Role&& value) { m_role = std::move(value); }
50 
54  inline UpdateRoleDescriptionResult& WithRole(const Role& value) { SetRole(value); return *this;}
55 
59  inline UpdateRoleDescriptionResult& WithRole(Role&& value) { SetRole(std::move(value)); return *this;}
60 
61 
62 
63  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
64 
65 
66  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
67 
68 
69  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
70 
71 
72  inline UpdateRoleDescriptionResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
73 
74 
75  inline UpdateRoleDescriptionResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
76 
77  private:
78 
79  Role m_role;
80 
81  ResponseMetadata m_responseMetadata;
82  };
83 
84 } // namespace Model
85 } // namespace IAM
86 } // namespace Aws
UpdateRoleDescriptionResult & WithResponseMetadata(ResponseMetadata &&value)
UpdateRoleDescriptionResult & WithRole(Role &&value)
UpdateRoleDescriptionResult & WithResponseMetadata(const ResponseMetadata &value)
UpdateRoleDescriptionResult & WithRole(const Role &value)
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:28
void SetResponseMetadata(const ResponseMetadata &value)