AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
OidcMemberDefinition.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SageMaker {
21namespace Model {
22
34 public:
35 AWS_SAGEMAKER_API OidcMemberDefinition() = default;
38 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::Vector<Aws::String>& GetGroups() const { return m_groups; }
46 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
47 template <typename GroupsT = Aws::Vector<Aws::String>>
48 void SetGroups(GroupsT&& value) {
49 m_groupsHasBeenSet = true;
50 m_groups = std::forward<GroupsT>(value);
51 }
52 template <typename GroupsT = Aws::Vector<Aws::String>>
53 OidcMemberDefinition& WithGroups(GroupsT&& value) {
54 SetGroups(std::forward<GroupsT>(value));
55 return *this;
56 }
57 template <typename GroupsT = Aws::String>
58 OidcMemberDefinition& AddGroups(GroupsT&& value) {
59 m_groupsHasBeenSet = true;
60 m_groups.emplace_back(std::forward<GroupsT>(value));
61 return *this;
62 }
64 private:
66 bool m_groupsHasBeenSet = false;
67};
68
69} // namespace Model
70} // namespace SageMaker
71} // namespace Aws
const Aws::Vector< Aws::String > & GetGroups() const
AWS_SAGEMAKER_API OidcMemberDefinition()=default
AWS_SAGEMAKER_API OidcMemberDefinition(Aws::Utils::Json::JsonView jsonValue)
OidcMemberDefinition & WithGroups(GroupsT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API OidcMemberDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
OidcMemberDefinition & AddGroups(GroupsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue