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

Show Group Result.

See Also:

AWS * API Reference

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

Group result ID.

*/ inline const Aws::String& GetGroupId() const{ return m_groupId; } /** *

Group result ID.

*/ inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; } /** *

Group result ID.

*/ inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; } /** *

Group result ID.

*/ inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); } /** *

Group result ID.

*/ inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); } /** *

Group result ID.

*/ inline GroupResult& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;} /** *

Group result ID.

*/ inline GroupResult& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;} /** *

Group result ID.

*/ inline GroupResult& WithGroupId(const char* value) { SetGroupId(value); return *this;} /** *

Group Result Name.

*/ inline const Aws::String& GetGroupName() const{ return m_groupName; } /** *

Group Result Name.

*/ inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; } /** *

Group Result Name.

*/ inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; } /** *

Group Result Name.

*/ inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); } /** *

Group Result Name.

*/ inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); } /** *

Group Result Name.

*/ inline GroupResult& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;} /** *

Group Result Name.

*/ inline GroupResult& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;} /** *

Group Result Name.

*/ inline GroupResult& WithGroupName(const char* value) { SetGroupName(value); return *this;} /** *

Tests under Group Result.

*/ inline const Aws::Vector& GetTests() const{ return m_tests; } /** *

Tests under Group Result.

*/ inline bool TestsHasBeenSet() const { return m_testsHasBeenSet; } /** *

Tests under Group Result.

*/ inline void SetTests(const Aws::Vector& value) { m_testsHasBeenSet = true; m_tests = value; } /** *

Tests under Group Result.

*/ inline void SetTests(Aws::Vector&& value) { m_testsHasBeenSet = true; m_tests = std::move(value); } /** *

Tests under Group Result.

*/ inline GroupResult& WithTests(const Aws::Vector& value) { SetTests(value); return *this;} /** *

Tests under Group Result.

*/ inline GroupResult& WithTests(Aws::Vector&& value) { SetTests(std::move(value)); return *this;} /** *

Tests under Group Result.

*/ inline GroupResult& AddTests(const TestCaseRun& value) { m_testsHasBeenSet = true; m_tests.push_back(value); return *this; } /** *

Tests under Group Result.

*/ inline GroupResult& AddTests(TestCaseRun&& value) { m_testsHasBeenSet = true; m_tests.push_back(std::move(value)); return *this; } private: Aws::String m_groupId; bool m_groupIdHasBeenSet = false; Aws::String m_groupName; bool m_groupNameHasBeenSet = false; Aws::Vector m_tests; bool m_testsHasBeenSet = false; }; } // namespace Model } // namespace IoTDeviceAdvisor } // namespace Aws