/** * 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 CodeArtifact { namespace Model { /** *

Details of the license data.

See Also:

AWS * API Reference

*/ class LicenseInfo { public: AWS_CODEARTIFACT_API LicenseInfo(); AWS_CODEARTIFACT_API LicenseInfo(Aws::Utils::Json::JsonView jsonValue); AWS_CODEARTIFACT_API LicenseInfo& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Name of the license.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

Name of the license.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

Name of the license.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

Name of the license.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

Name of the license.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

Name of the license.

*/ inline LicenseInfo& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

Name of the license.

*/ inline LicenseInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

Name of the license.

*/ inline LicenseInfo& WithName(const char* value) { SetName(value); return *this;} /** *

The URL for license data.

*/ inline const Aws::String& GetUrl() const{ return m_url; } /** *

The URL for license data.

*/ inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; } /** *

The URL for license data.

*/ inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; } /** *

The URL for license data.

*/ inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); } /** *

The URL for license data.

*/ inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); } /** *

The URL for license data.

*/ inline LicenseInfo& WithUrl(const Aws::String& value) { SetUrl(value); return *this;} /** *

The URL for license data.

*/ inline LicenseInfo& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;} /** *

The URL for license data.

*/ inline LicenseInfo& WithUrl(const char* value) { SetUrl(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_url; bool m_urlHasBeenSet = false; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws