/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Transfer
{
namespace Model
{
/**
* Represents an object that contains entries and targets for
* HomeDirectoryMappings
.
The following is an
* Entry
and Target
pair example for
* chroot
.
[ { "Entry": "/", "Target":
* "/bucket_name/home/mydirectory" } ]
See Also:
AWS
* API Reference
*/
class HomeDirectoryMapEntry
{
public:
AWS_TRANSFER_API HomeDirectoryMapEntry();
AWS_TRANSFER_API HomeDirectoryMapEntry(Aws::Utils::Json::JsonView jsonValue);
AWS_TRANSFER_API HomeDirectoryMapEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* Represents an entry for HomeDirectoryMappings
.
*/
inline const Aws::String& GetEntry() const{ return m_entry; }
/**
* Represents an entry for HomeDirectoryMappings
.
*/
inline bool EntryHasBeenSet() const { return m_entryHasBeenSet; }
/**
* Represents an entry for HomeDirectoryMappings
.
*/
inline void SetEntry(const Aws::String& value) { m_entryHasBeenSet = true; m_entry = value; }
/**
* Represents an entry for HomeDirectoryMappings
.
*/
inline void SetEntry(Aws::String&& value) { m_entryHasBeenSet = true; m_entry = std::move(value); }
/**
* Represents an entry for HomeDirectoryMappings
.
*/
inline void SetEntry(const char* value) { m_entryHasBeenSet = true; m_entry.assign(value); }
/**
* Represents an entry for HomeDirectoryMappings
.
*/
inline HomeDirectoryMapEntry& WithEntry(const Aws::String& value) { SetEntry(value); return *this;}
/**
* Represents an entry for HomeDirectoryMappings
.
*/
inline HomeDirectoryMapEntry& WithEntry(Aws::String&& value) { SetEntry(std::move(value)); return *this;}
/**
* Represents an entry for HomeDirectoryMappings
.
*/
inline HomeDirectoryMapEntry& WithEntry(const char* value) { SetEntry(value); return *this;}
/**
* Represents the map target that is used in a
* HomeDirectorymapEntry
.
*/
inline const Aws::String& GetTarget() const{ return m_target; }
/**
* Represents the map target that is used in a
* HomeDirectorymapEntry
.
*/
inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
/**
* Represents the map target that is used in a
* HomeDirectorymapEntry
.
*/
inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; }
/**
* Represents the map target that is used in a
* HomeDirectorymapEntry
.
*/
inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
/**
* Represents the map target that is used in a
* HomeDirectorymapEntry
.
*/
inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); }
/**
* Represents the map target that is used in a
* HomeDirectorymapEntry
.
*/
inline HomeDirectoryMapEntry& WithTarget(const Aws::String& value) { SetTarget(value); return *this;}
/**
* Represents the map target that is used in a
* HomeDirectorymapEntry
.
*/
inline HomeDirectoryMapEntry& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;}
/**
* Represents the map target that is used in a
* HomeDirectorymapEntry
.
*/
inline HomeDirectoryMapEntry& WithTarget(const char* value) { SetTarget(value); return *this;}
private:
Aws::String m_entry;
bool m_entryHasBeenSet = false;
Aws::String m_target;
bool m_targetHasBeenSet = false;
};
} // namespace Model
} // namespace Transfer
} // namespace Aws