AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OpsMetadata.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SSM
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SSM_API OpsMetadata();
40
41
43
46 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
47 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
48 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
49 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
50 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
51 inline OpsMetadata& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
52 inline OpsMetadata& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
53 inline OpsMetadata& WithResourceId(const char* value) { SetResourceId(value); return *this;}
55
57
60 inline const Aws::String& GetOpsMetadataArn() const{ return m_opsMetadataArn; }
61 inline bool OpsMetadataArnHasBeenSet() const { return m_opsMetadataArnHasBeenSet; }
62 inline void SetOpsMetadataArn(const Aws::String& value) { m_opsMetadataArnHasBeenSet = true; m_opsMetadataArn = value; }
63 inline void SetOpsMetadataArn(Aws::String&& value) { m_opsMetadataArnHasBeenSet = true; m_opsMetadataArn = std::move(value); }
64 inline void SetOpsMetadataArn(const char* value) { m_opsMetadataArnHasBeenSet = true; m_opsMetadataArn.assign(value); }
65 inline OpsMetadata& WithOpsMetadataArn(const Aws::String& value) { SetOpsMetadataArn(value); return *this;}
66 inline OpsMetadata& WithOpsMetadataArn(Aws::String&& value) { SetOpsMetadataArn(std::move(value)); return *this;}
67 inline OpsMetadata& WithOpsMetadataArn(const char* value) { SetOpsMetadataArn(value); return *this;}
69
71
74 inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
75 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
76 inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
77 inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); }
78 inline OpsMetadata& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;}
79 inline OpsMetadata& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;}
81
83
86 inline const Aws::String& GetLastModifiedUser() const{ return m_lastModifiedUser; }
87 inline bool LastModifiedUserHasBeenSet() const { return m_lastModifiedUserHasBeenSet; }
88 inline void SetLastModifiedUser(const Aws::String& value) { m_lastModifiedUserHasBeenSet = true; m_lastModifiedUser = value; }
89 inline void SetLastModifiedUser(Aws::String&& value) { m_lastModifiedUserHasBeenSet = true; m_lastModifiedUser = std::move(value); }
90 inline void SetLastModifiedUser(const char* value) { m_lastModifiedUserHasBeenSet = true; m_lastModifiedUser.assign(value); }
91 inline OpsMetadata& WithLastModifiedUser(const Aws::String& value) { SetLastModifiedUser(value); return *this;}
92 inline OpsMetadata& WithLastModifiedUser(Aws::String&& value) { SetLastModifiedUser(std::move(value)); return *this;}
93 inline OpsMetadata& WithLastModifiedUser(const char* value) { SetLastModifiedUser(value); return *this;}
95
97
100 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
101 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
102 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
103 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
104 inline OpsMetadata& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
105 inline OpsMetadata& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
107 private:
108
109 Aws::String m_resourceId;
110 bool m_resourceIdHasBeenSet = false;
111
112 Aws::String m_opsMetadataArn;
113 bool m_opsMetadataArnHasBeenSet = false;
114
115 Aws::Utils::DateTime m_lastModifiedDate;
116 bool m_lastModifiedDateHasBeenSet = false;
117
118 Aws::String m_lastModifiedUser;
119 bool m_lastModifiedUserHasBeenSet = false;
120
121 Aws::Utils::DateTime m_creationDate;
122 bool m_creationDateHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace SSM
127} // namespace Aws
OpsMetadata & WithLastModifiedUser(const Aws::String &value)
Definition OpsMetadata.h:91
void SetOpsMetadataArn(const char *value)
Definition OpsMetadata.h:64
const Aws::Utils::DateTime & GetCreationDate() const
const Aws::String & GetOpsMetadataArn() const
Definition OpsMetadata.h:60
void SetResourceId(const char *value)
Definition OpsMetadata.h:50
void SetCreationDate(Aws::Utils::DateTime &&value)
void SetLastModifiedDate(const Aws::Utils::DateTime &value)
Definition OpsMetadata.h:76
bool CreationDateHasBeenSet() const
OpsMetadata & WithOpsMetadataArn(Aws::String &&value)
Definition OpsMetadata.h:66
AWS_SSM_API OpsMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOpsMetadataArn(const Aws::String &value)
Definition OpsMetadata.h:62
OpsMetadata & WithOpsMetadataArn(const char *value)
Definition OpsMetadata.h:67
OpsMetadata & WithLastModifiedDate(const Aws::Utils::DateTime &value)
Definition OpsMetadata.h:78
OpsMetadata & WithLastModifiedDate(Aws::Utils::DateTime &&value)
Definition OpsMetadata.h:79
void SetOpsMetadataArn(Aws::String &&value)
Definition OpsMetadata.h:63
OpsMetadata & WithLastModifiedUser(Aws::String &&value)
Definition OpsMetadata.h:92
void SetResourceId(const Aws::String &value)
Definition OpsMetadata.h:48
OpsMetadata & WithLastModifiedUser(const char *value)
Definition OpsMetadata.h:93
OpsMetadata & WithCreationDate(const Aws::Utils::DateTime &value)
void SetResourceId(Aws::String &&value)
Definition OpsMetadata.h:49
OpsMetadata & WithResourceId(Aws::String &&value)
Definition OpsMetadata.h:52
void SetCreationDate(const Aws::Utils::DateTime &value)
const Aws::String & GetResourceId() const
Definition OpsMetadata.h:46
const Aws::Utils::DateTime & GetLastModifiedDate() const
Definition OpsMetadata.h:74
bool LastModifiedUserHasBeenSet() const
Definition OpsMetadata.h:87
OpsMetadata & WithOpsMetadataArn(const Aws::String &value)
Definition OpsMetadata.h:65
void SetLastModifiedUser(const char *value)
Definition OpsMetadata.h:90
bool LastModifiedDateHasBeenSet() const
Definition OpsMetadata.h:75
void SetLastModifiedDate(Aws::Utils::DateTime &&value)
Definition OpsMetadata.h:77
OpsMetadata & WithResourceId(const char *value)
Definition OpsMetadata.h:53
AWS_SSM_API OpsMetadata(Aws::Utils::Json::JsonView jsonValue)
OpsMetadata & WithResourceId(const Aws::String &value)
Definition OpsMetadata.h:51
bool ResourceIdHasBeenSet() const
Definition OpsMetadata.h:47
const Aws::String & GetLastModifiedUser() const
Definition OpsMetadata.h:86
OpsMetadata & WithCreationDate(Aws::Utils::DateTime &&value)
bool OpsMetadataArnHasBeenSet() const
Definition OpsMetadata.h:61
void SetLastModifiedUser(const Aws::String &value)
Definition OpsMetadata.h:88
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLastModifiedUser(Aws::String &&value)
Definition OpsMetadata.h:89
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue