AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
DebugSession.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace CodeBuild {
20namespace Model {
21
31 public:
32 AWS_CODEBUILD_API DebugSession() = default;
33 AWS_CODEBUILD_API DebugSession(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CODEBUILD_API DebugSession& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CODEBUILD_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
41 inline bool GetSessionEnabled() const { return m_sessionEnabled; }
42 inline bool SessionEnabledHasBeenSet() const { return m_sessionEnabledHasBeenSet; }
43 inline void SetSessionEnabled(bool value) {
44 m_sessionEnabledHasBeenSet = true;
45 m_sessionEnabled = value;
46 }
47 inline DebugSession& WithSessionEnabled(bool value) {
48 SetSessionEnabled(value);
49 return *this;
50 }
52
54
59 inline const Aws::String& GetSessionTarget() const { return m_sessionTarget; }
60 inline bool SessionTargetHasBeenSet() const { return m_sessionTargetHasBeenSet; }
61 template <typename SessionTargetT = Aws::String>
62 void SetSessionTarget(SessionTargetT&& value) {
63 m_sessionTargetHasBeenSet = true;
64 m_sessionTarget = std::forward<SessionTargetT>(value);
65 }
66 template <typename SessionTargetT = Aws::String>
67 DebugSession& WithSessionTarget(SessionTargetT&& value) {
68 SetSessionTarget(std::forward<SessionTargetT>(value));
69 return *this;
70 }
72 private:
73 bool m_sessionEnabled{false};
74
75 Aws::String m_sessionTarget;
76 bool m_sessionEnabledHasBeenSet = false;
77 bool m_sessionTargetHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace CodeBuild
82} // namespace Aws
DebugSession & WithSessionEnabled(bool value)
AWS_CODEBUILD_API DebugSession()=default
AWS_CODEBUILD_API DebugSession & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
DebugSession & WithSessionTarget(SessionTargetT &&value)
AWS_CODEBUILD_API DebugSession(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CODEBUILD_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetSessionTarget(SessionTargetT &&value)
const Aws::String & GetSessionTarget() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String