class SwaggerAemOsgiClient::ComAdobeCqScreensMqActivemqImplArtemisJMSProviderProperties
Attributes
Public Class Methods
Attribute mapping from ruby-style variable name to JSON key.
# File lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb, line 84 def self.attribute_map { :'service_ranking' => :'service.ranking', :'global_size' => :'global.size', :'max_disk_usage' => :'max.disk.usage', :'persistence_enabled' => :'persistence.enabled', :'thread_pool_max_size' => :'thread.pool.max.size', :'scheduled_thread_pool_max_size' => :'scheduled.thread.pool.max.size', :'graceful_shutdown_timeout' => :'graceful.shutdown.timeout', :'queues' => :'queues', :'topics' => :'topics', :'addresses_max_delivery_attempts' => :'addresses.max.delivery.attempts', :'addresses_expiry_delay' => :'addresses.expiry.delay', :'addresses_address_full_message_policy' => :'addresses.address.full.message.policy', :'addresses_max_size_bytes' => :'addresses.max.size.bytes', :'addresses_page_size_bytes' => :'addresses.page.size.bytes', :'addresses_page_cache_max_size' => :'addresses.page.cache.max.size', :'cluster_user' => :'cluster.user', :'cluster_password' => :'cluster.password', :'cluster_call_timeout' => :'cluster.call.timeout', :'cluster_call_failover_timeout' => :'cluster.call.failover.timeout', :'cluster_client_failure_check_period' => :'cluster.client.failure.check.period', :'cluster_notification_attempts' => :'cluster.notification.attempts', :'cluster_notification_interval' => :'cluster.notification.interval', :'id_cache_size' => :'id.cache.size', :'cluster_confirmation_window_size' => :'cluster.confirmation.window.size', :'cluster_connection_ttl' => :'cluster.connection.ttl', :'cluster_duplicate_detection' => :'cluster.duplicate.detection', :'cluster_initial_connect_attempts' => :'cluster.initial.connect.attempts', :'cluster_max_retry_interval' => :'cluster.max.retry.interval', :'cluster_min_large_message_size' => :'cluster.min.large.message.size', :'cluster_producer_window_size' => :'cluster.producer.window.size', :'cluster_reconnect_attempts' => :'cluster.reconnect.attempts', :'cluster_retry_interval' => :'cluster.retry.interval', :'cluster_retry_interval_multiplier' => :'cluster.retry.interval.multiplier' } end
Initializes the object @param [Hash] attributes Model attributes in the form of hash
# File lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb, line 163 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'service.ranking') self.service_ranking = attributes[:'service.ranking'] end if attributes.has_key?(:'global.size') self.global_size = attributes[:'global.size'] end if attributes.has_key?(:'max.disk.usage') self.max_disk_usage = attributes[:'max.disk.usage'] end if attributes.has_key?(:'persistence.enabled') self.persistence_enabled = attributes[:'persistence.enabled'] end if attributes.has_key?(:'thread.pool.max.size') self.thread_pool_max_size = attributes[:'thread.pool.max.size'] end if attributes.has_key?(:'scheduled.thread.pool.max.size') self.scheduled_thread_pool_max_size = attributes[:'scheduled.thread.pool.max.size'] end if attributes.has_key?(:'graceful.shutdown.timeout') self.graceful_shutdown_timeout = attributes[:'graceful.shutdown.timeout'] end if attributes.has_key?(:'queues') self.queues = attributes[:'queues'] end if attributes.has_key?(:'topics') self.topics = attributes[:'topics'] end if attributes.has_key?(:'addresses.max.delivery.attempts') self.addresses_max_delivery_attempts = attributes[:'addresses.max.delivery.attempts'] end if attributes.has_key?(:'addresses.expiry.delay') self.addresses_expiry_delay = attributes[:'addresses.expiry.delay'] end if attributes.has_key?(:'addresses.address.full.message.policy') self.addresses_address_full_message_policy = attributes[:'addresses.address.full.message.policy'] end if attributes.has_key?(:'addresses.max.size.bytes') self.addresses_max_size_bytes = attributes[:'addresses.max.size.bytes'] end if attributes.has_key?(:'addresses.page.size.bytes') self.addresses_page_size_bytes = attributes[:'addresses.page.size.bytes'] end if attributes.has_key?(:'addresses.page.cache.max.size') self.addresses_page_cache_max_size = attributes[:'addresses.page.cache.max.size'] end if attributes.has_key?(:'cluster.user') self.cluster_user = attributes[:'cluster.user'] end if attributes.has_key?(:'cluster.password') self.cluster_password = attributes[:'cluster.password'] end if attributes.has_key?(:'cluster.call.timeout') self.cluster_call_timeout = attributes[:'cluster.call.timeout'] end if attributes.has_key?(:'cluster.call.failover.timeout') self.cluster_call_failover_timeout = attributes[:'cluster.call.failover.timeout'] end if attributes.has_key?(:'cluster.client.failure.check.period') self.cluster_client_failure_check_period = attributes[:'cluster.client.failure.check.period'] end if attributes.has_key?(:'cluster.notification.attempts') self.cluster_notification_attempts = attributes[:'cluster.notification.attempts'] end if attributes.has_key?(:'cluster.notification.interval') self.cluster_notification_interval = attributes[:'cluster.notification.interval'] end if attributes.has_key?(:'id.cache.size') self.id_cache_size = attributes[:'id.cache.size'] end if attributes.has_key?(:'cluster.confirmation.window.size') self.cluster_confirmation_window_size = attributes[:'cluster.confirmation.window.size'] end if attributes.has_key?(:'cluster.connection.ttl') self.cluster_connection_ttl = attributes[:'cluster.connection.ttl'] end if attributes.has_key?(:'cluster.duplicate.detection') self.cluster_duplicate_detection = attributes[:'cluster.duplicate.detection'] end if attributes.has_key?(:'cluster.initial.connect.attempts') self.cluster_initial_connect_attempts = attributes[:'cluster.initial.connect.attempts'] end if attributes.has_key?(:'cluster.max.retry.interval') self.cluster_max_retry_interval = attributes[:'cluster.max.retry.interval'] end if attributes.has_key?(:'cluster.min.large.message.size') self.cluster_min_large_message_size = attributes[:'cluster.min.large.message.size'] end if attributes.has_key?(:'cluster.producer.window.size') self.cluster_producer_window_size = attributes[:'cluster.producer.window.size'] end if attributes.has_key?(:'cluster.reconnect.attempts') self.cluster_reconnect_attempts = attributes[:'cluster.reconnect.attempts'] end if attributes.has_key?(:'cluster.retry.interval') self.cluster_retry_interval = attributes[:'cluster.retry.interval'] end if attributes.has_key?(:'cluster.retry.interval.multiplier') self.cluster_retry_interval_multiplier = attributes[:'cluster.retry.interval.multiplier'] end end
Attribute type mapping.
# File lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb, line 123 def self.openapi_types { :'service_ranking' => :'ConfigNodePropertyInteger', :'global_size' => :'ConfigNodePropertyInteger', :'max_disk_usage' => :'ConfigNodePropertyInteger', :'persistence_enabled' => :'ConfigNodePropertyBoolean', :'thread_pool_max_size' => :'ConfigNodePropertyInteger', :'scheduled_thread_pool_max_size' => :'ConfigNodePropertyInteger', :'graceful_shutdown_timeout' => :'ConfigNodePropertyInteger', :'queues' => :'ConfigNodePropertyArray', :'topics' => :'ConfigNodePropertyArray', :'addresses_max_delivery_attempts' => :'ConfigNodePropertyInteger', :'addresses_expiry_delay' => :'ConfigNodePropertyInteger', :'addresses_address_full_message_policy' => :'ConfigNodePropertyDropDown', :'addresses_max_size_bytes' => :'ConfigNodePropertyInteger', :'addresses_page_size_bytes' => :'ConfigNodePropertyInteger', :'addresses_page_cache_max_size' => :'ConfigNodePropertyInteger', :'cluster_user' => :'ConfigNodePropertyString', :'cluster_password' => :'ConfigNodePropertyString', :'cluster_call_timeout' => :'ConfigNodePropertyInteger', :'cluster_call_failover_timeout' => :'ConfigNodePropertyInteger', :'cluster_client_failure_check_period' => :'ConfigNodePropertyInteger', :'cluster_notification_attempts' => :'ConfigNodePropertyInteger', :'cluster_notification_interval' => :'ConfigNodePropertyInteger', :'id_cache_size' => :'ConfigNodePropertyInteger', :'cluster_confirmation_window_size' => :'ConfigNodePropertyInteger', :'cluster_connection_ttl' => :'ConfigNodePropertyInteger', :'cluster_duplicate_detection' => :'ConfigNodePropertyBoolean', :'cluster_initial_connect_attempts' => :'ConfigNodePropertyInteger', :'cluster_max_retry_interval' => :'ConfigNodePropertyInteger', :'cluster_min_large_message_size' => :'ConfigNodePropertyInteger', :'cluster_producer_window_size' => :'ConfigNodePropertyInteger', :'cluster_reconnect_attempts' => :'ConfigNodePropertyInteger', :'cluster_retry_interval' => :'ConfigNodePropertyInteger', :'cluster_retry_interval_multiplier' => :'ConfigNodePropertyFloat' } end
Public Instance Methods
Checks equality by comparing each attribute. @param [Object] Object to be compared
# File lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb, line 317 def ==(o) return true if self.equal?(o) self.class == o.class && service_ranking == o.service_ranking && global_size == o.global_size && max_disk_usage == o.max_disk_usage && persistence_enabled == o.persistence_enabled && thread_pool_max_size == o.thread_pool_max_size && scheduled_thread_pool_max_size == o.scheduled_thread_pool_max_size && graceful_shutdown_timeout == o.graceful_shutdown_timeout && queues == o.queues && topics == o.topics && addresses_max_delivery_attempts == o.addresses_max_delivery_attempts && addresses_expiry_delay == o.addresses_expiry_delay && addresses_address_full_message_policy == o.addresses_address_full_message_policy && addresses_max_size_bytes == o.addresses_max_size_bytes && addresses_page_size_bytes == o.addresses_page_size_bytes && addresses_page_cache_max_size == o.addresses_page_cache_max_size && cluster_user == o.cluster_user && cluster_password == o.cluster_password && cluster_call_timeout == o.cluster_call_timeout && cluster_call_failover_timeout == o.cluster_call_failover_timeout && cluster_client_failure_check_period == o.cluster_client_failure_check_period && cluster_notification_attempts == o.cluster_notification_attempts && cluster_notification_interval == o.cluster_notification_interval && id_cache_size == o.id_cache_size && cluster_confirmation_window_size == o.cluster_confirmation_window_size && cluster_connection_ttl == o.cluster_connection_ttl && cluster_duplicate_detection == o.cluster_duplicate_detection && cluster_initial_connect_attempts == o.cluster_initial_connect_attempts && cluster_max_retry_interval == o.cluster_max_retry_interval && cluster_min_large_message_size == o.cluster_min_large_message_size && cluster_producer_window_size == o.cluster_producer_window_size && cluster_reconnect_attempts == o.cluster_reconnect_attempts && cluster_retry_interval == o.cluster_retry_interval && cluster_retry_interval_multiplier == o.cluster_retry_interval_multiplier end
Deserializes the data based on type @param string type Data type @param string value Value to be deserialized @return [Object] Deserialized data
# File lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb, line 391 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :BOOLEAN if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model temp_model = SwaggerAemOsgiClient.const_get(type).new temp_model.build_from_hash(value) end end
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value @param [Object] value Any valid value @return [Hash] Returns the value in the form of hash
# File lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb, line 457 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end
Builds the object from hash @param [Hash] attributes Model attributes in the form of hash @return [Object] Returns the model itself
# File lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb, line 370 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end
@see the `==` method @param [Object] Object to be compared
# File lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb, line 357 def eql?(o) self == o end
Calculates hash code according to all attributes. @return [Fixnum] Hash code
# File lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb, line 363 def hash [service_ranking, global_size, max_disk_usage, persistence_enabled, thread_pool_max_size, scheduled_thread_pool_max_size, graceful_shutdown_timeout, queues, topics, addresses_max_delivery_attempts, addresses_expiry_delay, addresses_address_full_message_policy, addresses_max_size_bytes, addresses_page_size_bytes, addresses_page_cache_max_size, cluster_user, cluster_password, cluster_call_timeout, cluster_call_failover_timeout, cluster_client_failure_check_period, cluster_notification_attempts, cluster_notification_interval, id_cache_size, cluster_confirmation_window_size, cluster_connection_ttl, cluster_duplicate_detection, cluster_initial_connect_attempts, cluster_max_retry_interval, cluster_min_large_message_size, cluster_producer_window_size, cluster_reconnect_attempts, cluster_retry_interval, cluster_retry_interval_multiplier].hash end
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
# File lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb, line 304 def list_invalid_properties invalid_properties = Array.new invalid_properties end
Returns the object in the form of hash @return [Hash] Returns the object in the form of hash
# File lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb, line 443 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end
Returns the string representation of the object @return [String] String presentation of the object
# File lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb, line 431 def to_s to_hash.to_s end
Check to see if the all the properties in the model are valid @return true if the model is valid
# File lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb, line 311 def valid? true end