139 lines
5.9 KiB
C
139 lines
5.9 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/sagemaker/SageMaker_EXPORTS.h>
|
|||
|
|
#include <aws/sagemaker/model/CognitoMemberDefinition.h>
|
|||
|
|
#include <aws/sagemaker/model/OidcMemberDefinition.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Json
|
|||
|
|
{
|
|||
|
|
class JsonValue;
|
|||
|
|
class JsonView;
|
|||
|
|
} // namespace Json
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace SageMaker
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Defines an Amazon Cognito or your own OIDC IdP user group that is part of a
|
|||
|
|
* work team.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/MemberDefinition">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_SAGEMAKER_API MemberDefinition
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
MemberDefinition();
|
|||
|
|
MemberDefinition(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
MemberDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Cognito user group that is part of the work team.</p>
|
|||
|
|
*/
|
|||
|
|
inline const CognitoMemberDefinition& GetCognitoMemberDefinition() const{ return m_cognitoMemberDefinition; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Cognito user group that is part of the work team.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool CognitoMemberDefinitionHasBeenSet() const { return m_cognitoMemberDefinitionHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Cognito user group that is part of the work team.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCognitoMemberDefinition(const CognitoMemberDefinition& value) { m_cognitoMemberDefinitionHasBeenSet = true; m_cognitoMemberDefinition = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Cognito user group that is part of the work team.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCognitoMemberDefinition(CognitoMemberDefinition&& value) { m_cognitoMemberDefinitionHasBeenSet = true; m_cognitoMemberDefinition = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Cognito user group that is part of the work team.</p>
|
|||
|
|
*/
|
|||
|
|
inline MemberDefinition& WithCognitoMemberDefinition(const CognitoMemberDefinition& value) { SetCognitoMemberDefinition(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Cognito user group that is part of the work team.</p>
|
|||
|
|
*/
|
|||
|
|
inline MemberDefinition& WithCognitoMemberDefinition(CognitoMemberDefinition&& value) { SetCognitoMemberDefinition(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list user groups that exist in your OIDC Identity Provider (IdP). One to
|
|||
|
|
* ten groups can be used to create a single private work team. When you add a user
|
|||
|
|
* group to the list of <code>Groups</code>, you can add that user group to one or
|
|||
|
|
* more private work teams. If you add a user group to a private work team, all
|
|||
|
|
* workers in that user group are added to the work team.</p>
|
|||
|
|
*/
|
|||
|
|
inline const OidcMemberDefinition& GetOidcMemberDefinition() const{ return m_oidcMemberDefinition; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list user groups that exist in your OIDC Identity Provider (IdP). One to
|
|||
|
|
* ten groups can be used to create a single private work team. When you add a user
|
|||
|
|
* group to the list of <code>Groups</code>, you can add that user group to one or
|
|||
|
|
* more private work teams. If you add a user group to a private work team, all
|
|||
|
|
* workers in that user group are added to the work team.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool OidcMemberDefinitionHasBeenSet() const { return m_oidcMemberDefinitionHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list user groups that exist in your OIDC Identity Provider (IdP). One to
|
|||
|
|
* ten groups can be used to create a single private work team. When you add a user
|
|||
|
|
* group to the list of <code>Groups</code>, you can add that user group to one or
|
|||
|
|
* more private work teams. If you add a user group to a private work team, all
|
|||
|
|
* workers in that user group are added to the work team.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetOidcMemberDefinition(const OidcMemberDefinition& value) { m_oidcMemberDefinitionHasBeenSet = true; m_oidcMemberDefinition = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list user groups that exist in your OIDC Identity Provider (IdP). One to
|
|||
|
|
* ten groups can be used to create a single private work team. When you add a user
|
|||
|
|
* group to the list of <code>Groups</code>, you can add that user group to one or
|
|||
|
|
* more private work teams. If you add a user group to a private work team, all
|
|||
|
|
* workers in that user group are added to the work team.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetOidcMemberDefinition(OidcMemberDefinition&& value) { m_oidcMemberDefinitionHasBeenSet = true; m_oidcMemberDefinition = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list user groups that exist in your OIDC Identity Provider (IdP). One to
|
|||
|
|
* ten groups can be used to create a single private work team. When you add a user
|
|||
|
|
* group to the list of <code>Groups</code>, you can add that user group to one or
|
|||
|
|
* more private work teams. If you add a user group to a private work team, all
|
|||
|
|
* workers in that user group are added to the work team.</p>
|
|||
|
|
*/
|
|||
|
|
inline MemberDefinition& WithOidcMemberDefinition(const OidcMemberDefinition& value) { SetOidcMemberDefinition(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list user groups that exist in your OIDC Identity Provider (IdP). One to
|
|||
|
|
* ten groups can be used to create a single private work team. When you add a user
|
|||
|
|
* group to the list of <code>Groups</code>, you can add that user group to one or
|
|||
|
|
* more private work teams. If you add a user group to a private work team, all
|
|||
|
|
* workers in that user group are added to the work team.</p>
|
|||
|
|
*/
|
|||
|
|
inline MemberDefinition& WithOidcMemberDefinition(OidcMemberDefinition&& value) { SetOidcMemberDefinition(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
CognitoMemberDefinition m_cognitoMemberDefinition;
|
|||
|
|
bool m_cognitoMemberDefinitionHasBeenSet;
|
|||
|
|
|
|||
|
|
OidcMemberDefinition m_oidcMemberDefinition;
|
|||
|
|
bool m_oidcMemberDefinitionHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace SageMaker
|
|||
|
|
} // namespace Aws
|