/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoTFleetWise { namespace Model { /** *

Information about the registered Amazon Timestream resources or errors, if * any.

See Also:

AWS * API Reference

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

The name of the Timestream database.

*/ inline const Aws::String& GetTimestreamDatabaseName() const{ return m_timestreamDatabaseName; } /** *

The name of the Timestream database.

*/ inline bool TimestreamDatabaseNameHasBeenSet() const { return m_timestreamDatabaseNameHasBeenSet; } /** *

The name of the Timestream database.

*/ inline void SetTimestreamDatabaseName(const Aws::String& value) { m_timestreamDatabaseNameHasBeenSet = true; m_timestreamDatabaseName = value; } /** *

The name of the Timestream database.

*/ inline void SetTimestreamDatabaseName(Aws::String&& value) { m_timestreamDatabaseNameHasBeenSet = true; m_timestreamDatabaseName = std::move(value); } /** *

The name of the Timestream database.

*/ inline void SetTimestreamDatabaseName(const char* value) { m_timestreamDatabaseNameHasBeenSet = true; m_timestreamDatabaseName.assign(value); } /** *

The name of the Timestream database.

*/ inline TimestreamRegistrationResponse& WithTimestreamDatabaseName(const Aws::String& value) { SetTimestreamDatabaseName(value); return *this;} /** *

The name of the Timestream database.

*/ inline TimestreamRegistrationResponse& WithTimestreamDatabaseName(Aws::String&& value) { SetTimestreamDatabaseName(std::move(value)); return *this;} /** *

The name of the Timestream database.

*/ inline TimestreamRegistrationResponse& WithTimestreamDatabaseName(const char* value) { SetTimestreamDatabaseName(value); return *this;} /** *

The name of the Timestream database table.

*/ inline const Aws::String& GetTimestreamTableName() const{ return m_timestreamTableName; } /** *

The name of the Timestream database table.

*/ inline bool TimestreamTableNameHasBeenSet() const { return m_timestreamTableNameHasBeenSet; } /** *

The name of the Timestream database table.

*/ inline void SetTimestreamTableName(const Aws::String& value) { m_timestreamTableNameHasBeenSet = true; m_timestreamTableName = value; } /** *

The name of the Timestream database table.

*/ inline void SetTimestreamTableName(Aws::String&& value) { m_timestreamTableNameHasBeenSet = true; m_timestreamTableName = std::move(value); } /** *

The name of the Timestream database table.

*/ inline void SetTimestreamTableName(const char* value) { m_timestreamTableNameHasBeenSet = true; m_timestreamTableName.assign(value); } /** *

The name of the Timestream database table.

*/ inline TimestreamRegistrationResponse& WithTimestreamTableName(const Aws::String& value) { SetTimestreamTableName(value); return *this;} /** *

The name of the Timestream database table.

*/ inline TimestreamRegistrationResponse& WithTimestreamTableName(Aws::String&& value) { SetTimestreamTableName(std::move(value)); return *this;} /** *

The name of the Timestream database table.

*/ inline TimestreamRegistrationResponse& WithTimestreamTableName(const char* value) { SetTimestreamTableName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Timestream database.

*/ inline const Aws::String& GetTimestreamDatabaseArn() const{ return m_timestreamDatabaseArn; } /** *

The Amazon Resource Name (ARN) of the Timestream database.

*/ inline bool TimestreamDatabaseArnHasBeenSet() const { return m_timestreamDatabaseArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Timestream database.

*/ inline void SetTimestreamDatabaseArn(const Aws::String& value) { m_timestreamDatabaseArnHasBeenSet = true; m_timestreamDatabaseArn = value; } /** *

The Amazon Resource Name (ARN) of the Timestream database.

*/ inline void SetTimestreamDatabaseArn(Aws::String&& value) { m_timestreamDatabaseArnHasBeenSet = true; m_timestreamDatabaseArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Timestream database.

*/ inline void SetTimestreamDatabaseArn(const char* value) { m_timestreamDatabaseArnHasBeenSet = true; m_timestreamDatabaseArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the Timestream database.

*/ inline TimestreamRegistrationResponse& WithTimestreamDatabaseArn(const Aws::String& value) { SetTimestreamDatabaseArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Timestream database.

*/ inline TimestreamRegistrationResponse& WithTimestreamDatabaseArn(Aws::String&& value) { SetTimestreamDatabaseArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Timestream database.

*/ inline TimestreamRegistrationResponse& WithTimestreamDatabaseArn(const char* value) { SetTimestreamDatabaseArn(value); return *this;} /** *

The ARN of the Timestream database table.

*/ inline const Aws::String& GetTimestreamTableArn() const{ return m_timestreamTableArn; } /** *

The ARN of the Timestream database table.

*/ inline bool TimestreamTableArnHasBeenSet() const { return m_timestreamTableArnHasBeenSet; } /** *

The ARN of the Timestream database table.

*/ inline void SetTimestreamTableArn(const Aws::String& value) { m_timestreamTableArnHasBeenSet = true; m_timestreamTableArn = value; } /** *

The ARN of the Timestream database table.

*/ inline void SetTimestreamTableArn(Aws::String&& value) { m_timestreamTableArnHasBeenSet = true; m_timestreamTableArn = std::move(value); } /** *

The ARN of the Timestream database table.

*/ inline void SetTimestreamTableArn(const char* value) { m_timestreamTableArnHasBeenSet = true; m_timestreamTableArn.assign(value); } /** *

The ARN of the Timestream database table.

*/ inline TimestreamRegistrationResponse& WithTimestreamTableArn(const Aws::String& value) { SetTimestreamTableArn(value); return *this;} /** *

The ARN of the Timestream database table.

*/ inline TimestreamRegistrationResponse& WithTimestreamTableArn(Aws::String&& value) { SetTimestreamTableArn(std::move(value)); return *this;} /** *

The ARN of the Timestream database table.

*/ inline TimestreamRegistrationResponse& WithTimestreamTableArn(const char* value) { SetTimestreamTableArn(value); return *this;} /** *

The status of registering your Amazon Timestream resources. The status can be * one of REGISTRATION_SUCCESS, REGISTRATION_PENDING, * REGISTRATION_FAILURE.

*/ inline const RegistrationStatus& GetRegistrationStatus() const{ return m_registrationStatus; } /** *

The status of registering your Amazon Timestream resources. The status can be * one of REGISTRATION_SUCCESS, REGISTRATION_PENDING, * REGISTRATION_FAILURE.

*/ inline bool RegistrationStatusHasBeenSet() const { return m_registrationStatusHasBeenSet; } /** *

The status of registering your Amazon Timestream resources. The status can be * one of REGISTRATION_SUCCESS, REGISTRATION_PENDING, * REGISTRATION_FAILURE.

*/ inline void SetRegistrationStatus(const RegistrationStatus& value) { m_registrationStatusHasBeenSet = true; m_registrationStatus = value; } /** *

The status of registering your Amazon Timestream resources. The status can be * one of REGISTRATION_SUCCESS, REGISTRATION_PENDING, * REGISTRATION_FAILURE.

*/ inline void SetRegistrationStatus(RegistrationStatus&& value) { m_registrationStatusHasBeenSet = true; m_registrationStatus = std::move(value); } /** *

The status of registering your Amazon Timestream resources. The status can be * one of REGISTRATION_SUCCESS, REGISTRATION_PENDING, * REGISTRATION_FAILURE.

*/ inline TimestreamRegistrationResponse& WithRegistrationStatus(const RegistrationStatus& value) { SetRegistrationStatus(value); return *this;} /** *

The status of registering your Amazon Timestream resources. The status can be * one of REGISTRATION_SUCCESS, REGISTRATION_PENDING, * REGISTRATION_FAILURE.

*/ inline TimestreamRegistrationResponse& WithRegistrationStatus(RegistrationStatus&& value) { SetRegistrationStatus(std::move(value)); return *this;} /** *

A message associated with a registration error.

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

A message associated with a registration error.

*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *

A message associated with a registration error.

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *

A message associated with a registration error.

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *

A message associated with a registration error.

*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *

A message associated with a registration error.

*/ inline TimestreamRegistrationResponse& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

A message associated with a registration error.

*/ inline TimestreamRegistrationResponse& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

A message associated with a registration error.

*/ inline TimestreamRegistrationResponse& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: Aws::String m_timestreamDatabaseName; bool m_timestreamDatabaseNameHasBeenSet = false; Aws::String m_timestreamTableName; bool m_timestreamTableNameHasBeenSet = false; Aws::String m_timestreamDatabaseArn; bool m_timestreamDatabaseArnHasBeenSet = false; Aws::String m_timestreamTableArn; bool m_timestreamTableArnHasBeenSet = false; RegistrationStatus m_registrationStatus; bool m_registrationStatusHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; }; } // namespace Model } // namespace IoTFleetWise } // namespace Aws