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

A collection of fields identifying the services in a trace summary * fault.

See Also:

AWS * API Reference

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

The service name.

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

The service name.

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

The service name.

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

The service name.

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

The service name.

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

The service name.

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

The service name.

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

The service name.

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

A collection of associated service names.

*/ inline const Aws::Vector& GetNames() const{ return m_names; } /** *

A collection of associated service names.

*/ inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; } /** *

A collection of associated service names.

*/ inline void SetNames(const Aws::Vector& value) { m_namesHasBeenSet = true; m_names = value; } /** *

A collection of associated service names.

*/ inline void SetNames(Aws::Vector&& value) { m_namesHasBeenSet = true; m_names = std::move(value); } /** *

A collection of associated service names.

*/ inline FaultRootCauseService& WithNames(const Aws::Vector& value) { SetNames(value); return *this;} /** *

A collection of associated service names.

*/ inline FaultRootCauseService& WithNames(Aws::Vector&& value) { SetNames(std::move(value)); return *this;} /** *

A collection of associated service names.

*/ inline FaultRootCauseService& AddNames(const Aws::String& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; } /** *

A collection of associated service names.

*/ inline FaultRootCauseService& AddNames(Aws::String&& value) { m_namesHasBeenSet = true; m_names.push_back(std::move(value)); return *this; } /** *

A collection of associated service names.

*/ inline FaultRootCauseService& AddNames(const char* value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; } /** *

The type associated to the service.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The type associated to the service.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type associated to the service.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type associated to the service.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type associated to the service.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The type associated to the service.

*/ inline FaultRootCauseService& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The type associated to the service.

*/ inline FaultRootCauseService& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The type associated to the service.

*/ inline FaultRootCauseService& WithType(const char* value) { SetType(value); return *this;} /** *

The account ID associated to the service.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

The account ID associated to the service.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The account ID associated to the service.

*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *

The account ID associated to the service.

*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *

The account ID associated to the service.

*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *

The account ID associated to the service.

*/ inline FaultRootCauseService& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

The account ID associated to the service.

*/ inline FaultRootCauseService& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *

The account ID associated to the service.

*/ inline FaultRootCauseService& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *

The path of root cause entities found on the service.

*/ inline const Aws::Vector& GetEntityPath() const{ return m_entityPath; } /** *

The path of root cause entities found on the service.

*/ inline bool EntityPathHasBeenSet() const { return m_entityPathHasBeenSet; } /** *

The path of root cause entities found on the service.

*/ inline void SetEntityPath(const Aws::Vector& value) { m_entityPathHasBeenSet = true; m_entityPath = value; } /** *

The path of root cause entities found on the service.

*/ inline void SetEntityPath(Aws::Vector&& value) { m_entityPathHasBeenSet = true; m_entityPath = std::move(value); } /** *

The path of root cause entities found on the service.

*/ inline FaultRootCauseService& WithEntityPath(const Aws::Vector& value) { SetEntityPath(value); return *this;} /** *

The path of root cause entities found on the service.

*/ inline FaultRootCauseService& WithEntityPath(Aws::Vector&& value) { SetEntityPath(std::move(value)); return *this;} /** *

The path of root cause entities found on the service.

*/ inline FaultRootCauseService& AddEntityPath(const FaultRootCauseEntity& value) { m_entityPathHasBeenSet = true; m_entityPath.push_back(value); return *this; } /** *

The path of root cause entities found on the service.

*/ inline FaultRootCauseService& AddEntityPath(FaultRootCauseEntity&& value) { m_entityPathHasBeenSet = true; m_entityPath.push_back(std::move(value)); return *this; } /** *

A Boolean value indicating if the service is inferred from the trace.

*/ inline bool GetInferred() const{ return m_inferred; } /** *

A Boolean value indicating if the service is inferred from the trace.

*/ inline bool InferredHasBeenSet() const { return m_inferredHasBeenSet; } /** *

A Boolean value indicating if the service is inferred from the trace.

*/ inline void SetInferred(bool value) { m_inferredHasBeenSet = true; m_inferred = value; } /** *

A Boolean value indicating if the service is inferred from the trace.

*/ inline FaultRootCauseService& WithInferred(bool value) { SetInferred(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_names; bool m_namesHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::Vector m_entityPath; bool m_entityPathHasBeenSet = false; bool m_inferred; bool m_inferredHasBeenSet = false; }; } // namespace Model } // namespace XRay } // namespace Aws