AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PolicyDetail.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace IAM
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_IAM_API PolicyDetail();
37 AWS_IAM_API PolicyDetail(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_IAM_API PolicyDetail& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
49 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
50 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
51 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
52 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
53 inline PolicyDetail& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
54 inline PolicyDetail& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
55 inline PolicyDetail& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
57
59
62 inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
63 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
64 inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
65 inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::move(value); }
66 inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); }
67 inline PolicyDetail& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
68 inline PolicyDetail& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
69 inline PolicyDetail& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
71 private:
72
73 Aws::String m_policyName;
74 bool m_policyNameHasBeenSet = false;
75
76 Aws::String m_policyDocument;
77 bool m_policyDocumentHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace IAM
82} // namespace Aws
void SetPolicyName(Aws::String &&value)
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetPolicyName(const Aws::String &value)
PolicyDetail & WithPolicyDocument(const char *value)
void SetPolicyName(const char *value)
void SetPolicyDocument(Aws::String &&value)
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
PolicyDetail & WithPolicyDocument(Aws::String &&value)
PolicyDetail & WithPolicyName(const char *value)
void SetPolicyDocument(const Aws::String &value)
bool PolicyDocumentHasBeenSet() const
PolicyDetail & WithPolicyName(const Aws::String &value)
AWS_IAM_API PolicyDetail & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
PolicyDetail & WithPolicyName(Aws::String &&value)
const Aws::String & GetPolicyDocument() const
AWS_IAM_API PolicyDetail(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPolicyDocument(const char *value)
const Aws::String & GetPolicyName() const
PolicyDetail & WithPolicyDocument(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream