AWS SDK for C++

AWS SDK for C++ Version 1.11.871

Loading...
Searching...
No Matches
ReplacementValueEntry.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/iam/IAM_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace IAM {
21namespace Model {
22
30 public:
31 AWS_IAM_API ReplacementValueEntry() = default;
34
35 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
43 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
44 template <typename ValuesT = Aws::Vector<Aws::String>>
45 void SetValues(ValuesT&& value) {
46 m_valuesHasBeenSet = true;
47 m_values = std::forward<ValuesT>(value);
48 }
49 template <typename ValuesT = Aws::Vector<Aws::String>>
51 SetValues(std::forward<ValuesT>(value));
52 return *this;
53 }
54 template <typename ValuesT = Aws::String>
55 ReplacementValueEntry& AddValues(ValuesT&& value) {
56 m_valuesHasBeenSet = true;
57 m_values.emplace_back(std::forward<ValuesT>(value));
58 return *this;
59 }
61 private:
63 bool m_valuesHasBeenSet = false;
64};
65
66} // namespace Model
67} // namespace IAM
68} // namespace Aws
AWS_IAM_API ReplacementValueEntry()=default
AWS_IAM_API ReplacementValueEntry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Aws::String > & GetValues() const
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ReplacementValueEntry & AddValues(ValuesT &&value)
AWS_IAM_API ReplacementValueEntry(const Aws::Utils::Xml::XmlNode &xmlNode)
ReplacementValueEntry & WithValues(ValuesT &&value)
bool ValuesHasBeenSet() const
void SetValues(ValuesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream