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

Information about an application that processed requests, users that made * requests, or downstream services, resources, and applications that an * application used.

See Also:

AWS API * Reference

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

Identifier for the service. Unique within the service map.

*/ inline int GetReferenceId() const{ return m_referenceId; } /** *

Identifier for the service. Unique within the service map.

*/ inline bool ReferenceIdHasBeenSet() const { return m_referenceIdHasBeenSet; } /** *

Identifier for the service. Unique within the service map.

*/ inline void SetReferenceId(int value) { m_referenceIdHasBeenSet = true; m_referenceId = value; } /** *

Identifier for the service. Unique within the service map.

*/ inline Service& WithReferenceId(int value) { SetReferenceId(value); return *this;} /** *

The canonical name of the service.

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

The canonical name of the service.

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

The canonical name of the service.

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

The canonical name of the service.

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

The canonical name of the service.

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

The canonical name of the service.

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

The canonical name of the service.

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

The canonical name of the service.

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

A list of names for the service, including the canonical name.

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

A list of names for the service, including the canonical name.

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

A list of names for the service, including the canonical name.

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

A list of names for the service, including the canonical name.

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

A list of names for the service, including the canonical name.

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

A list of names for the service, including the canonical name.

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

A list of names for the service, including the canonical name.

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

A list of names for the service, including the canonical name.

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

A list of names for the service, including the canonical name.

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

Indicates that the service was the first service to process a request.

*/ inline bool GetRoot() const{ return m_root; } /** *

Indicates that the service was the first service to process a request.

*/ inline bool RootHasBeenSet() const { return m_rootHasBeenSet; } /** *

Indicates that the service was the first service to process a request.

*/ inline void SetRoot(bool value) { m_rootHasBeenSet = true; m_root = value; } /** *

Indicates that the service was the first service to process a request.

*/ inline Service& WithRoot(bool value) { SetRoot(value); return *this;} /** *

Identifier of the Amazon Web Services account in which the service runs.

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

Identifier of the Amazon Web Services account in which the service runs.

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

Identifier of the Amazon Web Services account in which the service runs.

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

Identifier of the Amazon Web Services account in which the service runs.

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

Identifier of the Amazon Web Services account in which the service runs.

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

Identifier of the Amazon Web Services account in which the service runs.

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

Identifier of the Amazon Web Services account in which the service runs.

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

Identifier of the Amazon Web Services account in which the service runs.

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

The type of service.

  • Amazon Web Services Resource - The type * of an Amazon Web Services resource. For example, AWS::EC2::Instance * for an application running on Amazon EC2 or AWS::DynamoDB::Table * for an Amazon DynamoDB table that the application used.

  • Amazon * Web Services Service - The type of an Amazon Web Services service. For example, * AWS::DynamoDB for downstream calls to Amazon DynamoDB that didn't * target a specific table.

  • client - Represents the * clients that sent requests to a root service.

  • * remote - A downstream service of indeterminate type.

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

The type of service.

  • Amazon Web Services Resource - The type * of an Amazon Web Services resource. For example, AWS::EC2::Instance * for an application running on Amazon EC2 or AWS::DynamoDB::Table * for an Amazon DynamoDB table that the application used.

  • Amazon * Web Services Service - The type of an Amazon Web Services service. For example, * AWS::DynamoDB for downstream calls to Amazon DynamoDB that didn't * target a specific table.

  • client - Represents the * clients that sent requests to a root service.

  • * remote - A downstream service of indeterminate type.

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

The type of service.

  • Amazon Web Services Resource - The type * of an Amazon Web Services resource. For example, AWS::EC2::Instance * for an application running on Amazon EC2 or AWS::DynamoDB::Table * for an Amazon DynamoDB table that the application used.

  • Amazon * Web Services Service - The type of an Amazon Web Services service. For example, * AWS::DynamoDB for downstream calls to Amazon DynamoDB that didn't * target a specific table.

  • client - Represents the * clients that sent requests to a root service.

  • * remote - A downstream service of indeterminate type.

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

The type of service.

  • Amazon Web Services Resource - The type * of an Amazon Web Services resource. For example, AWS::EC2::Instance * for an application running on Amazon EC2 or AWS::DynamoDB::Table * for an Amazon DynamoDB table that the application used.

  • Amazon * Web Services Service - The type of an Amazon Web Services service. For example, * AWS::DynamoDB for downstream calls to Amazon DynamoDB that didn't * target a specific table.

  • client - Represents the * clients that sent requests to a root service.

  • * remote - A downstream service of indeterminate type.

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

The type of service.

  • Amazon Web Services Resource - The type * of an Amazon Web Services resource. For example, AWS::EC2::Instance * for an application running on Amazon EC2 or AWS::DynamoDB::Table * for an Amazon DynamoDB table that the application used.

  • Amazon * Web Services Service - The type of an Amazon Web Services service. For example, * AWS::DynamoDB for downstream calls to Amazon DynamoDB that didn't * target a specific table.

  • client - Represents the * clients that sent requests to a root service.

  • * remote - A downstream service of indeterminate type.

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

The type of service.

  • Amazon Web Services Resource - The type * of an Amazon Web Services resource. For example, AWS::EC2::Instance * for an application running on Amazon EC2 or AWS::DynamoDB::Table * for an Amazon DynamoDB table that the application used.

  • Amazon * Web Services Service - The type of an Amazon Web Services service. For example, * AWS::DynamoDB for downstream calls to Amazon DynamoDB that didn't * target a specific table.

  • client - Represents the * clients that sent requests to a root service.

  • * remote - A downstream service of indeterminate type.

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

The type of service.

  • Amazon Web Services Resource - The type * of an Amazon Web Services resource. For example, AWS::EC2::Instance * for an application running on Amazon EC2 or AWS::DynamoDB::Table * for an Amazon DynamoDB table that the application used.

  • Amazon * Web Services Service - The type of an Amazon Web Services service. For example, * AWS::DynamoDB for downstream calls to Amazon DynamoDB that didn't * target a specific table.

  • client - Represents the * clients that sent requests to a root service.

  • * remote - A downstream service of indeterminate type.

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

The type of service.

  • Amazon Web Services Resource - The type * of an Amazon Web Services resource. For example, AWS::EC2::Instance * for an application running on Amazon EC2 or AWS::DynamoDB::Table * for an Amazon DynamoDB table that the application used.

  • Amazon * Web Services Service - The type of an Amazon Web Services service. For example, * AWS::DynamoDB for downstream calls to Amazon DynamoDB that didn't * target a specific table.

  • client - Represents the * clients that sent requests to a root service.

  • * remote - A downstream service of indeterminate type.

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

The service's state.

*/ inline const Aws::String& GetState() const{ return m_state; } /** *

The service's state.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The service's state.

*/ inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The service's state.

