/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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
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
.
The status of registering your IAM resource. The status can be one of
* REGISTRATION_SUCCESS
, REGISTRATION_PENDING
,
* REGISTRATION_FAILURE
.
The status of registering your IAM resource. The status can be one of
* REGISTRATION_SUCCESS
, REGISTRATION_PENDING
,
* REGISTRATION_FAILURE
.
The status of registering your IAM resource. The status can be one of
* REGISTRATION_SUCCESS
, REGISTRATION_PENDING
,
* REGISTRATION_FAILURE
.
The status of registering your IAM resource. The status can be one of
* REGISTRATION_SUCCESS
, REGISTRATION_PENDING
,
* REGISTRATION_FAILURE
.
The status of registering your IAM resource. The status can be one of
* REGISTRATION_SUCCESS
, REGISTRATION_PENDING
,
* REGISTRATION_FAILURE
.
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