AWS SDK for C++  1.9.104
AWS SDK for C++
AccessControlAttributeValue.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 SSOAdmin
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
46  inline const Aws::Vector<Aws::String>& GetSource() const{ return m_source; }
47 
52  inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
53 
58  inline void SetSource(const Aws::Vector<Aws::String>& value) { m_sourceHasBeenSet = true; m_source = value; }
59 
64  inline void SetSource(Aws::Vector<Aws::String>&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
65 
70  inline AccessControlAttributeValue& WithSource(const Aws::Vector<Aws::String>& value) { SetSource(value); return *this;}
71 
76  inline AccessControlAttributeValue& WithSource(Aws::Vector<Aws::String>&& value) { SetSource(std::move(value)); return *this;}
77 
82  inline AccessControlAttributeValue& AddSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source.push_back(value); return *this; }
83 
88  inline AccessControlAttributeValue& AddSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source.push_back(std::move(value)); return *this; }
89 
94  inline AccessControlAttributeValue& AddSource(const char* value) { m_sourceHasBeenSet = true; m_source.push_back(value); return *this; }
95 
96  private:
97 
98  Aws::Vector<Aws::String> m_source;
99  bool m_sourceHasBeenSet;
100  };
101 
102 } // namespace Model
103 } // namespace SSOAdmin
104 } // namespace Aws
Aws::SSOAdmin::Model::AccessControlAttributeValue::operator=
AccessControlAttributeValue & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SSOAdmin::Model::AccessControlAttributeValue
Definition: AccessControlAttributeValue.h:34
Aws::SSOAdmin::Model::AccessControlAttributeValue::AddSource
AccessControlAttributeValue & AddSource(const char *value)
Definition: AccessControlAttributeValue.h:94
Aws::SSOAdmin::Model::AccessControlAttributeValue::WithSource
AccessControlAttributeValue & WithSource(Aws::Vector< Aws::String > &&value)
Definition: AccessControlAttributeValue.h:76
Aws::SSOAdmin::Model::AccessControlAttributeValue::SetSource
void SetSource(Aws::Vector< Aws::String > &&value)
Definition: AccessControlAttributeValue.h:64
Aws::SSOAdmin::Model::AccessControlAttributeValue::AccessControlAttributeValue
AccessControlAttributeValue(Aws::Utils::Json::JsonView jsonValue)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWS_SSOADMIN_API
#define AWS_SSOADMIN_API
Definition: SSOAdmin_EXPORTS.h:28
AWSVector.h
Aws::SSOAdmin::Model::AccessControlAttributeValue::WithSource
AccessControlAttributeValue & WithSource(const Aws::Vector< Aws::String > &value)
Definition: AccessControlAttributeValue.h:70
Aws::SSOAdmin::Model::AccessControlAttributeValue::SourceHasBeenSet
bool SourceHasBeenSet() const
Definition: AccessControlAttributeValue.h:52
SSOAdmin_EXPORTS.h
Aws::SSOAdmin::Model::AccessControlAttributeValue::GetSource
const Aws::Vector< Aws::String > & GetSource() const
Definition: AccessControlAttributeValue.h:46
Aws::SSOAdmin::Model::AccessControlAttributeValue::AddSource
AccessControlAttributeValue & AddSource(Aws::String &&value)
Definition: AccessControlAttributeValue.h:88
Aws::SSOAdmin::Model::AccessControlAttributeValue::AccessControlAttributeValue
AccessControlAttributeValue()
Aws::SSOAdmin::Model::AccessControlAttributeValue::AddSource
AccessControlAttributeValue & AddSource(const Aws::String &value)
Definition: AccessControlAttributeValue.h:82
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSOAdmin::Model::AccessControlAttributeValue::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SSOAdmin::Model::AccessControlAttributeValue::SetSource
void SetSource(const Aws::Vector< Aws::String > &value)
Definition: AccessControlAttributeValue.h:58