AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
AttachedPolicy.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iam/IAM_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace IAM {
20namespace Model {
21
41 public:
42 AWS_IAM_API AttachedPolicy() = default;
43 AWS_IAM_API AttachedPolicy(const Aws::Utils::Xml::XmlNode& xmlNode);
45
46 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
48
50
53 inline const Aws::String& GetPolicyName() const { return m_policyName; }
54 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
55 template <typename PolicyNameT = Aws::String>
56 void SetPolicyName(PolicyNameT&& value) {
57 m_policyNameHasBeenSet = true;
58 m_policyName = std::forward<PolicyNameT>(value);
59 }
60 template <typename PolicyNameT = Aws::String>
61 AttachedPolicy& WithPolicyName(PolicyNameT&& value) {
62 SetPolicyName(std::forward<PolicyNameT>(value));
63 return *this;
64 }
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) {
73 m_policyArnHasBeenSet = true;
74 m_policyArn = std::forward<PolicyArnT>(value);
75 }
76 template <typename PolicyArnT = Aws::String>
77 AttachedPolicy& WithPolicyArn(PolicyArnT&& value) {
78 SetPolicyArn(std::forward<PolicyArnT>(value));
79 return *this;
80 }
82 private:
83 Aws::String m_policyName;
84
85 Aws::String m_policyArn;
86 bool m_policyNameHasBeenSet = false;
87 bool m_policyArnHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace IAM
92} // 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