AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AttachedPolicy.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
45 {
46 public:
47 AWS_IAM_API AttachedPolicy() = default;
48 AWS_IAM_API AttachedPolicy(const Aws::Utils::Xml::XmlNode& xmlNode);
50
51 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
52 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
53
54
56
59 inline const Aws::String& GetPolicyName() const { return m_policyName; }
60 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
61 template<typename PolicyNameT = Aws::String>
62 void SetPolicyName(PolicyNameT&& value) { m_policyNameHasBeenSet = true; m_policyName = std::forward<PolicyNameT>(value); }
63 template<typename PolicyNameT = Aws::String>
64 AttachedPolicy& WithPolicyName(PolicyNameT&& value) { SetPolicyName(std::forward<PolicyNameT>(value)); return *this;}
66
68
69 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
70 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
71 template<typename PolicyArnT = Aws::String>
72 void SetPolicyArn(PolicyArnT&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::forward<PolicyArnT>(value); }
73 template<typename PolicyArnT = Aws::String>
74 AttachedPolicy& WithPolicyArn(PolicyArnT&& value) { SetPolicyArn(std::forward<PolicyArnT>(value)); return *this;}
76 private:
77
78 Aws::String m_policyName;
79 bool m_policyNameHasBeenSet = false;
80
81 Aws::String m_policyArn;
82 bool m_policyArnHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace IAM
87} // namespace Aws
void SetPolicyName(PolicyNameT &&value)
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_IAM_API AttachedPolicy()=default
const Aws::String & GetPolicyArn() const
void SetPolicyArn(PolicyArnT &&value)
AWS_IAM_API AttachedPolicy & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AttachedPolicy & WithPolicyArn(PolicyArnT &&value)
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AttachedPolicy & WithPolicyName(PolicyNameT &&value)
const Aws::String & GetPolicyName() const
AWS_IAM_API AttachedPolicy(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream