AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
Permissions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/datazone/DataZone_EXPORTS.h>
9#include <aws/datazone/model/S3Permission.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DataZone {
21namespace Model {
22
29 public:
30 AWS_DATAZONE_API Permissions() = default;
31 AWS_DATAZONE_API Permissions(Aws::Utils::Json::JsonView jsonValue);
32 AWS_DATAZONE_API Permissions& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Vector<S3Permission>& GetS3() const { return m_s3; }
40 inline bool S3HasBeenSet() const { return m_s3HasBeenSet; }
41 template <typename S3T = Aws::Vector<S3Permission>>
42 void SetS3(S3T&& value) {
43 m_s3HasBeenSet = true;
44 m_s3 = std::forward<S3T>(value);
45 }
46 template <typename S3T = Aws::Vector<S3Permission>>
47 Permissions& WithS3(S3T&& value) {
48 SetS3(std::forward<S3T>(value));
49 return *this;
50 }
52 m_s3HasBeenSet = true;
53 m_s3.push_back(value);
54 return *this;
55 }
57 private:
59 bool m_s3HasBeenSet = false;
60};
61
62} // namespace Model
63} // namespace DataZone
64} // namespace Aws
AWS_DATAZONE_API Permissions(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API Permissions & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< S3Permission > & GetS3() const
Definition Permissions.h:39
Permissions & AddS3(S3Permission value)
Definition Permissions.h:51
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DATAZONE_API Permissions()=default
Permissions & WithS3(S3T &&value)
Definition Permissions.h:47
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue