AWS SDK for C++  1.9.108
AWS SDK for C++
OptimizationObjective.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Personalize
23 {
24 namespace Model
25 {
26 
36  {
37  public:
42 
43 
49  inline const Aws::String& GetItemAttribute() const{ return m_itemAttribute; }
50 
56  inline bool ItemAttributeHasBeenSet() const { return m_itemAttributeHasBeenSet; }
57 
63  inline void SetItemAttribute(const Aws::String& value) { m_itemAttributeHasBeenSet = true; m_itemAttribute = value; }
64 
70  inline void SetItemAttribute(Aws::String&& value) { m_itemAttributeHasBeenSet = true; m_itemAttribute = std::move(value); }
71 
77  inline void SetItemAttribute(const char* value) { m_itemAttributeHasBeenSet = true; m_itemAttribute.assign(value); }
78 
84  inline OptimizationObjective& WithItemAttribute(const Aws::String& value) { SetItemAttribute(value); return *this;}
85 
91  inline OptimizationObjective& WithItemAttribute(Aws::String&& value) { SetItemAttribute(std::move(value)); return *this;}
92 
98  inline OptimizationObjective& WithItemAttribute(const char* value) { SetItemAttribute(value); return *this;}
99 
100 
105  inline const ObjectiveSensitivity& GetObjectiveSensitivity() const{ return m_objectiveSensitivity; }
106 
111  inline bool ObjectiveSensitivityHasBeenSet() const { return m_objectiveSensitivityHasBeenSet; }
112 
117  inline void SetObjectiveSensitivity(const ObjectiveSensitivity& value) { m_objectiveSensitivityHasBeenSet = true; m_objectiveSensitivity = value; }
118 
123  inline void SetObjectiveSensitivity(ObjectiveSensitivity&& value) { m_objectiveSensitivityHasBeenSet = true; m_objectiveSensitivity = std::move(value); }
124 
129  inline OptimizationObjective& WithObjectiveSensitivity(const ObjectiveSensitivity& value) { SetObjectiveSensitivity(value); return *this;}
130 
135  inline OptimizationObjective& WithObjectiveSensitivity(ObjectiveSensitivity&& value) { SetObjectiveSensitivity(std::move(value)); return *this;}
136 
137  private:
138 
139  Aws::String m_itemAttribute;
140  bool m_itemAttributeHasBeenSet;
141 
142  ObjectiveSensitivity m_objectiveSensitivity;
143  bool m_objectiveSensitivityHasBeenSet;
144  };
145 
146 } // namespace Model
147 } // namespace Personalize
148 } // namespace Aws
Aws::Personalize::Model::ObjectiveSensitivity
ObjectiveSensitivity
Definition: ObjectiveSensitivity.h:17
Aws::Personalize::Model::OptimizationObjective::WithItemAttribute
OptimizationObjective & WithItemAttribute(const Aws::String &value)
Definition: OptimizationObjective.h:84
Aws::Personalize::Model::OptimizationObjective::WithObjectiveSensitivity
OptimizationObjective & WithObjectiveSensitivity(const ObjectiveSensitivity &value)
Definition: OptimizationObjective.h:129
AWS_PERSONALIZE_API
#define AWS_PERSONALIZE_API
Definition: Personalize_EXPORTS.h:28
Aws::Personalize::Model::OptimizationObjective::ItemAttributeHasBeenSet
bool ItemAttributeHasBeenSet() const
Definition: OptimizationObjective.h:56
Aws::Personalize::Model::OptimizationObjective::OptimizationObjective
OptimizationObjective()
Aws::Personalize::Model::OptimizationObjective::WithItemAttribute
OptimizationObjective & WithItemAttribute(Aws::String &&value)
Definition: OptimizationObjective.h:91
Aws::Personalize::Model::OptimizationObjective::operator=
OptimizationObjective & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Personalize::Model::OptimizationObjective::SetObjectiveSensitivity
void SetObjectiveSensitivity(const ObjectiveSensitivity &value)
Definition: OptimizationObjective.h:117
Aws::Personalize::Model::OptimizationObjective::WithItemAttribute
OptimizationObjective & WithItemAttribute(const char *value)
Definition: OptimizationObjective.h:98
Aws::Personalize::Model::OptimizationObjective::SetItemAttribute
void SetItemAttribute(Aws::String &&value)
Definition: OptimizationObjective.h:70
Aws
Definition: AccessManagementClient.h:15
Aws::Personalize::Model::OptimizationObjective::GetItemAttribute
const Aws::String & GetItemAttribute() const
Definition: OptimizationObjective.h:49
Aws::Personalize::Model::OptimizationObjective::OptimizationObjective
OptimizationObjective(Aws::Utils::Json::JsonView jsonValue)
ObjectiveSensitivity.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Personalize::Model::OptimizationObjective::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Personalize::Model::OptimizationObjective::SetItemAttribute
void SetItemAttribute(const char *value)
Definition: OptimizationObjective.h:77
Aws::Personalize::Model::OptimizationObjective::ObjectiveSensitivityHasBeenSet
bool ObjectiveSensitivityHasBeenSet() const
Definition: OptimizationObjective.h:111
Aws::Personalize::Model::OptimizationObjective::SetItemAttribute
void SetItemAttribute(const Aws::String &value)
Definition: OptimizationObjective.h:63
Aws::Personalize::Model::OptimizationObjective::SetObjectiveSensitivity
void SetObjectiveSensitivity(ObjectiveSensitivity &&value)
Definition: OptimizationObjective.h:123
Personalize_EXPORTS.h
Aws::Personalize::Model::OptimizationObjective
Definition: OptimizationObjective.h:36
Aws::Personalize::Model::OptimizationObjective::WithObjectiveSensitivity
OptimizationObjective & WithObjectiveSensitivity(ObjectiveSensitivity &&value)
Definition: OptimizationObjective.h:135
Aws::Personalize::Model::OptimizationObjective::GetObjectiveSensitivity
const ObjectiveSensitivity & GetObjectiveSensitivity() const
Definition: OptimizationObjective.h:105