1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/securityhub/SecurityHub_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 namespace Utils 14 { 15 namespace Json 16 { 17 class JsonValue; 18 class JsonView; 19 } // namespace Json 20 } // namespace Utils 21 namespace SecurityHub 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>Information about a bind mount host volume.</p><p><h3>See Also:</h3> <a 28 * href="http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/AwsEcsTaskDefinitionVolumesHostDetails">AWS 29 * API Reference</a></p> 30 */ 31 class AWS_SECURITYHUB_API AwsEcsTaskDefinitionVolumesHostDetails 32 { 33 public: 34 AwsEcsTaskDefinitionVolumesHostDetails(); 35 AwsEcsTaskDefinitionVolumesHostDetails(Aws::Utils::Json::JsonView jsonValue); 36 AwsEcsTaskDefinitionVolumesHostDetails& operator=(Aws::Utils::Json::JsonView jsonValue); 37 Aws::Utils::Json::JsonValue Jsonize() const; 38 39 40 /** 41 * <p>The path on the host container instance that is presented to the 42 * container.</p> 43 */ GetSourcePath()44 inline const Aws::String& GetSourcePath() const{ return m_sourcePath; } 45 46 /** 47 * <p>The path on the host container instance that is presented to the 48 * container.</p> 49 */ SourcePathHasBeenSet()50 inline bool SourcePathHasBeenSet() const { return m_sourcePathHasBeenSet; } 51 52 /** 53 * <p>The path on the host container instance that is presented to the 54 * container.</p> 55 */ SetSourcePath(const Aws::String & value)56 inline void SetSourcePath(const Aws::String& value) { m_sourcePathHasBeenSet = true; m_sourcePath = value; } 57 58 /** 59 * <p>The path on the host container instance that is presented to the 60 * container.</p> 61 */ SetSourcePath(Aws::String && value)62 inline void SetSourcePath(Aws::String&& value) { m_sourcePathHasBeenSet = true; m_sourcePath = std::move(value); } 63 64 /** 65 * <p>The path on the host container instance that is presented to the 66 * container.</p> 67 */ SetSourcePath(const char * value)68 inline void SetSourcePath(const char* value) { m_sourcePathHasBeenSet = true; m_sourcePath.assign(value); } 69 70 /** 71 * <p>The path on the host container instance that is presented to the 72 * container.</p> 73 */ WithSourcePath(const Aws::String & value)74 inline AwsEcsTaskDefinitionVolumesHostDetails& WithSourcePath(const Aws::String& value) { SetSourcePath(value); return *this;} 75 76 /** 77 * <p>The path on the host container instance that is presented to the 78 * container.</p> 79 */ WithSourcePath(Aws::String && value)80 inline AwsEcsTaskDefinitionVolumesHostDetails& WithSourcePath(Aws::String&& value) { SetSourcePath(std::move(value)); return *this;} 81 82 /** 83 * <p>The path on the host container instance that is presented to the 84 * container.</p> 85 */ WithSourcePath(const char * value)86 inline AwsEcsTaskDefinitionVolumesHostDetails& WithSourcePath(const char* value) { SetSourcePath(value); return *this;} 87 88 private: 89 90 Aws::String m_sourcePath; 91 bool m_sourcePathHasBeenSet; 92 }; 93 94 } // namespace Model 95 } // namespace SecurityHub 96 } // namespace Aws 97