AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContextEntry.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 <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iam/model/ContextKeyTypeEnum.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace IAM
24{
25namespace Model
26{
27
39 {
40 public:
41 AWS_IAM_API ContextEntry();
42 AWS_IAM_API ContextEntry(const Aws::Utils::Xml::XmlNode& xmlNode);
43 AWS_IAM_API ContextEntry& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44
45 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
48
50
54 inline const Aws::String& GetContextKeyName() const{ return m_contextKeyName; }
55 inline bool ContextKeyNameHasBeenSet() const { return m_contextKeyNameHasBeenSet; }
56 inline void SetContextKeyName(const Aws::String& value) { m_contextKeyNameHasBeenSet = true; m_contextKeyName = value; }
57 inline void SetContextKeyName(Aws::String&& value) { m_contextKeyNameHasBeenSet = true; m_contextKeyName = std::move(value); }
58 inline void SetContextKeyName(const char* value) { m_contextKeyNameHasBeenSet = true; m_contextKeyName.assign(value); }
59 inline ContextEntry& WithContextKeyName(const Aws::String& value) { SetContextKeyName(value); return *this;}
60 inline ContextEntry& WithContextKeyName(Aws::String&& value) { SetContextKeyName(std::move(value)); return *this;}
61 inline ContextEntry& WithContextKeyName(const char* value) { SetContextKeyName(value); return *this;}
63
65
70 inline const Aws::Vector<Aws::String>& GetContextKeyValues() const{ return m_contextKeyValues; }
71 inline bool ContextKeyValuesHasBeenSet() const { return m_contextKeyValuesHasBeenSet; }
72 inline void SetContextKeyValues(const Aws::Vector<Aws::String>& value) { m_contextKeyValuesHasBeenSet = true; m_contextKeyValues = value; }
73 inline void SetContextKeyValues(Aws::Vector<Aws::String>&& value) { m_contextKeyValuesHasBeenSet = true; m_contextKeyValues = std::move(value); }
75 inline ContextEntry& WithContextKeyValues(Aws::Vector<Aws::String>&& value) { SetContextKeyValues(std::move(value)); return *this;}
76 inline ContextEntry& AddContextKeyValues(const Aws::String& value) { m_contextKeyValuesHasBeenSet = true; m_contextKeyValues.push_back(value); return *this; }
77 inline ContextEntry& AddContextKeyValues(Aws::String&& value) { m_contextKeyValuesHasBeenSet = true; m_contextKeyValues.push_back(std::move(value)); return *this; }
78 inline ContextEntry& AddContextKeyValues(const char* value) { m_contextKeyValuesHasBeenSet = true; m_contextKeyValues.push_back(value); return *this; }
80
82
86 inline const ContextKeyTypeEnum& GetContextKeyType() const{ return m_contextKeyType; }
87 inline bool ContextKeyTypeHasBeenSet() const { return m_contextKeyTypeHasBeenSet; }
88 inline void SetContextKeyType(const ContextKeyTypeEnum& value) { m_contextKeyTypeHasBeenSet = true; m_contextKeyType = value; }
89 inline void SetContextKeyType(ContextKeyTypeEnum&& value) { m_contextKeyTypeHasBeenSet = true; m_contextKeyType = std::move(value); }
90 inline ContextEntry& WithContextKeyType(const ContextKeyTypeEnum& value) { SetContextKeyType(value); return *this;}
91 inline ContextEntry& WithContextKeyType(ContextKeyTypeEnum&& value) { SetContextKeyType(std::move(value)); return *this;}
93 private:
94
95 Aws::String m_contextKeyName;
96 bool m_contextKeyNameHasBeenSet = false;
97
98 Aws::Vector<Aws::String> m_contextKeyValues;
99 bool m_contextKeyValuesHasBeenSet = false;
100
101 ContextKeyTypeEnum m_contextKeyType;
102 bool m_contextKeyTypeHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace IAM
107} // namespace Aws
ContextEntry & AddContextKeyValues(const char *value)
ContextEntry & WithContextKeyValues(const Aws::Vector< Aws::String > &value)
const ContextKeyTypeEnum & GetContextKeyType() const
void SetContextKeyValues(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetContextKeyValues() const
void SetContextKeyName(const char *value)
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ContextEntry & WithContextKeyValues(Aws::Vector< Aws::String > &&value)
void SetContextKeyType(const ContextKeyTypeEnum &value)
AWS_IAM_API ContextEntry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ContextEntry & AddContextKeyValues(const Aws::String &value)
ContextEntry & WithContextKeyType(const ContextKeyTypeEnum &value)
const Aws::String & GetContextKeyName() const
void SetContextKeyValues(const Aws::Vector< Aws::String > &value)
ContextEntry & AddContextKeyValues(Aws::String &&value)
void SetContextKeyName(const Aws::String &value)
void SetContextKeyName(Aws::String &&value)
bool ContextKeyValuesHasBeenSet() const
AWS_IAM_API ContextEntry(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_IAM_API ContextEntry()
bool ContextKeyTypeHasBeenSet() const
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ContextEntry & WithContextKeyName(const Aws::String &value)
ContextEntry & WithContextKeyName(const char *value)
ContextEntry & WithContextKeyName(Aws::String &&value)
void SetContextKeyType(ContextKeyTypeEnum &&value)
ContextEntry & WithContextKeyType(ContextKeyTypeEnum &&value)
bool ContextKeyNameHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream