AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
S3ObjectDetail.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_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 GuardDuty
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_GUARDDUTY_API S3ObjectDetail();
36 AWS_GUARDDUTY_API S3ObjectDetail(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetObjectArn() const{ return m_objectArn; }
46 inline bool ObjectArnHasBeenSet() const { return m_objectArnHasBeenSet; }
47 inline void SetObjectArn(const Aws::String& value) { m_objectArnHasBeenSet = true; m_objectArn = value; }
48 inline void SetObjectArn(Aws::String&& value) { m_objectArnHasBeenSet = true; m_objectArn = std::move(value); }
49 inline void SetObjectArn(const char* value) { m_objectArnHasBeenSet = true; m_objectArn.assign(value); }
50 inline S3ObjectDetail& WithObjectArn(const Aws::String& value) { SetObjectArn(value); return *this;}
51 inline S3ObjectDetail& WithObjectArn(Aws::String&& value) { SetObjectArn(std::move(value)); return *this;}
52 inline S3ObjectDetail& WithObjectArn(const char* value) { SetObjectArn(value); return *this;}
54
56
59 inline const Aws::String& GetKey() const{ return m_key; }
60 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
61 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
62 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
63 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
64 inline S3ObjectDetail& WithKey(const Aws::String& value) { SetKey(value); return *this;}
65 inline S3ObjectDetail& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
66 inline S3ObjectDetail& WithKey(const char* value) { SetKey(value); return *this;}
68
70
74 inline const Aws::String& GetETag() const{ return m_eTag; }
75 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
76 inline void SetETag(const Aws::String& value) { m_eTagHasBeenSet = true; m_eTag = value; }
77 inline void SetETag(Aws::String&& value) { m_eTagHasBeenSet = true; m_eTag = std::move(value); }
78 inline void SetETag(const char* value) { m_eTagHasBeenSet = true; m_eTag.assign(value); }
79 inline S3ObjectDetail& WithETag(const Aws::String& value) { SetETag(value); return *this;}
80 inline S3ObjectDetail& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;}
81 inline S3ObjectDetail& WithETag(const char* value) { SetETag(value); return *this;}
83
85
88 inline const Aws::String& GetHash() const{ return m_hash; }
89 inline bool HashHasBeenSet() const { return m_hashHasBeenSet; }
90 inline void SetHash(const Aws::String& value) { m_hashHasBeenSet = true; m_hash = value; }
91 inline void SetHash(Aws::String&& value) { m_hashHasBeenSet = true; m_hash = std::move(value); }
92 inline void SetHash(const char* value) { m_hashHasBeenSet = true; m_hash.assign(value); }
93 inline S3ObjectDetail& WithHash(const Aws::String& value) { SetHash(value); return *this;}
94 inline S3ObjectDetail& WithHash(Aws::String&& value) { SetHash(std::move(value)); return *this;}
95 inline S3ObjectDetail& WithHash(const char* value) { SetHash(value); return *this;}
97
99
102 inline const Aws::String& GetVersionId() const{ return m_versionId; }
103 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
104 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
105 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
106 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
107 inline S3ObjectDetail& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
108 inline S3ObjectDetail& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
109 inline S3ObjectDetail& WithVersionId(const char* value) { SetVersionId(value); return *this;}
111 private:
112
113 Aws::String m_objectArn;
114 bool m_objectArnHasBeenSet = false;
115
116 Aws::String m_key;
117 bool m_keyHasBeenSet = false;
118
119 Aws::String m_eTag;
120 bool m_eTagHasBeenSet = false;
121
122 Aws::String m_hash;
123 bool m_hashHasBeenSet = false;
124
125 Aws::String m_versionId;
126 bool m_versionIdHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace GuardDuty
131} // namespace Aws
S3ObjectDetail & WithKey(const char *value)
const Aws::String & GetHash() const
AWS_GUARDDUTY_API S3ObjectDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetVersionId(const Aws::String &value)
void SetETag(const Aws::String &value)
void SetHash(const Aws::String &value)
void SetObjectArn(Aws::String &&value)
void SetObjectArn(const char *value)
void SetHash(Aws::String &&value)
S3ObjectDetail & WithObjectArn(const char *value)
const Aws::String & GetVersionId() const
void SetKey(Aws::String &&value)
void SetETag(Aws::String &&value)
S3ObjectDetail & WithETag(Aws::String &&value)
S3ObjectDetail & WithObjectArn(Aws::String &&value)
S3ObjectDetail & WithHash(const Aws::String &value)
AWS_GUARDDUTY_API S3ObjectDetail(Aws::Utils::Json::JsonView jsonValue)
S3ObjectDetail & WithHash(const char *value)
S3ObjectDetail & WithVersionId(const char *value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
S3ObjectDetail & WithKey(Aws::String &&value)
S3ObjectDetail & WithHash(Aws::String &&value)
void SetObjectArn(const Aws::String &value)
void SetKey(const Aws::String &value)
S3ObjectDetail & WithObjectArn(const Aws::String &value)
S3ObjectDetail & WithVersionId(const Aws::String &value)
const Aws::String & GetKey() const
S3ObjectDetail & WithVersionId(Aws::String &&value)
S3ObjectDetail & WithETag(const char *value)
S3ObjectDetail & WithKey(const Aws::String &value)
const Aws::String & GetETag() const
void SetVersionId(Aws::String &&value)
S3ObjectDetail & WithETag(const Aws::String &value)
const Aws::String & GetObjectArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue