com.microsoft.azure.management.resources.fluentcore.utils.Utils.toPrimitiveBoolean()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(5.2k)|赞(0)|评价(0)|浏览(107)

本文整理了Java中com.microsoft.azure.management.resources.fluentcore.utils.Utils.toPrimitiveBoolean()方法的一些代码示例,展示了Utils.toPrimitiveBoolean()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.toPrimitiveBoolean()方法的具体详情如下:
包路径:com.microsoft.azure.management.resources.fluentcore.utils.Utils
类名称:Utils
方法名:toPrimitiveBoolean

Utils.toPrimitiveBoolean介绍

[英]Converts an object Boolean to a primitive boolean.
[中]将对象布尔值转换为基本布尔值。

代码示例

代码示例来源:origin: Azure/azure-libraries-for-java

@Override
public boolean remoteDebuggingEnabled() {
  if (siteConfig == null) {
    return false;
  }
  return Utils.toPrimitiveBoolean(siteConfig.remoteDebuggingEnabled());
}

代码示例来源:origin: Azure/azure-libraries-for-java

@Override
public boolean http20Enabled() {
  if (siteConfig == null) {
    return false;
  }
  return Utils.toPrimitiveBoolean(siteConfig.http20Enabled());
}

代码示例来源:origin: com.microsoft.azure/azure-mgmt-network

@Override
  public NetworkPeeringGatewayUse gatewayUse() {
    if (Utils.toPrimitiveBoolean(this.inner().allowGatewayTransit())) {
      return NetworkPeeringGatewayUse.BY_REMOTE_NETWORK;
    } else if (Utils.toPrimitiveBoolean(this.inner().useRemoteGateways())) {
      return NetworkPeeringGatewayUse.ON_REMOTE_NETWORK;
    } else {
      return NetworkPeeringGatewayUse.NONE;
    }
  }
}

代码示例来源:origin: Azure/azure-libraries-for-java

@Override
  public boolean isAcceleratedNetworkingEnabled() {
    return Utils.toPrimitiveBoolean(this.inner().enableAcceleratedNetworking());
  }
}

代码示例来源:origin: Azure/azure-libraries-for-java

@Override
  public NetworkPeeringGatewayUse gatewayUse() {
    if (Utils.toPrimitiveBoolean(this.inner().allowGatewayTransit())) {
      return NetworkPeeringGatewayUse.BY_REMOTE_NETWORK;
    } else if (Utils.toPrimitiveBoolean(this.inner().useRemoteGateways())) {
      return NetworkPeeringGatewayUse.ON_REMOTE_NETWORK;
    } else {
      return NetworkPeeringGatewayUse.NONE;
    }
  }
}

代码示例来源:origin: com.microsoft.azure/azure-mgmt-network

@Override
public boolean isIPForwardingEnabled() {
  return Utils.toPrimitiveBoolean(this.inner().enableIPForwarding());
}

代码示例来源:origin: com.microsoft.azure/azure-mgmt-network

@Override
public boolean activeActive() {
  return Utils.toPrimitiveBoolean(inner().activeActive());
}

代码示例来源:origin: com.microsoft.azure/azure-mgmt-servicebus

@Override
public boolean isDeadLetteringEnabledForExpiredMessages() {
  return Utils.toPrimitiveBoolean(this.inner().deadLetteringOnMessageExpiration());
}

代码示例来源:origin: com.microsoft.azure/azure-mgmt-network

@Override
public boolean isRetentionEnabled() {
  // will return default values if server response for retention policy was empty
  ensureRetentionPolicy();
  return Utils.toPrimitiveBoolean(inner().retentionPolicy().enabled());
}

代码示例来源:origin: com.microsoft.azure/azure-mgmt-keyvault

@Override
public boolean enabledForDiskEncryption() {
  if (inner().properties() == null) {
    return false;
  }
  return Utils.toPrimitiveBoolean(inner().properties().enabledForDiskEncryption());
}

代码示例来源:origin: com.microsoft.azure/azure-mgmt-keyvault

@Override
public boolean enabledForTemplateDeployment() {
  if (inner().properties() == null) {
    return false;
  }
  return Utils.toPrimitiveBoolean(inner().properties().enabledForTemplateDeployment());
}

代码示例来源:origin: com.microsoft.azure/azure-mgmt-keyvault

@Override
public boolean softDeleteEnabled() {
  if (inner().properties() == null) {
    return false;
  }
  return Utils.toPrimitiveBoolean(inner().properties().enableSoftDelete());
}

代码示例来源:origin: com.microsoft.azure/azure-mgmt-eventhub

@Override
public boolean isDataCaptureEnabled() {
  if (this.inner().captureDescription() == null) {
    return false;
  }
  return Utils.toPrimitiveBoolean(this.inner().captureDescription().enabled());
}

代码示例来源:origin: com.microsoft.azure/azure-mgmt-keyvault

@Override
public boolean enabledForDeployment() {
  if (inner().properties() == null) {
    return false;
  }
  return Utils.toPrimitiveBoolean(inner().properties().enabledForDeployment());
}

代码示例来源:origin: Azure/azure-libraries-for-java

@Override
public boolean isDataCaptureEnabled() {
  if (this.inner().captureDescription() == null) {
    return false;
  }
  return Utils.toPrimitiveBoolean(this.inner().captureDescription().enabled());
}

代码示例来源:origin: com.microsoft.azure/azure-mgmt-keyvault

@Override
public boolean purgeProtectionEnabled() {
  if (inner().properties() == null) {
    return false;
  }
  return Utils.toPrimitiveBoolean(inner().properties().enablePurgeProtection());
}

代码示例来源:origin: com.microsoft.azure/azure-mgmt-compute

@Override
public boolean isWindowsAutoUpdateEnabled() {
  if (this.inner().osProfile().windowsConfiguration() != null) {
    return Utils.toPrimitiveBoolean(this.inner().osProfile().windowsConfiguration().enableAutomaticUpdates());
  }
  return false;
}

代码示例来源:origin: com.microsoft.azure/azure-mgmt-compute

@Override
public boolean isWindowsVMAgentProvisioned() {
  if (this.inner().osProfile().windowsConfiguration() != null) {
    return Utils.toPrimitiveBoolean(this.inner().osProfile().windowsConfiguration().provisionVMAgent());
  }
  return false;
}

代码示例来源:origin: com.microsoft.azure/azure-mgmt-compute

@Override
public boolean isLinuxPasswordAuthenticationEnabled() {
  if (this.inner().osProfile().linuxConfiguration() != null) {
    return !Utils.toPrimitiveBoolean(this.inner().osProfile().linuxConfiguration().disablePasswordAuthentication());
  }
  return false;
}

代码示例来源:origin: com.microsoft.azure/azure-mgmt-compute

@Override
public boolean bootDiagnosticEnabled() {
  if (this.inner().diagnosticsProfile() != null
      && this.inner().diagnosticsProfile().bootDiagnostics() != null) {
    return Utils.toPrimitiveBoolean(this.inner().diagnosticsProfile().bootDiagnostics().enabled());
  }
  return false;
}

相关文章