internal void Marshall(string memberName, XmlWriter xmlWriter) { xmlWriter.WriteStartElement(memberName); { if (IsSetQuoteFields()) { xmlWriter.WriteElementString("QuoteFields", S3Transforms.ToXmlStringValue(QuoteFields.Value)); } if (IsSetQuoteEscapeCharacter()) { xmlWriter.WriteElementString("QuoteEscapeCharacter", S3Transforms.ToXmlStringValue(QuoteEscapeCharacter)); } if (IsSetRecordDelimiter()) { xmlWriter.WriteElementString("RecordDelimiter", S3Transforms.ToXmlStringValue(RecordDelimiter)); } if (IsSetFieldDelimiter()) { xmlWriter.WriteElementString("FieldDelimiter", S3Transforms.ToXmlStringValue(FieldDelimiter)); } if (IsSetQuoteCharacter()) { xmlWriter.WriteElementString("QuoteCharacter", S3Transforms.ToXmlStringValue(QuoteCharacter)); } } xmlWriter.WriteEndElement(); }
internal void Marshall(string memberName, XmlWriter xmlWriter) { xmlWriter.WriteStartElement(memberName); if (IsSetCompressionType()) { xmlWriter.WriteElementString("CompressionType", S3Transforms.ToXmlStringValue(CompressionType.Value)); } if (IsSetCSV()) { CSV.Marshall("CSV", xmlWriter); } if (IsSetJSON()) { JSON.Marshall("JSON", xmlWriter); } if (IsSetParquet()) { Parquet.Marshall("Parquet", xmlWriter); } xmlWriter.WriteEndElement(); }
internal void Marshall(string memberName, XmlWriter xmlWriter) { xmlWriter.WriteStartElement(memberName); { if (IsSetFileHeaderInfo()) { xmlWriter.WriteElementString("FileHeaderInfo", S3Transforms.ToXmlStringValue(FileHeaderInfo.Value)); } if (IsSetComments()) { xmlWriter.WriteElementString("Comments", S3Transforms.ToXmlStringValue(Comments)); } if (IsSetQuoteEscapeCharacter()) { xmlWriter.WriteElementString("QuoteEscapeCharacter", S3Transforms.ToXmlStringValue(QuoteEscapeCharacter)); } if (IsSetRecordDelimiter()) { xmlWriter.WriteElementString("RecordDelimiter", S3Transforms.ToXmlStringValue(RecordDelimiter)); } if (IsSetFieldDelimiter()) { xmlWriter.WriteElementString("FieldDelimiter", S3Transforms.ToXmlStringValue(FieldDelimiter)); } if (IsSetQuoteCharacter()) { xmlWriter.WriteElementString("QuoteCharacter", S3Transforms.ToXmlStringValue(QuoteCharacter)); } if (IsSetAllowQuotedRecordDelimiter()) { xmlWriter.WriteElementString("AllowQuotedRecordDelimiter", S3Transforms.ToXmlStringValue(AllowQuotedRecordDelimiter)); } } xmlWriter.WriteEndElement(); }
internal void Marshall(string memberName, XmlWriter xmlWriter) { xmlWriter.WriteStartElement(memberName); { xmlWriter.WriteElementString("Key", S3Transforms.ToXmlStringValue(key)); xmlWriter.WriteElementString("Value", S3Transforms.ToXmlStringValue(key)); } xmlWriter.WriteEndElement(); }
public void Visit(LifecycleTagPredicate lifecycleTagPredicate) { xmlWriter.WriteStartElement("Tag", ""); if (lifecycleTagPredicate.IsSetTag()) { xmlWriter.WriteElementString("Key", "", S3Transforms.ToXmlStringValue(lifecycleTagPredicate.Tag.Key)); xmlWriter.WriteElementString("Value", "", S3Transforms.ToXmlStringValue(lifecycleTagPredicate.Tag.Value)); } xmlWriter.WriteEndElement(); }
internal void Marshall(string memberName, XmlWriter xmlWriter) { xmlWriter.WriteStartElement(memberName); if (IsSetType()) { xmlWriter.WriteElementString("Type", S3Transforms.ToXmlStringValue(JsonType.Value)); } xmlWriter.WriteEndElement(); }
internal void Marshall(string memberName, XmlWriter xmlWriter) { xmlWriter.WriteStartElement(memberName); if (IsSetRecordDelimiter()) { xmlWriter.WriteElementString("RecordDelimiter", S3Transforms.ToXmlStringValue(RecordDelimiter)); } xmlWriter.WriteEndElement(); }
internal static void SerializeTagToXml(XmlWriter xmlWriter, Tag tag) { xmlWriter.WriteStartElement("Tag", ""); if (tag.IsSetKey()) { xmlWriter.WriteElementString("Key", "", S3Transforms.ToXmlStringValue(tag.Key)); } if (tag.IsSetValue()) { xmlWriter.WriteElementString("Value", "", S3Transforms.ToXmlStringValue(tag.Value)); } xmlWriter.WriteEndElement(); }
internal void Marshall(string memberName, XmlWriter xmlWriter) { xmlWriter.WriteStartElement(memberName); { if (Grantee != null) { xmlWriter.WriteStartElement("Grantee"); if (Grantee.IsSetType()) { xmlWriter.WriteAttributeString("xsi", "type", "http://www.w3.org/2001/XMLSchema-instance", Grantee.Type.ToString()); } if (Grantee.IsSetDisplayName()) { xmlWriter.WriteElementString("DisplayName", S3Transforms.ToXmlStringValue( Grantee.DisplayName)); } if (Grantee.IsSetEmailAddress()) { xmlWriter.WriteElementString("EmailAddress", S3Transforms.ToXmlStringValue( Grantee.EmailAddress)); } if (Grantee.IsSetCanonicalUser()) { xmlWriter.WriteElementString("ID", S3Transforms.ToXmlStringValue( Grantee.CanonicalUser)); } if (Grantee.IsSetURI()) { xmlWriter.WriteElementString("URI", S3Transforms.ToXmlStringValue( Grantee.URI)); } xmlWriter.WriteEndElement(); } if (IsSetPermission()) { xmlWriter.WriteElementString("Permission", S3Transforms.ToXmlStringValue( Permission)); } } xmlWriter.WriteEndElement(); }
internal void Marshall(string memberName, XmlWriter xmlWriter) { xmlWriter.WriteStartElement(memberName); { if (IsSetStart()) { xmlWriter.WriteElementString("Start", S3Transforms.ToXmlStringValue(Start)); } if (IsSetEnd()) { xmlWriter.WriteElementString("End", S3Transforms.ToXmlStringValue(End)); } } xmlWriter.WriteEndElement(); }
internal void Marshall(string memberName, XmlWriter xmlWriter) { xmlWriter.WriteStartElement(memberName); { if (IsSetName()) { xmlWriter.WriteElementString("Name", S3Transforms.ToXmlStringValue(Name)); } if (IsSetValue()) { xmlWriter.WriteElementString("Value", S3Transforms.ToXmlStringValue(Value)); } } xmlWriter.WriteEndElement(); }
internal void Marshall(string memberName, XmlWriter xmlWriter) { if (string.IsNullOrEmpty(BucketName)) { throw new System.ArgumentException("BucketName is a required property and must be set before making this call.", "S3Location.BucketName"); } if (string.IsNullOrEmpty(Prefix)) { throw new System.ArgumentException("Prefix is a required property and must be set before making this call.", "S3Location.Prefix"); } xmlWriter.WriteStartElement(memberName); { xmlWriter.WriteElementString("BucketName", S3Transforms.ToXmlStringValue(BucketName)); xmlWriter.WriteElementString("Prefix", S3Transforms.ToXmlStringValue(Prefix)); if (IsSetEncryption()) { Encryption.Marshall("Encryption", xmlWriter); } if (IsSetCannedACL()) { xmlWriter.WriteElementString("CannedACL", S3Transforms.ToXmlStringValue(CannedACL.Value)); } if (IsSetAccessControlList()) { AccessControlList.Marshall("AccessControlList", xmlWriter); } if (IsSetTagging()) { Tagging.Marshall("Tagging", xmlWriter); } if (IsSetUserMetadata()) { UserMetadata.Marshall("UserMetadata", xmlWriter); } if (IsSetStorageClass()) { xmlWriter.WriteElementString("StorageClass", S3Transforms.ToXmlStringValue(StorageClass.Value)); } } xmlWriter.WriteEndElement(); }
internal void Marshall(string memberName, XmlWriter xmlWriter) { xmlWriter.WriteStartElement(memberName); { foreach (var t in values) { xmlWriter.WriteStartElement("MetadataEntry"); { // since this is not being marshalled into header, // normalize it by stripping it of "x-amz-meta" prefix. var name = t.Key.Replace(MetaDataHeaderPrefix, ""); xmlWriter.WriteElementString("Name", S3Transforms.ToXmlStringValue(name)); xmlWriter.WriteElementString("Value", S3Transforms.ToXmlStringValue(t.Value)); } xmlWriter.WriteEndElement(); } } xmlWriter.WriteEndElement(); }
internal void Marshall(string propertyName, XmlWriter xmlWriter) { xmlWriter.WriteStartElement(propertyName); { if (IsSetRetrievalTier()) { xmlWriter.WriteElementString("Tier", S3Transforms.ToXmlStringValue(RetrievalTier)); } if (IsSetTier()) { xmlWriter.WriteStartElement("GlacierJobParameters"); { xmlWriter.WriteElementString("Tier", S3Transforms.ToXmlStringValue(Tier)); } xmlWriter.WriteEndElement(); } if (IsSetDays()) { xmlWriter.WriteElementString("Days", S3Transforms.ToXmlStringValue(Days)); } if (IsSetType()) { xmlWriter.WriteElementString("Type", S3Transforms.ToXmlStringValue(RestoreRequestType.Value)); } if (IsSetDescription()) { xmlWriter.WriteElementString("Description", S3Transforms.ToXmlStringValue(Description)); } if (IsSetSelectParameters()) { SelectParameters.Marshall("SelectParameters", xmlWriter); } if (IsSetOutputLocation()) { OutputLocation.Marshall("OutputLocation", xmlWriter); } } xmlWriter.WriteEndElement(); }
internal void Marshall(string memberName, XmlWriter xmlWriter) { if (!IsSetInputSerialization()) { throw new System.ArgumentException("SelectParameters.InputSerialization is a required property and must be set before making this call."); } if (!IsSetExpression()) { throw new System.ArgumentException("SelectParameters.Expression is a required property and must be set before making this call."); } if (!IsSetExpressionType()) { throw new System.ArgumentException("SelectParameters.ExpressionType is a required property and must be set before making this call."); } if (!IsSetOutputSerialization()) { throw new System.ArgumentException("SelectParameters.OutputSerialization is a required property and must be set before making this call."); } xmlWriter.WriteStartElement(memberName); { if (IsSetInputSerialization()) { InputSerialization.Marshall("InputSerialization", xmlWriter); } if (IsSetExpressionType()) { xmlWriter.WriteElementString("ExpressionType", S3Transforms.ToXmlStringValue(ExpressionType.Value)); } if (IsSetExpression()) { xmlWriter.WriteElementString("Expression", S3Transforms.ToXmlStringValue(Expression)); } if (IsSetOutputSerialization()) { OutputSerialization.Marshall("OutputSerialization", xmlWriter); } } xmlWriter.WriteEndElement(); }
internal void Marshall(string memberName, XmlWriter xmlWriter) { if (!IsSetEncryptionType()) { throw new System.ArgumentException("EncryptionType is a required property and must be set before making this call.", "S3Encryption.EncryptionType"); } xmlWriter.WriteStartElement(memberName); { xmlWriter.WriteElementString("EncryptionType", S3Transforms.ToXmlStringValue(EncryptionType.Value)); if (IsSetKMSKeyId()) { xmlWriter.WriteElementString("KMSKeyId", S3Transforms.ToXmlStringValue(KMSKeyId)); } if (IsSetKMSContext()) { xmlWriter.WriteElementString("KMSContext", S3Transforms.ToXmlStringValue(KMSContext)); } } xmlWriter.WriteEndElement(); }
public void visit(MetricsAccessPointArnPredicate metricsAccessPointArnPredicate) { if (metricsAccessPointArnPredicate != null) { xmlWriter.WriteElementString("AccessPointArn", "http://s3.amazonaws.com/doc/2006-03-01/", S3Transforms.ToXmlStringValue(metricsAccessPointArnPredicate.AccessPointArn)); } }
public void Visit(LifecyclePrefixPredicate lifecyclePrefixPredicate) { xmlWriter.WriteElementString("Prefix", "", S3Transforms.ToXmlStringValue(lifecyclePrefixPredicate.Prefix)); }
public void Visit(LifecycleObjectSizeLessThanPredicate lifecycleGreaterLessThanPredicate) { xmlWriter.WriteElementString("ObjectSizeLessThan", "", S3Transforms.ToXmlStringValue(lifecycleGreaterLessThanPredicate.ObjectSizeLessThan)); }
public void Visit(MetricsPrefixPredicate metricsPrefixPredicate) { if (metricsPrefixPredicate != null) { xmlWriter.WriteElementString("Prefix", "http://s3.amazonaws.com/doc/2006-03-01/", S3Transforms.ToXmlStringValue(metricsPrefixPredicate.Prefix)); } }
public void visit(MetricsTagPredicate metricsTagPredicate) { if (metricsTagPredicate != null) { xmlWriter.WriteStartElement("Tag", "http://s3.amazonaws.com/doc/2006-03-01/"); if (metricsTagPredicate.Tag.IsSetKey()) { xmlWriter.WriteElementString("Key", "http://s3.amazonaws.com/doc/2006-03-01/", S3Transforms.ToXmlStringValue(metricsTagPredicate.Tag.Key)); } if (metricsTagPredicate.Tag.IsSetValue()) { xmlWriter.WriteElementString("Value", "http://s3.amazonaws.com/doc/2006-03-01/", S3Transforms.ToXmlStringValue(metricsTagPredicate.Tag.Value)); } xmlWriter.WriteEndElement(); } }