/** * 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 GameSparks { namespace Model { /** *

The configuration section.

See Also:

AWS * API Reference

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

The content of a configuration section.

*/ inline Aws::Utils::DocumentView GetAttributes() const{ return m_attributes; } /** *

The content of a configuration section.

*/ inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } /** *

The content of a configuration section.

*/ inline void SetAttributes(const Aws::Utils::Document& value) { m_attributesHasBeenSet = true; m_attributes = value; } /** *

The content of a configuration section.

*/ inline void SetAttributes(Aws::Utils::Document&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); } /** *

The content of a configuration section.

*/ inline Section& WithAttributes(const Aws::Utils::Document& value) { SetAttributes(value); return *this;} /** *

The content of a configuration section.

*/ inline Section& WithAttributes(Aws::Utils::Document&& value) { SetAttributes(std::move(value)); return *this;} /** *

The name of the section.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the section.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the section.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the section.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the section.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the section.

*/ inline Section& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the section.

*/ inline Section& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the section.

*/ inline Section& WithName(const char* value) { SetName(value); return *this;} /** *

The size, in bytes, of the section contents.

*/ inline int GetSize() const{ return m_size; } /** *

The size, in bytes, of the section contents.

*/ inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; } /** *

The size, in bytes, of the section contents.

*/ inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; } /** *

The size, in bytes, of the section contents.

*/ inline Section& WithSize(int value) { SetSize(value); return *this;} private: Aws::Utils::Document m_attributes; bool m_attributesHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; int m_size; bool m_sizeHasBeenSet = false; }; } // namespace Model } // namespace GameSparks } // namespace Aws