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

Configuration information for pre-signed URLs. Valid when * protocols contains HTTP.

See Also:

AWS * API Reference

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

How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, * the default value is 1800 seconds. Pre-signed URLs are generated when a request * for the job document is received.

*/ 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 1800 seconds. Pre-signed URLs are generated when a request * for the job document is received.

*/ 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 1800 seconds. Pre-signed URLs are generated when a request * for the job document is received.

*/ 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 1800 seconds. Pre-signed URLs are generated when a request * for the job document is received.

*/ inline AwsJobPresignedUrlConfig& WithExpiresInSec(long long value) { SetExpiresInSec(value); return *this;} private: long long m_expiresInSec; bool m_expiresInSecHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws