1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/clouddirectory/CloudDirectory_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSMap.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 template<typename RESULT_TYPE> 15 class AmazonWebServiceResult; 16 17 namespace Utils 18 { 19 namespace Json 20 { 21 class JsonValue; 22 } // namespace Json 23 } // namespace Utils 24 namespace CloudDirectory 25 { 26 namespace Model 27 { 28 class AWS_CLOUDDIRECTORY_API ListObjectChildrenResult 29 { 30 public: 31 ListObjectChildrenResult(); 32 ListObjectChildrenResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 33 ListObjectChildrenResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 34 35 36 /** 37 * <p>Children structure, which is a map with key as the <code>LinkName</code> and 38 * <code>ObjectIdentifier</code> as the value.</p> 39 */ GetChildren()40 inline const Aws::Map<Aws::String, Aws::String>& GetChildren() const{ return m_children; } 41 42 /** 43 * <p>Children structure, which is a map with key as the <code>LinkName</code> and 44 * <code>ObjectIdentifier</code> as the value.</p> 45 */ SetChildren(const Aws::Map<Aws::String,Aws::String> & value)46 inline void SetChildren(const Aws::Map<Aws::String, Aws::String>& value) { m_children = value; } 47 48 /** 49 * <p>Children structure, which is a map with key as the <code>LinkName</code> and 50 * <code>ObjectIdentifier</code> as the value.</p> 51 */ SetChildren(Aws::Map<Aws::String,Aws::String> && value)52 inline void SetChildren(Aws::Map<Aws::String, Aws::String>&& value) { m_children = std::move(value); } 53 54 /** 55 * <p>Children structure, which is a map with key as the <code>LinkName</code> and 56 * <code>ObjectIdentifier</code> as the value.</p> 57 */ WithChildren(const Aws::Map<Aws::String,Aws::String> & value)58 inline ListObjectChildrenResult& WithChildren(const Aws::Map<Aws::String, Aws::String>& value) { SetChildren(value); return *this;} 59 60 /** 61 * <p>Children structure, which is a map with key as the <code>LinkName</code> and 62 * <code>ObjectIdentifier</code> as the value.</p> 63 */ WithChildren(Aws::Map<Aws::String,Aws::String> && value)64 inline ListObjectChildrenResult& WithChildren(Aws::Map<Aws::String, Aws::String>&& value) { SetChildren(std::move(value)); return *this;} 65 66 /** 67 * <p>Children structure, which is a map with key as the <code>LinkName</code> and 68 * <code>ObjectIdentifier</code> as the value.</p> 69 */ AddChildren(const Aws::String & key,const Aws::String & value)70 inline ListObjectChildrenResult& AddChildren(const Aws::String& key, const Aws::String& value) { m_children.emplace(key, value); return *this; } 71 72 /** 73 * <p>Children structure, which is a map with key as the <code>LinkName</code> and 74 * <code>ObjectIdentifier</code> as the value.</p> 75 */ AddChildren(Aws::String && key,const Aws::String & value)76 inline ListObjectChildrenResult& AddChildren(Aws::String&& key, const Aws::String& value) { m_children.emplace(std::move(key), value); return *this; } 77 78 /** 79 * <p>Children structure, which is a map with key as the <code>LinkName</code> and 80 * <code>ObjectIdentifier</code> as the value.</p> 81 */ AddChildren(const Aws::String & key,Aws::String && value)82 inline ListObjectChildrenResult& AddChildren(const Aws::String& key, Aws::String&& value) { m_children.emplace(key, std::move(value)); return *this; } 83 84 /** 85 * <p>Children structure, which is a map with key as the <code>LinkName</code> and 86 * <code>ObjectIdentifier</code> as the value.</p> 87 */ AddChildren(Aws::String && key,Aws::String && value)88 inline ListObjectChildrenResult& AddChildren(Aws::String&& key, Aws::String&& value) { m_children.emplace(std::move(key), std::move(value)); return *this; } 89 90 /** 91 * <p>Children structure, which is a map with key as the <code>LinkName</code> and 92 * <code>ObjectIdentifier</code> as the value.</p> 93 */ AddChildren(const char * key,Aws::String && value)94 inline ListObjectChildrenResult& AddChildren(const char* key, Aws::String&& value) { m_children.emplace(key, std::move(value)); return *this; } 95 96 /** 97 * <p>Children structure, which is a map with key as the <code>LinkName</code> and 98 * <code>ObjectIdentifier</code> as the value.</p> 99 */ AddChildren(Aws::String && key,const char * value)100 inline ListObjectChildrenResult& AddChildren(Aws::String&& key, const char* value) { m_children.emplace(std::move(key), value); return *this; } 101 102 /** 103 * <p>Children structure, which is a map with key as the <code>LinkName</code> and 104 * <code>ObjectIdentifier</code> as the value.</p> 105 */ AddChildren(const char * key,const char * value)106 inline ListObjectChildrenResult& AddChildren(const char* key, const char* value) { m_children.emplace(key, value); return *this; } 107 108 109 /** 110 * <p>The pagination token.</p> 111 */ GetNextToken()112 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 113 114 /** 115 * <p>The pagination token.</p> 116 */ SetNextToken(const Aws::String & value)117 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } 118 119 /** 120 * <p>The pagination token.</p> 121 */ SetNextToken(Aws::String && value)122 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } 123 124 /** 125 * <p>The pagination token.</p> 126 */ SetNextToken(const char * value)127 inline void SetNextToken(const char* value) { m_nextToken.assign(value); } 128 129 /** 130 * <p>The pagination token.</p> 131 */ WithNextToken(const Aws::String & value)132 inline ListObjectChildrenResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 133 134 /** 135 * <p>The pagination token.</p> 136 */ WithNextToken(Aws::String && value)137 inline ListObjectChildrenResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 138 139 /** 140 * <p>The pagination token.</p> 141 */ WithNextToken(const char * value)142 inline ListObjectChildrenResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} 143 144 private: 145 146 Aws::Map<Aws::String, Aws::String> m_children; 147 148 Aws::String m_nextToken; 149 }; 150 151 } // namespace Model 152 } // namespace CloudDirectory 153 } // namespace Aws 154