*/ inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The service's state.

*/ inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); } /** *

The service's state.

*/ inline Service& WithState(const Aws::String& value) { SetState(value); return *this;} /** *

The service's state.

*/ inline Service& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;} /** *

The service's state.

*/ inline Service& WithState(const char* value) { SetState(value); return *this;} /** *

The start time of the first segment that the service generated.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The start time of the first segment that the service generated.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The start time of the first segment that the service generated.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The start time of the first segment that the service generated.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The start time of the first segment that the service generated.

*/ inline Service& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The start time of the first segment that the service generated.

*/ inline Service& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The end time of the last segment that the service generated.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

The end time of the last segment that the service generated.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The end time of the last segment that the service generated.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The end time of the last segment that the service generated.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

The end time of the last segment that the service generated.

*/ inline Service& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

The end time of the last segment that the service generated.

*/ inline Service& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

Connections to downstream services.

*/ inline const Aws::Vector& GetEdges() const{ return m_edges; } /** *

Connections to downstream services.

*/ inline bool EdgesHasBeenSet() const { return m_edgesHasBeenSet; } /** *

Connections to downstream services.

*/ inline void SetEdges(const Aws::Vector& value) { m_edgesHasBeenSet = true; m_edges = value; } /** *

Connections to downstream services.

*/ inline void SetEdges(Aws::Vector&& value) { m_edgesHasBeenSet = true; m_edges = std::move(value); } /** *

Connections to downstream services.

*/ inline Service& WithEdges(const Aws::Vector& value) { SetEdges(value); return *this;} /** *

Connections to downstream services.

*/ inline Service& WithEdges(Aws::Vector&& value) { SetEdges(std::move(value)); return *this;} /** *

Connections to downstream services.

*/ inline Service& AddEdges(const Edge& value) { m_edgesHasBeenSet = true; m_edges.push_back(value); return *this; } /** *

Connections to downstream services.

*/ inline Service& AddEdges(Edge&& value) { m_edgesHasBeenSet = true; m_edges.push_back(std::move(value)); return *this; } /** *

Aggregated statistics for the service.

*/ inline const ServiceStatistics& GetSummaryStatistics() const{ return m_summaryStatistics; } /** *

Aggregated statistics for the service.

*/ inline bool SummaryStatisticsHasBeenSet() const { return m_summaryStatisticsHasBeenSet; } /** *

Aggregated statistics for the service.

*/ inline void SetSummaryStatistics(const ServiceStatistics& value) { m_summaryStatisticsHasBeenSet = true; m_summaryStatistics = value; } /** *

Aggregated statistics for the service.

*/ inline void SetSummaryStatistics(ServiceStatistics&& value) { m_summaryStatisticsHasBeenSet = true; m_summaryStatistics = std::move(value); } /** *

Aggregated statistics for the service.

*/ inline Service& WithSummaryStatistics(const ServiceStatistics& value) { SetSummaryStatistics(value); return *this;} /** *

Aggregated statistics for the service.

*/ inline Service& WithSummaryStatistics(ServiceStatistics&& value) { SetSummaryStatistics(std::move(value)); return *this;} /** *

A histogram that maps the spread of service durations.

*/ inline const Aws::Vector& GetDurationHistogram() const{ return m_durationHistogram; } /** *

A histogram that maps the spread of service durations.

*/ inline bool DurationHistogramHasBeenSet() const { return m_durationHistogramHasBeenSet; } /** *

A histogram that maps the spread of service durations.

*/ inline void SetDurationHistogram(const Aws::Vector& value) { m_durationHistogramHasBeenSet = true; m_durationHistogram = value; } /** *

A histogram that maps the spread of service durations.

*/ inline void SetDurationHistogram(Aws::Vector&& value) { m_durationHistogramHasBeenSet = true; m_durationHistogram = std::move(value); } /** *

A histogram that maps the spread of service durations.

*/ inline Service& WithDurationHistogram(const Aws::Vector& value) { SetDurationHistogram(value); return *this;} /** *

A histogram that maps the spread of service durations.

*/ inline Service& WithDurationHistogram(Aws::Vector&& value) { SetDurationHistogram(std::move(value)); return *this;} /** *

A histogram that maps the spread of service durations.

*/ inline Service& AddDurationHistogram(const HistogramEntry& value) { m_durationHistogramHasBeenSet = true; m_durationHistogram.push_back(value); return *this; } /** *

A histogram that maps the spread of service durations.

*/ inline Service& AddDurationHistogram(HistogramEntry&& value) { m_durationHistogramHasBeenSet = true; m_durationHistogram.push_back(std::move(value)); return *this; } /** *

A histogram that maps the spread of service response times.

*/ inline const Aws::Vector& GetResponseTimeHistogram() const{ return m_responseTimeHistogram; } /** *

A histogram that maps the spread of service response times.

*/ inline bool ResponseTimeHistogramHasBeenSet() const { return m_responseTimeHistogramHasBeenSet; } /** *

A histogram that maps the spread of service response times.

*/ inline void SetResponseTimeHistogram(const Aws::Vector& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram = value; } /** *

A histogram that maps the spread of service response times.

*/ inline void SetResponseTimeHistogram(Aws::Vector&& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram = std::move(value); } /** *

A histogram that maps the spread of service response times.

*/ inline Service& WithResponseTimeHistogram(const Aws::Vector& value) { SetResponseTimeHistogram(value); return *this;} /** *

A histogram that maps the spread of service response times.

*/ inline Service& WithResponseTimeHistogram(Aws::Vector&& value) { SetResponseTimeHistogram(std::move(value)); return *this;} /** *

A histogram that maps the spread of service response times.

*/ inline Service& AddResponseTimeHistogram(const HistogramEntry& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram.push_back(value); return *this; } /** *

A histogram that maps the spread of service response times.

*/ inline Service& AddResponseTimeHistogram(HistogramEntry&& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram.push_back(std::move(value)); return *this; } private: int m_referenceId; bool m_referenceIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_names; bool m_namesHasBeenSet = false; bool m_root; bool m_rootHasBeenSet = false; Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; Aws::String m_state; bool m_stateHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; Aws::Vector m_edges; bool m_edgesHasBeenSet = false; ServiceStatistics m_summaryStatistics; bool m_summaryStatisticsHasBeenSet = false; Aws::Vector m_durationHistogram; bool m_durationHistogramHasBeenSet = false; Aws::Vector m_responseTimeHistogram; bool m_responseTimeHistogramHasBeenSet = false; }; } // namespace Model } // namespace XRay } // namespace Aws