/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ConnectCases
{
namespace Model
{
/**
* Object for field Options information.
See Also:
AWS
* API Reference
*/
class FieldOption
{
public:
AWS_CONNECTCASES_API FieldOption();
AWS_CONNECTCASES_API FieldOption(Aws::Utils::Json::JsonView jsonValue);
AWS_CONNECTCASES_API FieldOption& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* Describes whether the FieldOption
is active (displayed) or
* inactive.
*/
inline bool GetActive() const{ return m_active; }
/**
* Describes whether the FieldOption
is active (displayed) or
* inactive.
*/
inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
/**
* Describes whether the FieldOption
is active (displayed) or
* inactive.
*/
inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; }
/**
* Describes whether the FieldOption
is active (displayed) or
* inactive.
*/
inline FieldOption& WithActive(bool value) { SetActive(value); return *this;}
/**
* FieldOptionName
has max length 100 and disallows trailing
* spaces.
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* FieldOptionName
has max length 100 and disallows trailing
* spaces.
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* FieldOptionName
has max length 100 and disallows trailing
* spaces.
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* FieldOptionName
has max length 100 and disallows trailing
* spaces.
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* FieldOptionName
has max length 100 and disallows trailing
* spaces.
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* FieldOptionName
has max length 100 and disallows trailing
* spaces.
*/
inline FieldOption& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* FieldOptionName
has max length 100 and disallows trailing
* spaces.
*/
inline FieldOption& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* FieldOptionName
has max length 100 and disallows trailing
* spaces.
*/
inline FieldOption& WithName(const char* value) { SetName(value); return *this;}
/**
* FieldOptionValue
has max length 100 and must be alphanumeric
* with hyphens and underscores.
*/
inline const Aws::String& GetValue() const{ return m_value; }
/**
* FieldOptionValue
has max length 100 and must be alphanumeric
* with hyphens and underscores.
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* FieldOptionValue
has max length 100 and must be alphanumeric
* with hyphens and underscores.
*/
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* FieldOptionValue
has max length 100 and must be alphanumeric
* with hyphens and underscores.
*/
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* FieldOptionValue
has max length 100 and must be alphanumeric
* with hyphens and underscores.
*/
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
/**
* FieldOptionValue
has max length 100 and must be alphanumeric
* with hyphens and underscores.
*/
inline FieldOption& WithValue(const Aws::String& value) { SetValue(value); return *this;}
/**
* FieldOptionValue
has max length 100 and must be alphanumeric
* with hyphens and underscores.
*/
inline FieldOption& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
/**
* FieldOptionValue
has max length 100 and must be alphanumeric
* with hyphens and underscores.
*/
inline FieldOption& WithValue(const char* value) { SetValue(value); return *this;}
private:
bool m_active;
bool m_activeHasBeenSet = false;
Aws::String m_name;
bool m_nameHasBeenSet = false;
Aws::String m_value;
bool m_valueHasBeenSet = false;
};
} // namespace Model
} // namespace ConnectCases
} // namespace Aws