/* * 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 m2-2021-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.MainframeModernization.Model { /// /// The primary key for a KSDS data set. /// public partial class PrimaryKey { private int? _length; private string _name; private int? _offset; /// /// Gets and sets the property Length. /// /// A strictly positive integer value representing the length of the primary key. /// /// [AWSProperty(Required=true)] public int Length { get { return this._length.GetValueOrDefault(); } set { this._length = value; } } // Check to see if Length property is set internal bool IsSetLength() { return this._length.HasValue; } /// /// Gets and sets the property Name. /// /// A name for the Primary Key. /// /// public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property Offset. /// /// A positive integer value representing the offset to mark the start of the primary /// key in the record byte array. /// /// [AWSProperty(Required=true)] public int Offset { get { return this._offset.GetValueOrDefault(); } set { this._offset = value; } } // Check to see if Offset property is set internal bool IsSetOffset() { return this._offset.HasValue; } } }