AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PresignedUrlConfig.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoT
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_IOT_API PresignedUrlConfig() = default;
38
39
41
50 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
51 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
52 template<typename RoleArnT = Aws::String>
53 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
54 template<typename RoleArnT = Aws::String>
55 PresignedUrlConfig& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
57
59
64 inline long long GetExpiresInSec() const { return m_expiresInSec; }
65 inline bool ExpiresInSecHasBeenSet() const { return m_expiresInSecHasBeenSet; }
66 inline void SetExpiresInSec(long long value) { m_expiresInSecHasBeenSet = true; m_expiresInSec = value; }
67 inline PresignedUrlConfig& WithExpiresInSec(long long value) { SetExpiresInSec(value); return *this;}
69 private:
70
71 Aws::String m_roleArn;
72 bool m_roleArnHasBeenSet = false;
73
74 long long m_expiresInSec{0};
75 bool m_expiresInSecHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace IoT
80} // namespace Aws
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API PresignedUrlConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API PresignedUrlConfig()=default
const Aws::String & GetRoleArn() const
PresignedUrlConfig & WithExpiresInSec(long long value)
AWS_IOT_API PresignedUrlConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
PresignedUrlConfig & WithRoleArn(RoleArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue