AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateS3BucketResource.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 GuardDuty
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_GUARDDUTY_API CreateS3BucketResource();
39 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetBucketName() const{ return m_bucketName; }
47 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
48 inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
49 inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
50 inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
51 inline CreateS3BucketResource& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
52 inline CreateS3BucketResource& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
53 inline CreateS3BucketResource& WithBucketName(const char* value) { SetBucketName(value); return *this;}
55
57
61 inline const Aws::Vector<Aws::String>& GetObjectPrefixes() const{ return m_objectPrefixes; }
62 inline bool ObjectPrefixesHasBeenSet() const { return m_objectPrefixesHasBeenSet; }
63 inline void SetObjectPrefixes(const Aws::Vector<Aws::String>& value) { m_objectPrefixesHasBeenSet = true; m_objectPrefixes = value; }
64 inline void SetObjectPrefixes(Aws::Vector<Aws::String>&& value) { m_objectPrefixesHasBeenSet = true; m_objectPrefixes = std::move(value); }
66 inline CreateS3BucketResource& WithObjectPrefixes(Aws::Vector<Aws::String>&& value) { SetObjectPrefixes(std::move(value)); return *this;}
67 inline CreateS3BucketResource& AddObjectPrefixes(const Aws::String& value) { m_objectPrefixesHasBeenSet = true; m_objectPrefixes.push_back(value); return *this; }
68 inline CreateS3BucketResource& AddObjectPrefixes(Aws::String&& value) { m_objectPrefixesHasBeenSet = true; m_objectPrefixes.push_back(std::move(value)); return *this; }
69 inline CreateS3BucketResource& AddObjectPrefixes(const char* value) { m_objectPrefixesHasBeenSet = true; m_objectPrefixes.push_back(value); return *this; }
71 private:
72
73 Aws::String m_bucketName;
74 bool m_bucketNameHasBeenSet = false;
75
76 Aws::Vector<Aws::String> m_objectPrefixes;
77 bool m_objectPrefixesHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace GuardDuty
82} // namespace Aws
CreateS3BucketResource & WithBucketName(const Aws::String &value)
AWS_GUARDDUTY_API CreateS3BucketResource(Aws::Utils::Json::JsonView jsonValue)
CreateS3BucketResource & WithObjectPrefixes(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetObjectPrefixes() const
CreateS3BucketResource & WithBucketName(Aws::String &&value)
CreateS3BucketResource & AddObjectPrefixes(const Aws::String &value)
CreateS3BucketResource & AddObjectPrefixes(Aws::String &&value)
CreateS3BucketResource & AddObjectPrefixes(const char *value)
CreateS3BucketResource & WithBucketName(const char *value)
void SetObjectPrefixes(Aws::Vector< Aws::String > &&value)
CreateS3BucketResource & WithObjectPrefixes(Aws::Vector< Aws::String > &&value)
AWS_GUARDDUTY_API CreateS3BucketResource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetObjectPrefixes(const Aws::Vector< Aws::String > &value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue