AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
40 {
41 public:
42 AWS_IAM_API AttachedPolicy();
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
49
51
54 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
55 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
56 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
57 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
58 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
59 inline AttachedPolicy& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
60 inline AttachedPolicy& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
61 inline AttachedPolicy& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
63
65
66 inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
67 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
68 inline void SetPolicyArn(const Aws::String& value) { m_policyArnHasBeenSet = true; m_policyArn = value; }
69 inline void SetPolicyArn(Aws::String&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::move(value); }
70 inline void SetPolicyArn(const char* value) { m_policyArnHasBeenSet = true; m_policyArn.assign(value); }
71 inline AttachedPolicy& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
72 inline AttachedPolicy& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
73 inline AttachedPolicy& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
75 private:
76
77 Aws::String m_policyName;
78 bool m_policyNameHasBeenSet = false;
79
80 Aws::String m_policyArn;
81 bool m_policyArnHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace IAM
86} // namespace Aws
AttachedPolicy & WithPolicyName(const Aws::String &value)
void SetPolicyArn(const char *value)
void SetPolicyName(const char *value)
AttachedPolicy & WithPolicyArn(Aws::String &&value)
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetPolicyArn() const
void SetPolicyArn(const Aws::String &value)
AttachedPolicy & WithPolicyArn(const char *value)
void SetPolicyName(const Aws::String &value)
void SetPolicyName(Aws::String &&value)
AttachedPolicy & WithPolicyName(Aws::String &&value)
AttachedPolicy & WithPolicyArn(const Aws::String &value)
AttachedPolicy & WithPolicyName(const char *value)
AWS_IAM_API AttachedPolicy & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetPolicyName() const
AWS_IAM_API AttachedPolicy(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPolicyArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream