Пример #1
0
 /// <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;
 }
Пример #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;
        }