/** * 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 PI { namespace Model { /** */ class GetResourceMetadataRequest : public PIRequest { public: AWS_PI_API GetResourceMetadataRequest(); // 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 "GetResourceMetadata"; } AWS_PI_API Aws::String SerializePayload() const override; AWS_PI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Web Services service for which Performance Insights returns * metrics.

*/ inline const ServiceType& GetServiceType() const{ return m_serviceType; } /** *

The Amazon Web Services service for which Performance Insights returns * metrics.

*/ inline bool ServiceTypeHasBeenSet() const { return m_serviceTypeHasBeenSet; } /** *

The Amazon Web Services service for which Performance Insights returns * metrics.

*/ inline void SetServiceType(const ServiceType& value) { m_serviceTypeHasBeenSet = true; m_serviceType = value; } /** *

The Amazon Web Services service for which Performance Insights returns * metrics.

*/ inline void SetServiceType(ServiceType&& value) { m_serviceTypeHasBeenSet = true; m_serviceType = std::move(value); } /** *

The Amazon Web Services service for which Performance Insights returns * metrics.

*/ inline GetResourceMetadataRequest& WithServiceType(const ServiceType& value) { SetServiceType(value); return *this;} /** *

The Amazon Web Services service for which Performance Insights returns * metrics.

*/ inline GetResourceMetadataRequest& WithServiceType(ServiceType&& value) { SetServiceType(std::move(value)); return *this;} /** *

An immutable identifier for a data source that is unique for an Amazon Web * Services Region. Performance Insights gathers metrics from this data source. To * use a DB instance as a data source, specify its DbiResourceId * value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X.

*/ inline const Aws::String& GetIdentifier() const{ return m_identifier; } /** *

An immutable identifier for a data source that is unique for an Amazon Web * Services Region. Performance Insights gathers metrics from this data source. To * use a DB instance as a data source, specify its DbiResourceId * value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X.

*/ inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; } /** *

An immutable identifier for a data source that is unique for an Amazon Web * Services Region. Performance Insights gathers metrics from this data source. To * use a DB instance as a data source, specify its DbiResourceId * value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X.

*/ inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; } /** *

An immutable identifier for a data source that is unique for an Amazon Web * Services Region. Performance Insights gathers metrics from this data source. To * use a DB instance as a data source, specify its DbiResourceId * value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X.

*/ inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); } /** *

An immutable identifier for a data source that is unique for an Amazon Web * Services Region. Performance Insights gathers metrics from this data source. To * use a DB instance as a data source, specify its DbiResourceId * value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X.

*/ inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); } /** *

An immutable identifier for a data source that is unique for an Amazon Web * Services Region. Performance Insights gathers metrics from this data source. To * use a DB instance as a data source, specify its DbiResourceId * value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X.

*/ inline GetResourceMetadataRequest& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;} /** *

An immutable identifier for a data source that is unique for an Amazon Web * Services Region. Performance Insights gathers metrics from this data source. To * use a DB instance as a data source, specify its DbiResourceId * value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X.

*/ inline GetResourceMetadataRequest& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;} /** *

An immutable identifier for a data source that is unique for an Amazon Web * Services Region. Performance Insights gathers metrics from this data source. To * use a DB instance as a data source, specify its DbiResourceId * value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X.

*/ inline GetResourceMetadataRequest& WithIdentifier(const char* value) { SetIdentifier(value); return *this;} private: ServiceType m_serviceType; bool m_serviceTypeHasBeenSet = false; Aws::String m_identifier; bool m_identifierHasBeenSet = false; }; } // namespace Model } // namespace PI } // namespace Aws