/* * 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 UpdateAgreement operation. /// Updates some of the parameters for an existing agreement. Provide the AgreementId /// and the ServerId for the agreement that you want to update, along with /// the new values for the parameters to update. /// public partial class UpdateAgreementRequest : AmazonTransferRequest { private string _accessRole; private string _agreementId; private string _baseDirectory; private string _description; private string _localProfileId; private string _partnerProfileId; private string _serverId; private AgreementStatusType _status; /// /// Gets and sets the property AccessRole. /// /// With AS2, you can send files by calling StartFileTransfer and specifying /// the file paths in the request parameter, SendFilePaths. We use the file’s /// parent directory (for example, for --send-file-paths /bucket/dir/file.txt, /// parent directory is /bucket/dir/) to temporarily store a processed AS2 /// message file, store the MDN when we receive them from the partner, and write a final /// JSON file containing relevant metadata of the transmission. So, the AccessRole /// needs to provide read and write access to the parent directory of the file location /// used in the StartFileTransfer request. Additionally, you need to provide /// read and write access to the parent directory of the files that you intend to send /// with StartFileTransfer. /// /// /// /// If you are using Basic authentication for your AS2 connector, the access role requires /// the secretsmanager:GetSecretValue permission for the secret. If the secret /// is encrypted using a customer-managed key instead of the Amazon Web Services managed /// key in Secrets Manager, then the role also needs the kms:Decrypt permission /// for that key. /// /// [AWSProperty(Min=20, Max=2048)] public string AccessRole { get { return this._accessRole; } set { this._accessRole = value; } } // Check to see if AccessRole property is set internal bool IsSetAccessRole() { return this._accessRole != null; } /// /// Gets and sets the property AgreementId. /// /// A unique identifier for the agreement. This identifier is returned when you create /// an agreement. /// /// [AWSProperty(Required=true, Min=19, Max=19)] public string AgreementId { get { return this._agreementId; } set { this._agreementId = value; } } // Check to see if AgreementId property is set internal bool IsSetAgreementId() { return this._agreementId != null; } /// /// Gets and sets the property BaseDirectory. /// /// To change the landing directory (folder) for files that are transferred, provide the /// bucket folder that you want to use; for example, /DOC-EXAMPLE-BUCKET/home/mydirectory /// . /// /// [AWSProperty(Max=1024)] public string BaseDirectory { get { return this._baseDirectory; } set { this._baseDirectory = value; } } // Check to see if BaseDirectory property is set internal bool IsSetBaseDirectory() { return this._baseDirectory != null; } /// /// Gets and sets the property Description. /// /// To replace the existing description, provide a short description for the agreement. /// /// /// [AWSProperty(Min=1, Max=200)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property LocalProfileId. /// /// A unique identifier for the AS2 local profile. /// /// /// /// To change the local profile identifier, provide a new value here. /// /// [AWSProperty(Min=19, Max=19)] public string LocalProfileId { get { return this._localProfileId; } set { this._localProfileId = value; } } // Check to see if LocalProfileId property is set internal bool IsSetLocalProfileId() { return this._localProfileId != null; } /// /// Gets and sets the property PartnerProfileId. /// /// A unique identifier for the partner profile. To change the partner profile identifier, /// provide a new value here. /// /// [AWSProperty(Min=19, Max=19)] public string PartnerProfileId { get { return this._partnerProfileId; } set { this._partnerProfileId = value; } } // Check to see if PartnerProfileId property is set internal bool IsSetPartnerProfileId() { return this._partnerProfileId != null; } /// /// Gets and sets the property ServerId. /// /// A system-assigned unique identifier for a server instance. This is the specific server /// that the agreement uses. /// /// [AWSProperty(Required=true, Min=19, Max=19)] public string ServerId { get { return this._serverId; } set { this._serverId = value; } } // Check to see if ServerId property is set internal bool IsSetServerId() { return this._serverId != null; } /// /// Gets and sets the property Status. /// /// You can update the status for the agreement, either activating an inactive agreement /// or the reverse. /// /// public AgreementStatusType Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } } }