/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Configuration for pre-signed S3 URLs.See Also:
AWS
* API Reference
The ARN of an IAM role that grants permission to download files from the S3 * bucket where the job data/updates are stored. The role must also grant * permission for IoT to download the files.
For information * about addressing the confused deputy problem, see cross-service * confused deputy prevention in the Amazon Web Services IoT Core developer * guide.
*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *The ARN of an IAM role that grants permission to download files from the S3 * bucket where the job data/updates are stored. The role must also grant * permission for IoT to download the files.
For information * about addressing the confused deputy problem, see cross-service * confused deputy prevention in the Amazon Web Services IoT Core developer * guide.
*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *The ARN of an IAM role that grants permission to download files from the S3 * bucket where the job data/updates are stored. The role must also grant * permission for IoT to download the files.
For information * about addressing the confused deputy problem, see cross-service * confused deputy prevention in the Amazon Web Services IoT Core developer * guide.
*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *The ARN of an IAM role that grants permission to download files from the S3 * bucket where the job data/updates are stored. The role must also grant * permission for IoT to download the files.
For information * about addressing the confused deputy problem, see cross-service * confused deputy prevention in the Amazon Web Services IoT Core developer * guide.
*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *The ARN of an IAM role that grants permission to download files from the S3 * bucket where the job data/updates are stored. The role must also grant * permission for IoT to download the files.
For information * about addressing the confused deputy problem, see cross-service * confused deputy prevention in the Amazon Web Services IoT Core developer * guide.
*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *The ARN of an IAM role that grants permission to download files from the S3 * bucket where the job data/updates are stored. The role must also grant * permission for IoT to download the files.
For information * about addressing the confused deputy problem, see cross-service * confused deputy prevention in the Amazon Web Services IoT Core developer * guide.
*/ inline PresignedUrlConfig& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *The ARN of an IAM role that grants permission to download files from the S3 * bucket where the job data/updates are stored. The role must also grant * permission for IoT to download the files.
For information * about addressing the confused deputy problem, see cross-service * confused deputy prevention in the Amazon Web Services IoT Core developer * guide.
*/ inline PresignedUrlConfig& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *The ARN of an IAM role that grants permission to download files from the S3 * bucket where the job data/updates are stored. The role must also grant * permission for IoT to download the files.
For information * about addressing the confused deputy problem, see cross-service * confused deputy prevention in the Amazon Web Services IoT Core developer * guide.
*/ inline PresignedUrlConfig& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, * the default value is 3600 seconds. Pre-signed URLs are generated when Jobs * receives an MQTT request for the job document.
*/ inline long long GetExpiresInSec() const{ return m_expiresInSec; } /** *How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, * the default value is 3600 seconds. Pre-signed URLs are generated when Jobs * receives an MQTT request for the job document.
*/ inline bool ExpiresInSecHasBeenSet() const { return m_expiresInSecHasBeenSet; } /** *How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, * the default value is 3600 seconds. Pre-signed URLs are generated when Jobs * receives an MQTT request for the job document.
*/ inline void SetExpiresInSec(long long value) { m_expiresInSecHasBeenSet = true; m_expiresInSec = value; } /** *How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, * the default value is 3600 seconds. Pre-signed URLs are generated when Jobs * receives an MQTT request for the job document.
*/ inline PresignedUrlConfig& WithExpiresInSec(long long value) { SetExpiresInSec(value); return *this;} private: Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; long long m_expiresInSec; bool m_expiresInSecHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws