AWS SDK for C++  1.9.107
AWS SDK for C++
PublicAccess.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace GuardDuty
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
46  inline const PermissionConfiguration& GetPermissionConfiguration() const{ return m_permissionConfiguration; }
47 
52  inline bool PermissionConfigurationHasBeenSet() const { return m_permissionConfigurationHasBeenSet; }
53 
58  inline void SetPermissionConfiguration(const PermissionConfiguration& value) { m_permissionConfigurationHasBeenSet = true; m_permissionConfiguration = value; }
59 
64  inline void SetPermissionConfiguration(PermissionConfiguration&& value) { m_permissionConfigurationHasBeenSet = true; m_permissionConfiguration = std::move(value); }
65 
70  inline PublicAccess& WithPermissionConfiguration(const PermissionConfiguration& value) { SetPermissionConfiguration(value); return *this;}
71 
76  inline PublicAccess& WithPermissionConfiguration(PermissionConfiguration&& value) { SetPermissionConfiguration(std::move(value)); return *this;}
77 
78 
83  inline const Aws::String& GetEffectivePermission() const{ return m_effectivePermission; }
84 
89  inline bool EffectivePermissionHasBeenSet() const { return m_effectivePermissionHasBeenSet; }
90 
95  inline void SetEffectivePermission(const Aws::String& value) { m_effectivePermissionHasBeenSet = true; m_effectivePermission = value; }
96 
101  inline void SetEffectivePermission(Aws::String&& value) { m_effectivePermissionHasBeenSet = true; m_effectivePermission = std::move(value); }
102 
107  inline void SetEffectivePermission(const char* value) { m_effectivePermissionHasBeenSet = true; m_effectivePermission.assign(value); }
108 
113  inline PublicAccess& WithEffectivePermission(const Aws::String& value) { SetEffectivePermission(value); return *this;}
114 
119  inline PublicAccess& WithEffectivePermission(Aws::String&& value) { SetEffectivePermission(std::move(value)); return *this;}
120 
125  inline PublicAccess& WithEffectivePermission(const char* value) { SetEffectivePermission(value); return *this;}
126 
127  private:
128 
129  PermissionConfiguration m_permissionConfiguration;
130  bool m_permissionConfigurationHasBeenSet;
131 
132  Aws::String m_effectivePermission;
133  bool m_effectivePermissionHasBeenSet;
134  };
135 
136 } // namespace Model
137 } // namespace GuardDuty
138 } // namespace Aws
Aws::GuardDuty::Model::PublicAccess::PublicAccess
PublicAccess()
Aws::GuardDuty::Model::PublicAccess::SetEffectivePermission
void SetEffectivePermission(const Aws::String &value)
Definition: PublicAccess.h:95
Aws::GuardDuty::Model::PublicAccess::operator=
PublicAccess & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::PublicAccess::WithPermissionConfiguration
PublicAccess & WithPermissionConfiguration(PermissionConfiguration &&value)
Definition: PublicAccess.h:76
Aws::GuardDuty::Model::PublicAccess::PermissionConfigurationHasBeenSet
bool PermissionConfigurationHasBeenSet() const
Definition: PublicAccess.h:52
Aws::GuardDuty::Model::PublicAccess::SetPermissionConfiguration
void SetPermissionConfiguration(PermissionConfiguration &&value)
Definition: PublicAccess.h:64
Aws::GuardDuty::Model::PublicAccess::SetEffectivePermission
void SetEffectivePermission(const char *value)
Definition: PublicAccess.h:107
Aws::GuardDuty::Model::PermissionConfiguration
Definition: PermissionConfiguration.h:34
GuardDuty_EXPORTS.h
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::PublicAccess::WithEffectivePermission
PublicAccess & WithEffectivePermission(const char *value)
Definition: PublicAccess.h:125
Aws::GuardDuty::Model::PublicAccess::WithEffectivePermission
PublicAccess & WithEffectivePermission(const Aws::String &value)
Definition: PublicAccess.h:113
Aws::GuardDuty::Model::PublicAccess::GetEffectivePermission
const Aws::String & GetEffectivePermission() const
Definition: PublicAccess.h:83
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::GuardDuty::Model::PublicAccess::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::PublicAccess
Definition: PublicAccess.h:34
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GuardDuty::Model::PublicAccess::PublicAccess
PublicAccess(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::PublicAccess::EffectivePermissionHasBeenSet
bool EffectivePermissionHasBeenSet() const
Definition: PublicAccess.h:89
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::PublicAccess::SetEffectivePermission
void SetEffectivePermission(Aws::String &&value)
Definition: PublicAccess.h:101
Aws::GuardDuty::Model::PublicAccess::SetPermissionConfiguration
void SetPermissionConfiguration(const PermissionConfiguration &value)
Definition: PublicAccess.h:58
Aws::GuardDuty::Model::PublicAccess::WithPermissionConfiguration
PublicAccess & WithPermissionConfiguration(const PermissionConfiguration &value)
Definition: PublicAccess.h:70
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::PublicAccess::GetPermissionConfiguration
const PermissionConfiguration & GetPermissionConfiguration() const
Definition: PublicAccess.h:46
Aws::GuardDuty::Model::PublicAccess::WithEffectivePermission
PublicAccess & WithEffectivePermission(Aws::String &&value)
Definition: PublicAccess.h:119
PermissionConfiguration.h