AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ConnectionAliasPermission.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_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 WorkSpaces
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_WORKSPACES_API ConnectionAliasPermission() = default;
41 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetSharedAccountId() const { return m_sharedAccountId; }
50 inline bool SharedAccountIdHasBeenSet() const { return m_sharedAccountIdHasBeenSet; }
51 template<typename SharedAccountIdT = Aws::String>
52 void SetSharedAccountId(SharedAccountIdT&& value) { m_sharedAccountIdHasBeenSet = true; m_sharedAccountId = std::forward<SharedAccountIdT>(value); }
53 template<typename SharedAccountIdT = Aws::String>
54 ConnectionAliasPermission& WithSharedAccountId(SharedAccountIdT&& value) { SetSharedAccountId(std::forward<SharedAccountIdT>(value)); return *this;}
56
58
62 inline bool GetAllowAssociation() const { return m_allowAssociation; }
63 inline bool AllowAssociationHasBeenSet() const { return m_allowAssociationHasBeenSet; }
64 inline void SetAllowAssociation(bool value) { m_allowAssociationHasBeenSet = true; m_allowAssociation = value; }
65 inline ConnectionAliasPermission& WithAllowAssociation(bool value) { SetAllowAssociation(value); return *this;}
67 private:
68
69 Aws::String m_sharedAccountId;
70 bool m_sharedAccountIdHasBeenSet = false;
71
72 bool m_allowAssociation{false};
73 bool m_allowAssociationHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace WorkSpaces
78} // namespace Aws
AWS_WORKSPACES_API ConnectionAliasPermission()=default
ConnectionAliasPermission & WithSharedAccountId(SharedAccountIdT &&value)
AWS_WORKSPACES_API ConnectionAliasPermission & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKSPACES_API ConnectionAliasPermission(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
ConnectionAliasPermission & WithAllowAssociation(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue