/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A collection of fields identifying the services in a trace summary
* fault.See Also:
AWS
* API Reference
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::VectorA collection of associated service names.
*/ inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; } /** *A collection of associated service names.
*/ inline void SetNames(const Aws::VectorA collection of associated service names.
*/ inline void SetNames(Aws::VectorA collection of associated service names.
*/ inline FaultRootCauseService& WithNames(const Aws::VectorA collection of associated service names.
*/ inline FaultRootCauseService& WithNames(Aws::VectorA 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::VectorThe 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::VectorThe path of root cause entities found on the service.
*/ inline void SetEntityPath(Aws::VectorThe path of root cause entities found on the service.
*/ inline FaultRootCauseService& WithEntityPath(const Aws::VectorThe path of root cause entities found on the service.
*/ inline FaultRootCauseService& WithEntityPath(Aws::VectorThe 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