AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
PresignedUrlConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoT {
20namespace Model {
21
28 public:
29 AWS_IOT_API PresignedUrlConfig() = default;
33
35
44 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
45 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
46 template <typename RoleArnT = Aws::String>
47 void SetRoleArn(RoleArnT&& value) {
48 m_roleArnHasBeenSet = true;
49 m_roleArn = std::forward<RoleArnT>(value);
50 }
51 template <typename RoleArnT = Aws::String>
52 PresignedUrlConfig& WithRoleArn(RoleArnT&& value) {
53 SetRoleArn(std::forward<RoleArnT>(value));
54 return *this;
55 }
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) {
67 m_expiresInSecHasBeenSet = true;
68 m_expiresInSec = value;
69 }
70 inline PresignedUrlConfig& WithExpiresInSec(long long value) {
71 SetExpiresInSec(value);
72 return *this;
73 }
75 private:
76 Aws::String m_roleArn;
77
78 long long m_expiresInSec{0};
79 bool m_roleArnHasBeenSet = false;
80 bool m_expiresInSecHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace IoT
85} // 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