private T getAttributeValue <T>(string name)
        {
            Attribute attr = AmazonSQSUtil.FindAttribute(this.Attribute, SQSConstants.ATTRIBUTE_VISIBILITY_TIMEOUT);

            if (attr == null)
            {
                return(default(T));
            }
            return((T)Convert.ChangeType(attr.Value, typeof(T)));
        }
        private void setAttributeValue(string name, object value)
        {
            Attribute attr = AmazonSQSUtil.FindAttribute(this.Attribute, name);

            if (attr == null)
            {
                Attribute newAttr = new Attribute()
                                    .WithName(name)
                                    .WithValue(value.ToString());
                this.Attribute.Add(newAttr);
            }
            else
            {
                attr.Value = value.ToString();
            }
        }
 /// <summary>
 /// Checks if DelaySeconds property is set
 /// </summary>
 /// <returns>true if DelaySeconds property is set</returns>
 public bool IsSetDelaySeconds()
 {
     return(AmazonSQSUtil.FindAttribute(this.Attribute, SQSConstants.ATTRIBUTE_DELAY_SECONDS) != null);
 }
 /// <summary>
 /// Checks if DefaultVisibilityTimeout property is set
 /// </summary>
 /// <returns>true if DefaultVisibilityTimeout property is set</returns>
 public bool IsSetDefaultVisibilityTimeout()
 {
     return(AmazonSQSUtil.FindAttribute(this.Attribute, SQSConstants.ATTRIBUTE_VISIBILITY_TIMEOUT) != null);
 }