/* * 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 transfer-2018-11-05.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.Transfer.Model { /// /// Container for the parameters to the CreateProfile operation. /// Creates the local or partner profile to use for AS2 transfers. /// public partial class CreateProfileRequest : AmazonTransferRequest { private string _as2Id; private List _certificateIds = new List(); private ProfileType _profileType; private List _tags = new List(); /// /// Gets and sets the property As2Id. /// /// The As2Id is the AS2-name, as defined in the RFC /// 4130. For inbound transfers, this is the AS2-From header for the /// AS2 messages sent from the partner. For outbound connectors, this is the AS2-To /// header for the AS2 messages sent to the partner using the StartFileTransfer /// API operation. This ID cannot include spaces. /// /// [AWSProperty(Required=true, Min=1, Max=128)] public string As2Id { get { return this._as2Id; } set { this._as2Id = value; } } // Check to see if As2Id property is set internal bool IsSetAs2Id() { return this._as2Id != null; } /// /// Gets and sets the property CertificateIds. /// /// An array of identifiers for the imported certificates. You use this identifier for /// working with profiles and partner profiles. /// /// public List CertificateIds { get { return this._certificateIds; } set { this._certificateIds = value; } } // Check to see if CertificateIds property is set internal bool IsSetCertificateIds() { return this._certificateIds != null && this._certificateIds.Count > 0; } /// /// Gets and sets the property ProfileType. /// /// Determines the type of profile to create: /// ///
  • /// /// Specify LOCAL to create a local profile. A local profile represents the /// AS2-enabled Transfer Family server organization or party. /// ///
  • /// /// Specify PARTNER to create a partner profile. A partner profile represents /// a remote organization, external to Transfer Family. /// ///
///
[AWSProperty(Required=true)] public ProfileType ProfileType { get { return this._profileType; } set { this._profileType = value; } } // Check to see if ProfileType property is set internal bool IsSetProfileType() { return this._profileType != null; } /// /// Gets and sets the property Tags. /// /// Key-value pairs that can be used to group and search for AS2 profiles. /// /// [AWSProperty(Min=1, Max=50)] public List Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }