/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CustomerProfiles { namespace Model { /** *

A data type pair that consists of a KeyName and * Values list that were used to find a profile returned in response * to a SearchProfiles * request.

See Also:

AWS * API Reference

*/ class FoundByKeyValue { public: AWS_CUSTOMERPROFILES_API FoundByKeyValue(); AWS_CUSTOMERPROFILES_API FoundByKeyValue(Aws::Utils::Json::JsonView jsonValue); AWS_CUSTOMERPROFILES_API FoundByKeyValue& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A searchable identifier of a customer profile.

*/ inline const Aws::String& GetKeyName() const{ return m_keyName; } /** *

A searchable identifier of a customer profile.

*/ inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; } /** *

A searchable identifier of a customer profile.

*/ inline void SetKeyName(const Aws::String& value) { m_keyNameHasBeenSet = true; m_keyName = value; } /** *

A searchable identifier of a customer profile.

*/ inline void SetKeyName(Aws::String&& value) { m_keyNameHasBeenSet = true; m_keyName = std::move(value); } /** *

A searchable identifier of a customer profile.

*/ inline void SetKeyName(const char* value) { m_keyNameHasBeenSet = true; m_keyName.assign(value); } /** *

A searchable identifier of a customer profile.

*/ inline FoundByKeyValue& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;} /** *

A searchable identifier of a customer profile.

*/ inline FoundByKeyValue& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;} /** *

A searchable identifier of a customer profile.

*/ inline FoundByKeyValue& WithKeyName(const char* value) { SetKeyName(value); return *this;} /** *

A list of key values.

*/ inline const Aws::Vector& GetValues() const{ return m_values; } /** *

A list of key values.

*/ inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; } /** *

A list of key values.

*/ inline void SetValues(const Aws::Vector& value) { m_valuesHasBeenSet = true; m_values = value; } /** *

A list of key values.

*/ inline void SetValues(Aws::Vector&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); } /** *

A list of key values.

*/ inline FoundByKeyValue& WithValues(const Aws::Vector& value) { SetValues(value); return *this;} /** *

A list of key values.

*/ inline FoundByKeyValue& WithValues(Aws::Vector&& value) { SetValues(std::move(value)); return *this;} /** *

A list of key values.

*/ inline FoundByKeyValue& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } /** *

A list of key values.

*/ inline FoundByKeyValue& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; } /** *

A list of key values.

*/ inline FoundByKeyValue& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } private: Aws::String m_keyName; bool m_keyNameHasBeenSet = false; Aws::Vector m_values; bool m_valuesHasBeenSet = false; }; } // namespace Model } // namespace CustomerProfiles } // namespace Aws