AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Directory.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/clouddirectory/model/DirectoryState.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CloudDirectory
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CLOUDDIRECTORY_API Directory();
38 AWS_CLOUDDIRECTORY_API Directory(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDDIRECTORY_API Directory& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline Directory& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline Directory& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline Directory& WithName(const char* value) { SetName(value); return *this;}
56
58
62 inline const Aws::String& GetDirectoryArn() const{ return m_directoryArn; }
63 inline bool DirectoryArnHasBeenSet() const { return m_directoryArnHasBeenSet; }
64 inline void SetDirectoryArn(const Aws::String& value) { m_directoryArnHasBeenSet = true; m_directoryArn = value; }
65 inline void SetDirectoryArn(Aws::String&& value) { m_directoryArnHasBeenSet = true; m_directoryArn = std::move(value); }
66 inline void SetDirectoryArn(const char* value) { m_directoryArnHasBeenSet = true; m_directoryArn.assign(value); }
67 inline Directory& WithDirectoryArn(const Aws::String& value) { SetDirectoryArn(value); return *this;}
68 inline Directory& WithDirectoryArn(Aws::String&& value) { SetDirectoryArn(std::move(value)); return *this;}
69 inline Directory& WithDirectoryArn(const char* value) { SetDirectoryArn(value); return *this;}
71
73
77 inline const DirectoryState& GetState() const{ return m_state; }
78 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
79 inline void SetState(const DirectoryState& value) { m_stateHasBeenSet = true; m_state = value; }
80 inline void SetState(DirectoryState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
81 inline Directory& WithState(const DirectoryState& value) { SetState(value); return *this;}
82 inline Directory& WithState(DirectoryState&& value) { SetState(std::move(value)); return *this;}
84
86
89 inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; }
90 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
91 inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; }
92 inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); }
93 inline Directory& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;}
94 inline Directory& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;}
96 private:
97
98 Aws::String m_name;
99 bool m_nameHasBeenSet = false;
100
101 Aws::String m_directoryArn;
102 bool m_directoryArnHasBeenSet = false;
103
104 DirectoryState m_state;
105 bool m_stateHasBeenSet = false;
106
107 Aws::Utils::DateTime m_creationDateTime;
108 bool m_creationDateTimeHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace CloudDirectory
113} // namespace Aws
Directory & WithState(const DirectoryState &value)
Definition Directory.h:81
AWS_CLOUDDIRECTORY_API Directory & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreationDateTime() const
Definition Directory.h:89
Directory & WithDirectoryArn(const Aws::String &value)
Definition Directory.h:67
const Aws::String & GetDirectoryArn() const
Definition Directory.h:62
void SetName(const Aws::String &value)
Definition Directory.h:49
Directory & WithDirectoryArn(const char *value)
Definition Directory.h:69
Directory & WithCreationDateTime(const Aws::Utils::DateTime &value)
Definition Directory.h:93
AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDirectoryArn(Aws::String &&value)
Definition Directory.h:65
Directory & WithState(DirectoryState &&value)
Definition Directory.h:82
AWS_CLOUDDIRECTORY_API Directory(Aws::Utils::Json::JsonView jsonValue)
void SetState(DirectoryState &&value)
Definition Directory.h:80
void SetState(const DirectoryState &value)
Definition Directory.h:79
void SetName(Aws::String &&value)
Definition Directory.h:50
void SetCreationDateTime(const Aws::Utils::DateTime &value)
Definition Directory.h:91
Directory & WithName(const Aws::String &value)
Definition Directory.h:52
void SetName(const char *value)
Definition Directory.h:51
void SetDirectoryArn(const Aws::String &value)
Definition Directory.h:64
Directory & WithDirectoryArn(Aws::String &&value)
Definition Directory.h:68
Directory & WithCreationDateTime(Aws::Utils::DateTime &&value)
Definition Directory.h:94
const Aws::String & GetName() const
Definition Directory.h:47
const DirectoryState & GetState() const
Definition Directory.h:77
Directory & WithName(const char *value)
Definition Directory.h:54
Directory & WithName(Aws::String &&value)
Definition Directory.h:53
void SetCreationDateTime(Aws::Utils::DateTime &&value)
Definition Directory.h:92
void SetDirectoryArn(const char *value)
Definition Directory.h:66
AWS_CLOUDDIRECTORY_API Directory()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue