/** * 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 { /** *

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 InsightImpactGraphService { public: AWS_XRAY_API InsightImpactGraphService(); AWS_XRAY_API InsightImpactGraphService(Aws::Utils::Json::JsonView jsonValue); AWS_XRAY_API InsightImpactGraphService& 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 InsightImpactGraphService& WithReferenceId(int value) { SetReferenceId(value); return *this;} /** *

Identifier for the service. Unique within the service map.

  • *

    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.

  • 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.

  • remote - A downstream service of * indeterminate type.

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

Identifier for the service. Unique within the service map.

  • *

    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.

  • 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.

  • remote - A downstream service of * indeterminate type.

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

Identifier for the service. Unique within the service map.

  • *

    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.

  • 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.

  • remote - A downstream service of * indeterminate type.

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

Identifier for the service. Unique within the service map.

  • *

    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.

  • 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.

  • remote - A downstream service of * indeterminate type.

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

Identifier for the service. Unique within the service map.

  • *

    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.

  • 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.

  • remote - A downstream service of * indeterminate type.

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

Identifier for the service. Unique within the service map.

  • *

    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.

  • 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.

  • remote - A downstream service of * indeterminate type.

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

Identifier for the service. Unique within the service map.

  • *

    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.

  • 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.

  • remote - A downstream service of * indeterminate type.

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

Identifier for the service. Unique within the service map.

  • *

    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.

  • 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.

  • remote - A downstream service of * indeterminate type.

*/ inline InsightImpactGraphService& WithType(const char* value) { SetType(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 InsightImpactGraphService& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The canonical name of the service.

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

The canonical name of the service.

*/ inline InsightImpactGraphService& 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 InsightImpactGraphService& WithNames(const Aws::Vector& value) { SetNames(value); return *this;} /** *

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

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

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

*/ inline InsightImpactGraphService& 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 InsightImpactGraphService& 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 InsightImpactGraphService& AddNames(const char* value) { m_namesHasBeenSet = true; m_names.push_back(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 InsightImpactGraphService& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

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

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

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

*/ inline InsightImpactGraphService& WithAccountId(const char* value) { SetAccountId(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 InsightImpactGraphService& WithEdges(const Aws::Vector& value) { SetEdges(value); return *this;} /** *

Connections to downstream services.

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

Connections to downstream services.

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

Connections to downstream services.

*/ inline InsightImpactGraphService& AddEdges(InsightImpactGraphEdge&& value) { m_edgesHasBeenSet = true; m_edges.push_back(std::move(value)); return *this; } private: int m_referenceId; bool m_referenceIdHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_names; bool m_namesHasBeenSet = false; Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::Vector m_edges; bool m_edgesHasBeenSet = false; }; } // namespace Model } // namespace XRay } // namespace Aws