/** * @return entry point to managing DDoS protection plans */ @Beta(SinceVersion.V1_10_0) public DdosProtectionPlans ddosProtectionPlans() { return networkManager.ddosProtectionPlans(); }
/** * @return entry point to managing DDoS protection plans */ @Beta(SinceVersion.V1_10_0) public DdosProtectionPlans ddosProtectionPlans() { return networkManager.ddosProtectionPlans(); }
@Override public NetworkImpl withNewDdosProtectionPlan() { inner().withEnableDdosProtection(true); DdosProtectionPlan.DefinitionStages.WithGroup ddosProtectionPlanWithGroup = manager().ddosProtectionPlans() .define(SdkContext.randomResourceName(name(), 20)) .withRegion(region()); if (super.creatableGroup != null && isInCreateMode()) { ddosProtectionPlanCreatable = ddosProtectionPlanWithGroup.withNewResourceGroup(super.creatableGroup); } else { ddosProtectionPlanCreatable = ddosProtectionPlanWithGroup.withExistingResourceGroup(resourceGroupName()); } this.addDependency(ddosProtectionPlanCreatable); return this; }
@Override public NetworkImpl withNewDdosProtectionPlan() { inner().withEnableDdosProtection(true); DdosProtectionPlan.DefinitionStages.WithGroup ddosProtectionPlanWithGroup = manager().ddosProtectionPlans() .define(SdkContext.randomResourceName(name(), 20)) .withRegion(region()); if (super.creatableGroup != null && isInCreateMode()) { ddosProtectionPlanCreatable = ddosProtectionPlanWithGroup.withNewResourceGroup(super.creatableGroup); } else { ddosProtectionPlanCreatable = ddosProtectionPlanWithGroup.withExistingResourceGroup(resourceGroupName()); } this.addDependency(ddosProtectionPlanCreatable); return this; }