AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSharedAccountId(const Aws::String& value) { m_sharedAccountIdHasBeenSet = true; m_sharedAccountId = value; }
52 inline void SetSharedAccountId(Aws::String&& value) { m_sharedAccountIdHasBeenSet = true; m_sharedAccountId = std::move(value); }
53 inline void SetSharedAccountId(const char* value) { m_sharedAccountIdHasBeenSet = true; m_sharedAccountId.assign(value); }
54 inline ConnectionAliasPermission& WithSharedAccountId(const Aws::String& value) { SetSharedAccountId(value); return *this;}
55 inline ConnectionAliasPermission& WithSharedAccountId(Aws::String&& value) { SetSharedAccountId(std::move(value)); return *this;}
56 inline ConnectionAliasPermission& WithSharedAccountId(const char* value) { SetSharedAccountId(value); return *this;}
58
60
64 inline bool GetAllowAssociation() const{ return m_allowAssociation; }
65 inline bool AllowAssociationHasBeenSet() const { return m_allowAssociationHasBeenSet; }
66 inline void SetAllowAssociation(bool value) { m_allowAssociationHasBeenSet = true; m_allowAssociation = value; }
67 inline ConnectionAliasPermission& WithAllowAssociation(bool value) { SetAllowAssociation(value); return *this;}
69 private:
70
71 Aws::String m_sharedAccountId;
72 bool m_sharedAccountIdHasBeenSet = false;
73
74 bool m_allowAssociation;
75 bool m_allowAssociationHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace WorkSpaces
80} // namespace Aws
ConnectionAliasPermission & WithSharedAccountId(const char *value)
AWS_WORKSPACES_API ConnectionAliasPermission & operator=(Aws::Utils::Json::JsonView jsonValue)
ConnectionAliasPermission & WithSharedAccountId(const Aws::String &value)
AWS_WORKSPACES_API ConnectionAliasPermission(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
ConnectionAliasPermission & WithSharedAccountId(Aws::String &&value)
ConnectionAliasPermission & WithAllowAssociation(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue