AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetUserPolicyResult.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iam/model/ResponseMetadata.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Xml
20{
21 class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace IAM
25{
26namespace Model
27{
35 {
36 public:
37 AWS_IAM_API GetUserPolicyResult();
40
41
43
46 inline const Aws::String& GetUserName() const{ return m_userName; }
47 inline void SetUserName(const Aws::String& value) { m_userName = value; }
48 inline void SetUserName(Aws::String&& value) { m_userName = std::move(value); }
49 inline void SetUserName(const char* value) { m_userName.assign(value); }
50 inline GetUserPolicyResult& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
51 inline GetUserPolicyResult& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
52 inline GetUserPolicyResult& WithUserName(const char* value) { SetUserName(value); return *this;}
54
56
59 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
60 inline void SetPolicyName(const Aws::String& value) { m_policyName = value; }
61 inline void SetPolicyName(Aws::String&& value) { m_policyName = std::move(value); }
62 inline void SetPolicyName(const char* value) { m_policyName.assign(value); }
63 inline GetUserPolicyResult& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
64 inline GetUserPolicyResult& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
65 inline GetUserPolicyResult& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
67
69
75 inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
76 inline void SetPolicyDocument(const Aws::String& value) { m_policyDocument = value; }
77 inline void SetPolicyDocument(Aws::String&& value) { m_policyDocument = std::move(value); }
78 inline void SetPolicyDocument(const char* value) { m_policyDocument.assign(value); }
79 inline GetUserPolicyResult& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
80 inline GetUserPolicyResult& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
81 inline GetUserPolicyResult& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
83
85
86 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
87 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
88 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
90 inline GetUserPolicyResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
92 private:
93
94 Aws::String m_userName;
95
96 Aws::String m_policyName;
97
98 Aws::String m_policyDocument;
99
100 ResponseMetadata m_responseMetadata;
101 };
102
103} // namespace Model
104} // namespace IAM
105} // namespace Aws
void SetPolicyName(const Aws::String &value)
const Aws::String & GetUserName() const
GetUserPolicyResult & WithPolicyName(const Aws::String &value)
GetUserPolicyResult & WithPolicyName(const char *value)
GetUserPolicyResult & WithPolicyDocument(const Aws::String &value)
GetUserPolicyResult & WithUserName(Aws::String &&value)
void SetResponseMetadata(ResponseMetadata &&value)
const Aws::String & GetPolicyName() const
GetUserPolicyResult & WithPolicyDocument(const char *value)
AWS_IAM_API GetUserPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetPolicyDocument(const Aws::String &value)
void SetResponseMetadata(const ResponseMetadata &value)
GetUserPolicyResult & WithUserName(const char *value)
GetUserPolicyResult & WithResponseMetadata(ResponseMetadata &&value)
const Aws::String & GetPolicyDocument() const
GetUserPolicyResult & WithPolicyName(Aws::String &&value)
void SetPolicyDocument(Aws::String &&value)
AWS_IAM_API GetUserPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetUserPolicyResult & WithPolicyDocument(Aws::String &&value)
GetUserPolicyResult & WithResponseMetadata(const ResponseMetadata &value)
void SetPolicyName(Aws::String &&value)
GetUserPolicyResult & WithUserName(const Aws::String &value)
void SetUserName(const Aws::String &value)
const ResponseMetadata & GetResponseMetadata() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument