/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace ApplicationInsights { namespace Model { /** */ class DescribeObservationRequest : public ApplicationInsightsRequest { public: AWS_APPLICATIONINSIGHTS_API DescribeObservationRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DescribeObservation"; } AWS_APPLICATIONINSIGHTS_API Aws::String SerializePayload() const override; AWS_APPLICATIONINSIGHTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the observation.

*/ inline const Aws::String& GetObservationId() const{ return m_observationId; } /** *

The ID of the observation.

*/ inline bool ObservationIdHasBeenSet() const { return m_observationIdHasBeenSet; } /** *

The ID of the observation.

*/ inline void SetObservationId(const Aws::String& value) { m_observationIdHasBeenSet = true; m_observationId = value; } /** *

The ID of the observation.

*/ inline void SetObservationId(Aws::String&& value) { m_observationIdHasBeenSet = true; m_observationId = std::move(value); } /** *

The ID of the observation.

*/ inline void SetObservationId(const char* value) { m_observationIdHasBeenSet = true; m_observationId.assign(value); } /** *

The ID of the observation.

*/ inline DescribeObservationRequest& WithObservationId(const Aws::String& value) { SetObservationId(value); return *this;} /** *

The ID of the observation.

*/ inline DescribeObservationRequest& WithObservationId(Aws::String&& value) { SetObservationId(std::move(value)); return *this;} /** *

The ID of the observation.

*/ inline DescribeObservationRequest& WithObservationId(const char* value) { SetObservationId(value); return *this;} /** *

The AWS account ID for the resource group owner.

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

The AWS account ID for the resource group owner.

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

The AWS account ID for the resource group owner.

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

The AWS account ID for the resource group owner.

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

The AWS account ID for the resource group owner.

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

The AWS account ID for the resource group owner.

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

The AWS account ID for the resource group owner.

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

The AWS account ID for the resource group owner.

*/ inline DescribeObservationRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;} private: Aws::String m_observationId; bool m_observationIdHasBeenSet = false; Aws::String m_accountId; bool m_accountIdHasBeenSet = false; }; } // namespace Model } // namespace ApplicationInsights } // namespace Aws