A list of returned queue attributes.
Inheritance: Amazon.Runtime.AmazonWebServiceResponse
Example #1
0
        /// <summary>
        /// XML Representation for this object
        /// </summary>
        /// <returns>XML String</returns>

        public String ToXML()
        {
            StringBuilder xml = new StringBuilder();

            xml.Append("<GetQueueAttributesResponse xmlns=\"http://queue.amazonaws.com/doc/2009-02-01/\">");
            if (IsSetGetQueueAttributesResult())
            {
                GetQueueAttributesResult getQueueAttributesResult = this.GetQueueAttributesResult;
                xml.Append("<GetQueueAttributesResult>");
                xml.Append(getQueueAttributesResult.ToXMLFragment());
                xml.Append("</GetQueueAttributesResult>");
            }
            if (IsSetResponseMetadata())
            {
                ResponseMetadata responseMetadata = this.ResponseMetadata;
                xml.Append("<ResponseMetadata>");
                xml.Append(responseMetadata.ToXMLFragment());
                xml.Append("</ResponseMetadata>");
            }
            xml.Append("</GetQueueAttributesResponse>");
            return(xml.ToString());
        }
 /// <summary>
 /// Sets the GetQueueAttributesResult property
 /// </summary>
 /// <param name="getQueueAttributesResult">GetQueueAttributesResult property</param>
 /// <returns>this instance</returns>
 public GetQueueAttributesResponse WithGetQueueAttributesResult(GetQueueAttributesResult getQueueAttributesResult)
 {
     this.getQueueAttributesResultField = getQueueAttributesResult;
     return this;
 }
 private void SetOutputProperties(GetQueueAttributesResult attributes)
 {
     ApproximateNumberOfMessages = GetAttributeValue(attributes, "ApproximateNumberOfMessages");
     ApproximateNumberOfMessagesNotVisible = GetAttributeValue(attributes, "ApproximateNumberOfMessagesNotVisible");
     VisibilityTimeout = GetAttributeValue(attributes, "VisibilityTimeout");
     CreatedTimestamp = GetAttributeValue(attributes, "CreatedTimestamp");
     LastModifiedTimestamp = GetAttributeValue(attributes, "LastModifiedTimestamp");
     //Policy is not a string.
     //Policy = GetAttributeValue(attributes, "Policy");
     MaximumMessageSize = GetAttributeValue(attributes, "MaximumMessageSize");
     MessageRetentionPeriod = GetAttributeValue(attributes, "MessageRetentionPeriod");
     QueueArn = GetAttributeValue(attributes, "QueueArn");
 }
 private string GetAttributeValue(GetQueueAttributesResult attributeResults, string attributeName)
 {
     return attributeResults.Attribute.Where(x => x.Name == attributeName).FirstOrDefault().Value;
 }
Example #5
0
 /// <summary>
 /// Sets the GetQueueAttributesResult property
 /// </summary>
 /// <param name="getQueueAttributesResult">GetQueueAttributesResult property</param>
 /// <returns>this instance</returns>
 public GetQueueAttributesResponse WithGetQueueAttributesResult(GetQueueAttributesResult getQueueAttributesResult)
 {
     this.getQueueAttributesResultField = getQueueAttributesResult;
     return(this);
 }