/** * 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 registering an Identity and Access Management (IAM) * resource so Amazon Web Services IoT FleetWise edge agent software can transfer * your vehicle data to Amazon Timestream.

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the IAM role to register.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The Amazon Resource Name (ARN) of the IAM role to register.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the IAM role to register.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The Amazon Resource Name (ARN) of the IAM role to register.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the IAM role to register.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the IAM role to register.

*/ inline IamRegistrationResponse& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role to register.

*/ inline IamRegistrationResponse& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role to register.

*/ inline IamRegistrationResponse& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

The status of registering your IAM resource. 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 IAM resource. The status can be one of * REGISTRATION_SUCCESS, REGISTRATION_PENDING, * REGISTRATION_FAILURE.

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

The status of registering your IAM resource. 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 IAM resource. 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 IAM resource. The status can be one of * REGISTRATION_SUCCESS, REGISTRATION_PENDING, * REGISTRATION_FAILURE.

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

The status of registering your IAM resource. The status can be one of * REGISTRATION_SUCCESS, REGISTRATION_PENDING, * REGISTRATION_FAILURE.

*/ inline IamRegistrationResponse& 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 IamRegistrationResponse& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

A message associated with a registration error.

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

A message associated with a registration error.

*/ inline IamRegistrationResponse& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; RegistrationStatus m_registrationStatus; bool m_registrationStatusHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; }; } // namespace Model } // namespace IoTFleetWise } // namespace Aws