AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Grantee.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/s3control/model/GranteeType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3Control
22{
23namespace Model
24{
25
35 class Grantee
36 {
37 public:
38 AWS_S3CONTROL_API Grantee();
39 AWS_S3CONTROL_API Grantee(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_S3CONTROL_API Grantee& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43
44
46
58 inline const GranteeType& GetGranteeType() const{ return m_granteeType; }
59 inline bool GranteeTypeHasBeenSet() const { return m_granteeTypeHasBeenSet; }
60 inline void SetGranteeType(const GranteeType& value) { m_granteeTypeHasBeenSet = true; m_granteeType = value; }
61 inline void SetGranteeType(GranteeType&& value) { m_granteeTypeHasBeenSet = true; m_granteeType = std::move(value); }
62 inline Grantee& WithGranteeType(const GranteeType& value) { SetGranteeType(value); return *this;}
63 inline Grantee& WithGranteeType(GranteeType&& value) { SetGranteeType(std::move(value)); return *this;}
65
67
75 inline const Aws::String& GetGranteeIdentifier() const{ return m_granteeIdentifier; }
76 inline bool GranteeIdentifierHasBeenSet() const { return m_granteeIdentifierHasBeenSet; }
77 inline void SetGranteeIdentifier(const Aws::String& value) { m_granteeIdentifierHasBeenSet = true; m_granteeIdentifier = value; }
78 inline void SetGranteeIdentifier(Aws::String&& value) { m_granteeIdentifierHasBeenSet = true; m_granteeIdentifier = std::move(value); }
79 inline void SetGranteeIdentifier(const char* value) { m_granteeIdentifierHasBeenSet = true; m_granteeIdentifier.assign(value); }
80 inline Grantee& WithGranteeIdentifier(const Aws::String& value) { SetGranteeIdentifier(value); return *this;}
81 inline Grantee& WithGranteeIdentifier(Aws::String&& value) { SetGranteeIdentifier(std::move(value)); return *this;}
82 inline Grantee& WithGranteeIdentifier(const char* value) { SetGranteeIdentifier(value); return *this;}
84 private:
85
86 GranteeType m_granteeType;
87 bool m_granteeTypeHasBeenSet = false;
88
89 Aws::String m_granteeIdentifier;
90 bool m_granteeIdentifierHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace S3Control
95} // namespace Aws
Grantee & WithGranteeIdentifier(const char *value)
Definition Grantee.h:82
void SetGranteeType(GranteeType &&value)
Definition Grantee.h:61
Grantee & WithGranteeIdentifier(const Aws::String &value)
Definition Grantee.h:80
Grantee & WithGranteeIdentifier(Aws::String &&value)
Definition Grantee.h:81
const Aws::String & GetGranteeIdentifier() const
Definition Grantee.h:75
Grantee & WithGranteeType(const GranteeType &value)
Definition Grantee.h:62
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetGranteeIdentifier(const char *value)
Definition Grantee.h:79
AWS_S3CONTROL_API Grantee & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetGranteeIdentifier(const Aws::String &value)
Definition Grantee.h:77
AWS_S3CONTROL_API Grantee()
void SetGranteeType(const GranteeType &value)
Definition Grantee.h:60
AWS_S3CONTROL_API Grantee(const Aws::Utils::Xml::XmlNode &xmlNode)
bool GranteeIdentifierHasBeenSet() const
Definition Grantee.h:76
Grantee & WithGranteeType(GranteeType &&value)
Definition Grantee.h:63
const GranteeType & GetGranteeType() const
Definition Grantee.h:58
void SetGranteeIdentifier(Aws::String &&value)
Definition Grantee.h:78
bool GranteeTypeHasBeenSet() const
Definition Grantee.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String