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/customer-profiles/CustomerProfiles_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <aws/core/utils/memory/stl/AWSVector.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 CustomerProfiles 25 { 26 namespace Model 27 { 28 class AWS_CUSTOMERPROFILES_API AddProfileKeyResult 29 { 30 public: 31 AddProfileKeyResult(); 32 AddProfileKeyResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 33 AddProfileKeyResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 34 35 36 /** 37 * <p>A searchable identifier of a customer profile.</p> 38 */ GetKeyName()39 inline const Aws::String& GetKeyName() const{ return m_keyName; } 40 41 /** 42 * <p>A searchable identifier of a customer profile.</p> 43 */ SetKeyName(const Aws::String & value)44 inline void SetKeyName(const Aws::String& value) { m_keyName = value; } 45 46 /** 47 * <p>A searchable identifier of a customer profile.</p> 48 */ SetKeyName(Aws::String && value)49 inline void SetKeyName(Aws::String&& value) { m_keyName = std::move(value); } 50 51 /** 52 * <p>A searchable identifier of a customer profile.</p> 53 */ SetKeyName(const char * value)54 inline void SetKeyName(const char* value) { m_keyName.assign(value); } 55 56 /** 57 * <p>A searchable identifier of a customer profile.</p> 58 */ WithKeyName(const Aws::String & value)59 inline AddProfileKeyResult& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;} 60 61 /** 62 * <p>A searchable identifier of a customer profile.</p> 63 */ WithKeyName(Aws::String && value)64 inline AddProfileKeyResult& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;} 65 66 /** 67 * <p>A searchable identifier of a customer profile.</p> 68 */ WithKeyName(const char * value)69 inline AddProfileKeyResult& WithKeyName(const char* value) { SetKeyName(value); return *this;} 70 71 72 /** 73 * <p>A list of key values.</p> 74 */ GetValues()75 inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; } 76 77 /** 78 * <p>A list of key values.</p> 79 */ SetValues(const Aws::Vector<Aws::String> & value)80 inline void SetValues(const Aws::Vector<Aws::String>& value) { m_values = value; } 81 82 /** 83 * <p>A list of key values.</p> 84 */ SetValues(Aws::Vector<Aws::String> && value)85 inline void SetValues(Aws::Vector<Aws::String>&& value) { m_values = std::move(value); } 86 87 /** 88 * <p>A list of key values.</p> 89 */ WithValues(const Aws::Vector<Aws::String> & value)90 inline AddProfileKeyResult& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;} 91 92 /** 93 * <p>A list of key values.</p> 94 */ WithValues(Aws::Vector<Aws::String> && value)95 inline AddProfileKeyResult& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;} 96 97 /** 98 * <p>A list of key values.</p> 99 */ AddValues(const Aws::String & value)100 inline AddProfileKeyResult& AddValues(const Aws::String& value) { m_values.push_back(value); return *this; } 101 102 /** 103 * <p>A list of key values.</p> 104 */ AddValues(Aws::String && value)105 inline AddProfileKeyResult& AddValues(Aws::String&& value) { m_values.push_back(std::move(value)); return *this; } 106 107 /** 108 * <p>A list of key values.</p> 109 */ AddValues(const char * value)110 inline AddProfileKeyResult& AddValues(const char* value) { m_values.push_back(value); return *this; } 111 112 private: 113 114 Aws::String m_keyName; 115 116 Aws::Vector<Aws::String> m_values; 117 }; 118 119 } // namespace Model 120 } // namespace CustomerProfiles 121 } // namespace Aws 122