Examples of ToStringHelper


Examples of com.google.common.base.Objects.ToStringHelper

               spotPrice, spotOptions, groupIds, iamInstanceProfileArn, iamInstanceProfileName);
   }

   @Override
   public ToStringHelper string() {
      ToStringHelper toString = super.string();
      if (monitoringEnabled)
         toString.add("monitoringEnabled", monitoringEnabled);
      toString.add("placementGroup", placementGroup);
      if (noPlacementGroup)
         toString.add("noPlacementGroup", noPlacementGroup);
      toString.add("subnetId", subnetId);
      toString.add("spotPrice", spotPrice);
      if (spotOptions != RequestSpotInstancesOptions.NONE)
         toString.add("spotOptions", spotOptions);
      if (groupIds.size() != 0)
         toString.add("groupIds", groupIds);
      toString.add("iamInstanceProfileArn", iamInstanceProfileArn);
      toString.add("iamInstanceProfileName", iamInstanceProfileName);
      return toString;
   }
View Full Code Here

Examples of com.google.common.base.Objects.ToStringHelper

                       maxCount, clientToken);
   }

   @Override
   public ToStringHelper string() {
      ToStringHelper toString = super.string();
      if (groupNames.size() != 0)
         toString.add("groupNames", groupNames);
      if (noKeyPair)
         toString.add("noKeyPair", noKeyPair);
      toString.add("keyPair", keyPair);
      if (userData != null && userData.size() > 0)
         toString.add("userDataCksum", Hashing.crc32().hashBytes(Bytes.toArray(userData)));
      ImmutableSet<BlockDeviceMapping> mappings = blockDeviceMappings.build();
      if (mappings.size() != 0)
         toString.add("blockDeviceMappings", mappings);
      if (maxCount != null && maxCount.intValue() > 0)
         toString.add("maxCount", maxCount);
      if (clientToken != null)
         toString.add("clientToken", clientToken);
      return toString;
   }
View Full Code Here

Examples of com.google.common.base.Objects.ToStringHelper

      return GleSYSTemplateOptions.class.cast(super.networks(networks));
   }

   @Override
   public ToStringHelper string() {
      ToStringHelper stringHelper = super.string();

      stringHelper.add("transferGB", this.transferGB);
      stringHelper.add("ip", this.ip);
      if (this.hasRootPassword()) {
         stringHelper.add("rootPasswordPresent", true);
      }

      return stringHelper;
   }
View Full Code Here

Examples of com.google.common.base.Objects.ToStringHelper

                              securityGroups, userMetadata, nodeNames, networks);
   }

   @Override
   public ToStringHelper string() {
      ToStringHelper toString = super.string();
      if (!DEFAULT_INBOUND_PORTS.equals(inboundPorts))
         toString.add("inboundPorts", inboundPorts);
      if (script != null)
         toString.add("scriptPresent", true);
      if (publicKey != null)
         toString.add("publicKeyPresent", true);
      if (privateKey != null)
         toString.add("privateKeyPresent", true);
      if (!blockUntilRunning)
         toString.add("blockUntilRunning", blockUntilRunning);
      if (tags.size() != 0)
         toString.add("tags", tags);
      if (!nodeNames.isEmpty())
         toString.add("nodeNames", nodeNames);
      if (securityGroups.size() != 0)
         toString.add("securityGroups", securityGroups);
      if (userMetadata.size() != 0)
         toString.add("userMetadata", userMetadata);
      if (!networks.isEmpty())
         toString.add("networks", networks);
      return toString;
   }
View Full Code Here

Examples of com.google.common.base.Objects.ToStringHelper

      this.svmGamma = svmGamma;
    }

    @Override
    public String toString() {
      ToStringHelper helper = Objects.toStringHelper(this);
      helper.add("classifyBothDirections", this.classifyBothDirections);
      helper.add("probabilityOfKeepingANegativeExample", this.probabilityOfKeepingANegativeExample);
      helper.add("svmKernel", this.svmKernel);
      helper.add("svmCost", this.svmCost);
      helper.add("svmGamma", this.svmGamma);
      return helper.toString();
    }
View Full Code Here

