/// <summary>
 /// Sets the Volume property
 /// </summary>
 /// <param name="volume">Volume property</param>
 /// <returns>this instance</returns>
 public CreateVolumeResult WithVolume(Volume volume)
 {
     this.volumeField = volume;
     return this;
 }
Beispiel #2
0
        private static string GetVolumeName(Volume volume)
        {
            var nameTag = volume.Tag.FirstOrDefault(x => x.Key == "Name");

            if (null != nameTag && !string.IsNullOrWhiteSpace(nameTag.Value))
            {
                return nameTag.Value;
            }

            return volume.VolumeId;
        }