AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OptimizationObjective.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/personalize/model/ObjectiveSensitivity.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Personalize
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_PERSONALIZE_API OptimizationObjective();
39 AWS_PERSONALIZE_API OptimizationObjective(Aws::Utils::Json::JsonView jsonValue);
41 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline const Aws::String& GetItemAttribute() const{ return m_itemAttribute; }
51 inline bool ItemAttributeHasBeenSet() const { return m_itemAttributeHasBeenSet; }
52 inline void SetItemAttribute(const Aws::String& value) { m_itemAttributeHasBeenSet = true; m_itemAttribute = value; }
53 inline void SetItemAttribute(Aws::String&& value) { m_itemAttributeHasBeenSet = true; m_itemAttribute = std::move(value); }
54 inline void SetItemAttribute(const char* value) { m_itemAttributeHasBeenSet = true; m_itemAttribute.assign(value); }
55 inline OptimizationObjective& WithItemAttribute(const Aws::String& value) { SetItemAttribute(value); return *this;}
56 inline OptimizationObjective& WithItemAttribute(Aws::String&& value) { SetItemAttribute(std::move(value)); return *this;}
57 inline OptimizationObjective& WithItemAttribute(const char* value) { SetItemAttribute(value); return *this;}
59
61
65 inline const ObjectiveSensitivity& GetObjectiveSensitivity() const{ return m_objectiveSensitivity; }
66 inline bool ObjectiveSensitivityHasBeenSet() const { return m_objectiveSensitivityHasBeenSet; }
67 inline void SetObjectiveSensitivity(const ObjectiveSensitivity& value) { m_objectiveSensitivityHasBeenSet = true; m_objectiveSensitivity = value; }
68 inline void SetObjectiveSensitivity(ObjectiveSensitivity&& value) { m_objectiveSensitivityHasBeenSet = true; m_objectiveSensitivity = std::move(value); }
72 private:
73
74 Aws::String m_itemAttribute;
75 bool m_itemAttributeHasBeenSet = false;
76
77 ObjectiveSensitivity m_objectiveSensitivity;
78 bool m_objectiveSensitivityHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace Personalize
83} // namespace Aws
void SetObjectiveSensitivity(ObjectiveSensitivity &&value)
AWS_PERSONALIZE_API OptimizationObjective(Aws::Utils::Json::JsonView jsonValue)
OptimizationObjective & WithItemAttribute(const char *value)
const ObjectiveSensitivity & GetObjectiveSensitivity() const
OptimizationObjective & WithObjectiveSensitivity(ObjectiveSensitivity &&value)
void SetObjectiveSensitivity(const ObjectiveSensitivity &value)
OptimizationObjective & WithObjectiveSensitivity(const ObjectiveSensitivity &value)
OptimizationObjective & WithItemAttribute(Aws::String &&value)
AWS_PERSONALIZE_API OptimizationObjective & operator=(Aws::Utils::Json::JsonView jsonValue)
OptimizationObjective & WithItemAttribute(const Aws::String &value)
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue