/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the codeartifact-2018-09-22.normal.json service model. */ using System; using Amazon.Runtime; namespace Amazon.CodeArtifact { /// /// Constants used for properties of type AllowPublish. /// public class AllowPublish : ConstantClass { /// /// Constant ALLOW for AllowPublish /// public static readonly AllowPublish ALLOW = new AllowPublish("ALLOW"); /// /// Constant BLOCK for AllowPublish /// public static readonly AllowPublish BLOCK = new AllowPublish("BLOCK"); /// /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// public AllowPublish(string value) : base(value) { } /// /// Finds the constant for the unique value. /// /// The unique value for the constant /// The constant for the unique value public static AllowPublish FindValue(string value) { return FindValue(value); } /// /// Utility method to convert strings to the constant class. /// /// The string value to convert to the constant class. /// public static implicit operator AllowPublish(string value) { return FindValue(value); } } /// /// Constants used for properties of type AllowUpstream. /// public class AllowUpstream : ConstantClass { /// /// Constant ALLOW for AllowUpstream /// public static readonly AllowUpstream ALLOW = new AllowUpstream("ALLOW"); /// /// Constant BLOCK for AllowUpstream /// public static readonly AllowUpstream BLOCK = new AllowUpstream("BLOCK"); /// /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// public AllowUpstream(string value) : base(value) { } /// /// Finds the constant for the unique value. /// /// The unique value for the constant /// The constant for the unique value public static AllowUpstream FindValue(string value) { return FindValue(value); } /// /// Utility method to convert strings to the constant class. /// /// The string value to convert to the constant class. /// public static implicit operator AllowUpstream(string value) { return FindValue(value); } } /// /// Constants used for properties of type DomainStatus. /// public class DomainStatus : ConstantClass { /// /// Constant Active for DomainStatus /// public static readonly DomainStatus Active = new DomainStatus("Active"); /// /// Constant Deleted for DomainStatus /// public static readonly DomainStatus Deleted = new DomainStatus("Deleted"); /// /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// public DomainStatus(string value) : base(value) { } /// /// Finds the constant for the unique value. /// /// The unique value for the constant /// The constant for the unique value public static DomainStatus FindValue(string value) { return FindValue(value); } /// /// Utility method to convert strings to the constant class. /// /// The string value to convert to the constant class. /// public static implicit operator DomainStatus(string value) { return FindValue(value); } } /// /// Constants used for properties of type ExternalConnectionStatus. /// public class ExternalConnectionStatus : ConstantClass { /// /// Constant Available for ExternalConnectionStatus /// public static readonly ExternalConnectionStatus Available = new ExternalConnectionStatus("Available"); /// /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// public ExternalConnectionStatus(string value) : base(value) { } /// /// Finds the constant for the unique value. /// /// The unique value for the constant /// The constant for the unique value public static ExternalConnectionStatus FindValue(string value) { return FindValue(value); } /// /// Utility method to convert strings to the constant class. /// /// The string value to convert to the constant class. /// public static implicit operator ExternalConnectionStatus(string value) { return FindValue(value); } } /// /// Constants used for properties of type HashAlgorithm. /// public class HashAlgorithm : ConstantClass { /// /// Constant MD5 for HashAlgorithm /// public static readonly HashAlgorithm MD5 = new HashAlgorithm("MD5"); /// /// Constant SHA1 for HashAlgorithm /// public static readonly HashAlgorithm SHA1 = new HashAlgorithm("SHA-1"); /// /// Constant SHA256 for HashAlgorithm /// public static readonly HashAlgorithm SHA256 = new HashAlgorithm("SHA-256"); /// /// Constant SHA512 for HashAlgorithm /// public static readonly HashAlgorithm SHA512 = new HashAlgorithm("SHA-512"); /// /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// public HashAlgorithm(string value) : base(value) { } /// /// Finds the constant for the unique value. /// /// The unique value for the constant /// The constant for the unique value public static HashAlgorithm FindValue(string value) { return FindValue(value); } /// /// Utility method to convert strings to the constant class. /// /// The string value to convert to the constant class. /// public static implicit operator HashAlgorithm(string value) { return FindValue(value); } } /// /// Constants used for properties of type PackageFormat. /// public class PackageFormat : ConstantClass { /// /// Constant Generic for PackageFormat /// public static readonly PackageFormat Generic = new PackageFormat("generic"); /// /// Constant Maven for PackageFormat /// public static readonly PackageFormat Maven = new PackageFormat("maven"); /// /// Constant Npm for PackageFormat /// public static readonly PackageFormat Npm = new PackageFormat("npm"); /// /// Constant Nuget for PackageFormat /// public static readonly PackageFormat Nuget = new PackageFormat("nuget"); /// /// Constant Pypi for PackageFormat /// public static readonly PackageFormat Pypi = new PackageFormat("pypi"); /// /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// public PackageFormat(string value) : base(value) { } /// /// Finds the constant for the unique value. /// /// The unique value for the constant /// The constant for the unique value public static PackageFormat FindValue(string value) { return FindValue(value); } /// /// Utility method to convert strings to the constant class. /// /// The string value to convert to the constant class. /// public static implicit operator PackageFormat(string value) { return FindValue(value); } } /// /// Constants used for properties of type PackageVersionErrorCode. /// public class PackageVersionErrorCode : ConstantClass { /// /// Constant ALREADY_EXISTS for PackageVersionErrorCode /// public static readonly PackageVersionErrorCode ALREADY_EXISTS = new PackageVersionErrorCode("ALREADY_EXISTS"); /// /// Constant MISMATCHED_REVISION for PackageVersionErrorCode /// public static readonly PackageVersionErrorCode MISMATCHED_REVISION = new PackageVersionErrorCode("MISMATCHED_REVISION"); /// /// Constant MISMATCHED_STATUS for PackageVersionErrorCode /// public static readonly PackageVersionErrorCode MISMATCHED_STATUS = new PackageVersionErrorCode("MISMATCHED_STATUS"); /// /// Constant NOT_ALLOWED for PackageVersionErrorCode /// public static readonly PackageVersionErrorCode NOT_ALLOWED = new PackageVersionErrorCode("NOT_ALLOWED"); /// /// Constant NOT_FOUND for PackageVersionErrorCode /// public static readonly PackageVersionErrorCode NOT_FOUND = new PackageVersionErrorCode("NOT_FOUND"); /// /// Constant SKIPPED for PackageVersionErrorCode /// public static readonly PackageVersionErrorCode SKIPPED = new PackageVersionErrorCode("SKIPPED"); /// /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// public PackageVersionErrorCode(string value) : base(value) { } /// /// Finds the constant for the unique value. /// /// The unique value for the constant /// The constant for the unique value public static PackageVersionErrorCode FindValue(string value) { return FindValue(value); } /// /// Utility method to convert strings to the constant class. /// /// The string value to convert to the constant class. /// public static implicit operator PackageVersionErrorCode(string value) { return FindValue(value); } } /// /// Constants used for properties of type PackageVersionOriginType. /// public class PackageVersionOriginType : ConstantClass { /// /// Constant EXTERNAL for PackageVersionOriginType /// public static readonly PackageVersionOriginType EXTERNAL = new PackageVersionOriginType("EXTERNAL"); /// /// Constant INTERNAL for PackageVersionOriginType /// public static readonly PackageVersionOriginType INTERNAL = new PackageVersionOriginType("INTERNAL"); /// /// Constant UNKNOWN for PackageVersionOriginType /// public static readonly PackageVersionOriginType UNKNOWN = new PackageVersionOriginType("UNKNOWN"); /// /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// public PackageVersionOriginType(string value) : base(value) { } /// /// Finds the constant for the unique value. /// /// The unique value for the constant /// The constant for the unique value public static PackageVersionOriginType FindValue(string value) { return FindValue(value); } /// /// Utility method to convert strings to the constant class. /// /// The string value to convert to the constant class. /// public static implicit operator PackageVersionOriginType(string value) { return FindValue(value); } } /// /// Constants used for properties of type PackageVersionSortType. /// public class PackageVersionSortType : ConstantClass { /// /// Constant PUBLISHED_TIME for PackageVersionSortType /// public static readonly PackageVersionSortType PUBLISHED_TIME = new PackageVersionSortType("PUBLISHED_TIME"); /// /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// public PackageVersionSortType(string value) : base(value) { } /// /// Finds the constant for the unique value. /// /// The unique value for the constant /// The constant for the unique value public static PackageVersionSortType FindValue(string value) { return FindValue(value); } /// /// Utility method to convert strings to the constant class. /// /// The string value to convert to the constant class. /// public static implicit operator PackageVersionSortType(string value) { return FindValue(value); } } /// /// Constants used for properties of type PackageVersionStatus. /// public class PackageVersionStatus : ConstantClass { /// /// Constant Archived for PackageVersionStatus /// public static readonly PackageVersionStatus Archived = new PackageVersionStatus("Archived"); /// /// Constant Deleted for PackageVersionStatus /// public static readonly PackageVersionStatus Deleted = new PackageVersionStatus("Deleted"); /// /// Constant Disposed for PackageVersionStatus /// public static readonly PackageVersionStatus Disposed = new PackageVersionStatus("Disposed"); /// /// Constant Published for PackageVersionStatus /// public static readonly PackageVersionStatus Published = new PackageVersionStatus("Published"); /// /// Constant Unfinished for PackageVersionStatus /// public static readonly PackageVersionStatus Unfinished = new PackageVersionStatus("Unfinished"); /// /// Constant Unlisted for PackageVersionStatus /// public static readonly PackageVersionStatus Unlisted = new PackageVersionStatus("Unlisted"); /// /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// public PackageVersionStatus(string value) : base(value) { } /// /// Finds the constant for the unique value. /// /// The unique value for the constant /// The constant for the unique value public static PackageVersionStatus FindValue(string value) { return FindValue(value); } /// /// Utility method to convert strings to the constant class. /// /// The string value to convert to the constant class. /// public static implicit operator PackageVersionStatus(string value) { return FindValue(value); } } /// /// Constants used for properties of type ResourceType. /// public class ResourceType : ConstantClass { /// /// Constant Asset for ResourceType /// public static readonly ResourceType Asset = new ResourceType("asset"); /// /// Constant Domain for ResourceType /// public static readonly ResourceType Domain = new ResourceType("domain"); /// /// Constant Package for ResourceType /// public static readonly ResourceType Package = new ResourceType("package"); /// /// Constant PackageVersion for ResourceType /// public static readonly ResourceType PackageVersion = new ResourceType("package-version"); /// /// Constant Repository for ResourceType /// public static readonly ResourceType Repository = new ResourceType("repository"); /// /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// public ResourceType(string value) : base(value) { } /// /// Finds the constant for the unique value. /// /// The unique value for the constant /// The constant for the unique value public static ResourceType FindValue(string value) { return FindValue(value); } /// /// Utility method to convert strings to the constant class. /// /// The string value to convert to the constant class. /// public static implicit operator ResourceType(string value) { return FindValue(value); } } /// /// Constants used for properties of type ValidationExceptionReason. /// public class ValidationExceptionReason : ConstantClass { /// /// Constant CANNOT_PARSE for ValidationExceptionReason /// public static readonly ValidationExceptionReason CANNOT_PARSE = new ValidationExceptionReason("CANNOT_PARSE"); /// /// Constant ENCRYPTION_KEY_ERROR for ValidationExceptionReason /// public static readonly ValidationExceptionReason ENCRYPTION_KEY_ERROR = new ValidationExceptionReason("ENCRYPTION_KEY_ERROR"); /// /// Constant FIELD_VALIDATION_FAILED for ValidationExceptionReason /// public static readonly ValidationExceptionReason FIELD_VALIDATION_FAILED = new ValidationExceptionReason("FIELD_VALIDATION_FAILED"); /// /// Constant OTHER for ValidationExceptionReason /// public static readonly ValidationExceptionReason OTHER = new ValidationExceptionReason("OTHER"); /// /// Constant UNKNOWN_OPERATION for ValidationExceptionReason /// public static readonly ValidationExceptionReason UNKNOWN_OPERATION = new ValidationExceptionReason("UNKNOWN_OPERATION"); /// /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// public ValidationExceptionReason(string value) : base(value) { } /// /// Finds the constant for the unique value. /// /// The unique value for the constant /// The constant for the unique value public static ValidationExceptionReason FindValue(string value) { return FindValue(value); } /// /// Utility method to convert strings to the constant class. /// /// The string value to convert to the constant class. /// public static implicit operator ValidationExceptionReason(string value) { return FindValue(value); } } }