AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SessionConfiguration.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/athena/model/EncryptionConfiguration.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Athena
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_ATHENA_API SessionConfiguration() = default;
38 AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
48 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
49 template<typename ExecutionRoleT = Aws::String>
50 void SetExecutionRole(ExecutionRoleT&& value) { m_executionRoleHasBeenSet = true; m_executionRole = std::forward<ExecutionRoleT>(value); }
51 template<typename ExecutionRoleT = Aws::String>
52 SessionConfiguration& WithExecutionRole(ExecutionRoleT&& value) { SetExecutionRole(std::forward<ExecutionRoleT>(value)); return *this;}
54
56
59 inline const Aws::String& GetWorkingDirectory() const { return m_workingDirectory; }
60 inline bool WorkingDirectoryHasBeenSet() const { return m_workingDirectoryHasBeenSet; }
61 template<typename WorkingDirectoryT = Aws::String>
62 void SetWorkingDirectory(WorkingDirectoryT&& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = std::forward<WorkingDirectoryT>(value); }
63 template<typename WorkingDirectoryT = Aws::String>
64 SessionConfiguration& WithWorkingDirectory(WorkingDirectoryT&& value) { SetWorkingDirectory(std::forward<WorkingDirectoryT>(value)); return *this;}
66
68
71 inline long long GetIdleTimeoutSeconds() const { return m_idleTimeoutSeconds; }
72 inline bool IdleTimeoutSecondsHasBeenSet() const { return m_idleTimeoutSecondsHasBeenSet; }
73 inline void SetIdleTimeoutSeconds(long long value) { m_idleTimeoutSecondsHasBeenSet = true; m_idleTimeoutSeconds = value; }
74 inline SessionConfiguration& WithIdleTimeoutSeconds(long long value) { SetIdleTimeoutSeconds(value); return *this;}
76
78
79 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
80 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
81 template<typename EncryptionConfigurationT = EncryptionConfiguration>
82 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value); }
83 template<typename EncryptionConfigurationT = EncryptionConfiguration>
84 SessionConfiguration& WithEncryptionConfiguration(EncryptionConfigurationT&& value) { SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value)); return *this;}
86 private:
87
88 Aws::String m_executionRole;
89 bool m_executionRoleHasBeenSet = false;
90
91 Aws::String m_workingDirectory;
92 bool m_workingDirectoryHasBeenSet = false;
93
94 long long m_idleTimeoutSeconds{0};
95 bool m_idleTimeoutSecondsHasBeenSet = false;
96
97 EncryptionConfiguration m_encryptionConfiguration;
98 bool m_encryptionConfigurationHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace Athena
103} // namespace Aws
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
SessionConfiguration & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
AWS_ATHENA_API SessionConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ATHENA_API SessionConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetWorkingDirectory() const
SessionConfiguration & WithWorkingDirectory(WorkingDirectoryT &&value)
void SetExecutionRole(ExecutionRoleT &&value)
const EncryptionConfiguration & GetEncryptionConfiguration() const
void SetWorkingDirectory(WorkingDirectoryT &&value)
AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ATHENA_API SessionConfiguration()=default
SessionConfiguration & WithIdleTimeoutSeconds(long long value)
SessionConfiguration & WithExecutionRole(ExecutionRoleT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue