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

The five most recent communications associated with the case.

See * Also:

AWS * API Reference

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

The five most recent communications associated with the case.

*/ inline const Aws::Vector& GetCommunications() const{ return m_communications; } /** *

The five most recent communications associated with the case.

*/ inline bool CommunicationsHasBeenSet() const { return m_communicationsHasBeenSet; } /** *

The five most recent communications associated with the case.

*/ inline void SetCommunications(const Aws::Vector& value) { m_communicationsHasBeenSet = true; m_communications = value; } /** *

The five most recent communications associated with the case.

*/ inline void SetCommunications(Aws::Vector&& value) { m_communicationsHasBeenSet = true; m_communications = std::move(value); } /** *

The five most recent communications associated with the case.

*/ inline RecentCaseCommunications& WithCommunications(const Aws::Vector& value) { SetCommunications(value); return *this;} /** *

The five most recent communications associated with the case.

*/ inline RecentCaseCommunications& WithCommunications(Aws::Vector&& value) { SetCommunications(std::move(value)); return *this;} /** *

The five most recent communications associated with the case.

*/ inline RecentCaseCommunications& AddCommunications(const Communication& value) { m_communicationsHasBeenSet = true; m_communications.push_back(value); return *this; } /** *

The five most recent communications associated with the case.

*/ inline RecentCaseCommunications& AddCommunications(Communication&& value) { m_communicationsHasBeenSet = true; m_communications.push_back(std::move(value)); return *this; } /** *

A resumption point for pagination.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

A resumption point for pagination.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

A resumption point for pagination.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

A resumption point for pagination.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

A resumption point for pagination.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

A resumption point for pagination.

*/ inline RecentCaseCommunications& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

A resumption point for pagination.

*/ inline RecentCaseCommunications& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

A resumption point for pagination.

*/ inline RecentCaseCommunications& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::Vector m_communications; bool m_communicationsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace Support } // namespace Aws