AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
ConnectionAliasPermission.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/workspaces/WorkSpaces_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace WorkSpaces {
20namespace Model {
21
32 public:
33 AWS_WORKSPACES_API ConnectionAliasPermission() = default;
34 AWS_WORKSPACES_API ConnectionAliasPermission(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_WORKSPACES_API ConnectionAliasPermission& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
43 inline const Aws::String& GetSharedAccountId() const { return m_sharedAccountId; }
44 inline bool SharedAccountIdHasBeenSet() const { return m_sharedAccountIdHasBeenSet; }
45 template <typename SharedAccountIdT = Aws::String>
46 void SetSharedAccountId(SharedAccountIdT&& value) {
47 m_sharedAccountIdHasBeenSet = true;
48 m_sharedAccountId = std::forward<SharedAccountIdT>(value);
49 }
50 template <typename SharedAccountIdT = Aws::String>
52 SetSharedAccountId(std::forward<SharedAccountIdT>(value));
53 return *this;
54 }
56
58
62 inline bool GetAllowAssociation() const { return m_allowAssociation; }
63 inline bool AllowAssociationHasBeenSet() const { return m_allowAssociationHasBeenSet; }
64 inline void SetAllowAssociation(bool value) {
65 m_allowAssociationHasBeenSet = true;
66 m_allowAssociation = value;
67 }
70 return *this;
71 }
73 private:
74 Aws::String m_sharedAccountId;
75
76 bool m_allowAssociation{false};
77 bool m_sharedAccountIdHasBeenSet = false;
78 bool m_allowAssociationHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace WorkSpaces
83} // namespace Aws
AWS_WORKSPACES_API ConnectionAliasPermission()=default
AWS_WORKSPACES_API ConnectionAliasPermission & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_WORKSPACES_API ConnectionAliasPermission(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ConnectionAliasPermission & WithSharedAccountId(SharedAccountIdT &&value)
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ConnectionAliasPermission & WithAllowAssociation(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String