/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoT { namespace Model { /** *

Configuration to manage IoT Job's package version reporting. If configured, * Jobs updates the thing's reserved named shadow with the package version * information up on successful job completion.

Note: For each job, * the destinationPackageVersions attribute has to be set with the correct data for * Jobs to report to the thing shadow.

See Also:

AWS * API Reference

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

Indicates whether the Job is enabled or not.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

Indicates whether the Job is enabled or not.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

Indicates whether the Job is enabled or not.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

Indicates whether the Job is enabled or not.

*/ inline VersionUpdateByJobsConfig& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *

The Amazon Resource Name (ARN) of the role that grants permission to the IoT * jobs service to update the reserved named shadow when the job successfully * completes.

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

The Amazon Resource Name (ARN) of the role that grants permission to the IoT * jobs service to update the reserved named shadow when the job successfully * completes.

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

The Amazon Resource Name (ARN) of the role that grants permission to the IoT * jobs service to update the reserved named shadow when the job successfully * completes.

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

The Amazon Resource Name (ARN) of the role that grants permission to the IoT * jobs service to update the reserved named shadow when the job successfully * completes.

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

The Amazon Resource Name (ARN) of the role that grants permission to the IoT * jobs service to update the reserved named shadow when the job successfully * completes.

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

The Amazon Resource Name (ARN) of the role that grants permission to the IoT * jobs service to update the reserved named shadow when the job successfully * completes.

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

The Amazon Resource Name (ARN) of the role that grants permission to the IoT * jobs service to update the reserved named shadow when the job successfully * completes.

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

The Amazon Resource Name (ARN) of the role that grants permission to the IoT * jobs service to update the reserved named shadow when the job successfully * completes.

*/ inline VersionUpdateByJobsConfig& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} private: bool m_enabled; bool m_enabledHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws