138 lines
4.7 KiB
C++
138 lines
4.7 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/cloud9/Cloud9_EXPORTS.h>
|
|
#include <aws/cloud9/Cloud9Request.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Cloud9
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_CLOUD9_API DeleteEnvironmentMembershipRequest : public Cloud9Request
|
|
{
|
|
public:
|
|
DeleteEnvironmentMembershipRequest();
|
|
|
|
// Service request name is the Operation name which will send this request out,
|
|
// each operation should has unique request name, so that we can get operation's name from this request.
|
|
// Note: this is not true for response, multiple operations may have the same response name,
|
|
// so we can not get operation's name from response.
|
|
inline virtual const char* GetServiceRequestName() const override { return "DeleteEnvironmentMembership"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
|
|
|
|
|
/**
|
|
* <p>The ID of the environment to delete the environment member from.</p>
|
|
*/
|
|
inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
|
|
|
|
/**
|
|
* <p>The ID of the environment to delete the environment member from.</p>
|
|
*/
|
|
inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ID of the environment to delete the environment member from.</p>
|
|
*/
|
|
inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
|
|
|
|
/**
|
|
* <p>The ID of the environment to delete the environment member from.</p>
|
|
*/
|
|
inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ID of the environment to delete the environment member from.</p>
|
|
*/
|
|
inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
|
|
|
|
/**
|
|
* <p>The ID of the environment to delete the environment member from.</p>
|
|
*/
|
|
inline DeleteEnvironmentMembershipRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the environment to delete the environment member from.</p>
|
|
*/
|
|
inline DeleteEnvironmentMembershipRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the environment to delete the environment member from.</p>
|
|
*/
|
|
inline DeleteEnvironmentMembershipRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the environment member to delete from the
|
|
* environment.</p>
|
|
*/
|
|
inline const Aws::String& GetUserArn() const{ return m_userArn; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the environment member to delete from the
|
|
* environment.</p>
|
|
*/
|
|
inline bool UserArnHasBeenSet() const { return m_userArnHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the environment member to delete from the
|
|
* environment.</p>
|
|
*/
|
|
inline void SetUserArn(const Aws::String& value) { m_userArnHasBeenSet = true; m_userArn = value; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the environment member to delete from the
|
|
* environment.</p>
|
|
*/
|
|
inline void SetUserArn(Aws::String&& value) { m_userArnHasBeenSet = true; m_userArn = std::move(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the environment member to delete from the
|
|
* environment.</p>
|
|
*/
|
|
inline void SetUserArn(const char* value) { m_userArnHasBeenSet = true; m_userArn.assign(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the environment member to delete from the
|
|
* environment.</p>
|
|
*/
|
|
inline DeleteEnvironmentMembershipRequest& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the environment member to delete from the
|
|
* environment.</p>
|
|
*/
|
|
inline DeleteEnvironmentMembershipRequest& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the environment member to delete from the
|
|
* environment.</p>
|
|
*/
|
|
inline DeleteEnvironmentMembershipRequest& WithUserArn(const char* value) { SetUserArn(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_environmentId;
|
|
bool m_environmentIdHasBeenSet;
|
|
|
|
Aws::String m_userArn;
|
|
bool m_userArnHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace Cloud9
|
|
} // namespace Aws
|