Examples of com.google.common.base.Objects.ToStringHelper

      return Objects.hashCode(super.hashCode(), autoAssignFloatingIp, securityGroupNames, generateKeyPair, keyPairName, userData, diskConfig);
   }

   @Override
   public ToStringHelper string() {
      ToStringHelper toString = super.string();
      if (!autoAssignFloatingIp)
         toString.add("autoAssignFloatingIp", autoAssignFloatingIp);
      if (securityGroupNames.isPresent())
         toString.add("securityGroupNames", securityGroupNames.get());
      if (generateKeyPair)
         toString.add("generateKeyPair", generateKeyPair);
      toString.add("keyPairName", keyPairName);
      toString.add("userData", userData);
      toString.add("diskConfig", diskConfig);
      return toString;
   }
View Full Code Here

Examples of com.google.common.base.Objects.ToStringHelper

   public int hashCode() {
      return Objects.hashCode(keyName, securityGroupNames, metadata, personality, adminPass, networks, availabilityZone, configDrive);
   }

   protected ToStringHelper string() {
      ToStringHelper toString = Objects.toStringHelper("").omitNullValues();
      toString.add("keyName", keyName);
      if (securityGroupNames.size() > 0)
         toString.add("securityGroupNames", securityGroupNames);
      if (metadata.size() > 0)
         toString.add("metadata", metadata);
      if (personality.size() > 0)
         toString.add("personality", personality);
      if (adminPass != null)
         toString.add("adminPassPresent", true);
      if (diskConfig != null)
         toString.add("diskConfig", diskConfig);
      toString.add("userData", userData == null ? null : new String(userData));
      if (!networks.isEmpty())
         toString.add("networks", networks);
      toString.add("availability_zone", availabilityZone == null ? null : availabilityZone);
      toString.add("configDrive", configDrive);
      return toString;
   }
View Full Code Here

Examples of com.google.common.base.Objects.ToStringHelper

      return Objects.hashCode(super.hashCode(), autoAssignFloatingIp, securityGroupNames, generateKeyPair, keyPairName, userData, diskConfig, configDrive, novaNetworks);
   }

   @Override
   public ToStringHelper string() {
      ToStringHelper toString = super.string();
      if (!autoAssignFloatingIp)
         toString.add("autoAssignFloatingIp", autoAssignFloatingIp);
      if (securityGroupNames.isPresent())
         toString.add("securityGroupNames", securityGroupNames.get());
      if (generateKeyPair)
         toString.add("generateKeyPair", generateKeyPair);
      toString.add("keyPairName", keyPairName);
      toString.add("userData", userData);
      toString.add("diskConfig", diskConfig);
      toString.add("configDrive", configDrive);
      toString.add("novaNetworks", novaNetworks);
      return toString;
   }
View Full Code Here

Examples of com.google.common.base.Objects.ToStringHelper

      return Objects.hashCode(super.hashCode(), autoAssignFloatingIp, securityGroupNames, generateKeyPair, keyPairName, userData);
   }

   @Override
   public ToStringHelper string() {
      ToStringHelper toString = super.string();
      if (!autoAssignFloatingIp)
         toString.add("autoAssignFloatingIp", autoAssignFloatingIp);
      if (securityGroupNames.isPresent())
         toString.add("securityGroupNames", securityGroupNames.get());
      if (generateKeyPair)
         toString.add("generateKeyPair", generateKeyPair);
      toString.add("keyPairName", keyPairName);
      toString.add("userData", userData);
      return toString;
   }
View Full Code Here

Examples of com.google.common.base.Objects.ToStringHelper

   public int hashCode() {
      return Objects.hashCode(keyName, securityGroupNames, metadata, personality, adminPass);
   }

   protected ToStringHelper string() {
      ToStringHelper toString = Objects.toStringHelper("").omitNullValues();
      toString.add("keyName", keyName);
      if (securityGroupNames.size() > 0)
         toString.add("securityGroupNames", securityGroupNames);
      if (metadata.size() > 0)
         toString.add("metadata", metadata);
      if (personality.size() > 0)
         toString.add("personality", personality);
      if (adminPass != null)
         toString.add("adminPassPresent", true);
      toString.add("userData", userData == null ? null : new String(userData));
      return toString;
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.