Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR] web/resource-manager #327

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.web;

import org.joda.time.DateTime;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Class representing Abnormal Time Period identified in diagnosis.
*/
public class AbnormalTimePeriod {
/**
* Start time of the downtime.
*/
@JsonProperty(value = "startTime")
private DateTime startTime;

/**
* End time of the downtime.
*/
@JsonProperty(value = "endTime")
private DateTime endTime;

/**
* List of Possible Cause of downtime.
*/
@JsonProperty(value = "events")
private List<DetectorAbnormalTimePeriod> events;

/**
* List of proposed solutions.
*/
@JsonProperty(value = "solutions")
private List<Solution> solutions;

/**
* Get the startTime value.
*
* @return the startTime value
*/
public DateTime startTime() {
return this.startTime;
}

/**
* Set the startTime value.
*
* @param startTime the startTime value to set
* @return the AbnormalTimePeriod object itself.
*/
public AbnormalTimePeriod withStartTime(DateTime startTime) {
this.startTime = startTime;
return this;
}

/**
* Get the endTime value.
*
* @return the endTime value
*/
public DateTime endTime() {
return this.endTime;
}

/**
* Set the endTime value.
*
* @param endTime the endTime value to set
* @return the AbnormalTimePeriod object itself.
*/
public AbnormalTimePeriod withEndTime(DateTime endTime) {
this.endTime = endTime;
return this;
}

/**
* Get the events value.
*
* @return the events value
*/
public List<DetectorAbnormalTimePeriod> events() {
return this.events;
}

/**
* Set the events value.
*
* @param events the events value to set
* @return the AbnormalTimePeriod object itself.
*/
public AbnormalTimePeriod withEvents(List<DetectorAbnormalTimePeriod> events) {
this.events = events;
return this;
}

/**
* Get the solutions value.
*
* @return the solutions value
*/
public List<Solution> solutions() {
return this.solutions;
}

/**
* Set the solutions value.
*
* @param solutions the solutions value to set
* @return the AbnormalTimePeriod object itself.
*/
public AbnormalTimePeriod withSolutions(List<Solution> solutions) {
this.solutions = solutions;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.web;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
* Defines values for AccessControlEntryAction.
*/
public enum AccessControlEntryAction {
/** Enum value Permit. */
PERMIT("Permit"),

/** Enum value Deny. */
DENY("Deny");

/** The actual serialized value for a AccessControlEntryAction instance. */
private String value;

AccessControlEntryAction(String value) {
this.value = value;
}

/**
* Parses a serialized value to a AccessControlEntryAction instance.
*
* @param value the serialized value to parse.
* @return the parsed AccessControlEntryAction object, or null if unable to parse.
*/
@JsonCreator
public static AccessControlEntryAction fromString(String value) {
AccessControlEntryAction[] items = AccessControlEntryAction.values();
for (AccessControlEntryAction item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
}

@JsonValue
@Override
public String toString() {
return this.value;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.web;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Address information for domain registration.
*/
public class Address {
/**
* First line of an Address.
*/
@JsonProperty(value = "address1", required = true)
private String address1;

/**
* The second line of the Address. Optional.
*/
@JsonProperty(value = "address2")
private String address2;

/**
* The city for the address.
*/
@JsonProperty(value = "city", required = true)
private String city;

/**
* The country for the address.
*/
@JsonProperty(value = "country", required = true)
private String country;

/**
* The postal code for the address.
*/
@JsonProperty(value = "postalCode", required = true)
private String postalCode;

/**
* The state or province for the address.
*/
@JsonProperty(value = "state", required = true)
private String state;

/**
* Get the address1 value.
*
* @return the address1 value
*/
public String address1() {
return this.address1;
}

/**
* Set the address1 value.
*
* @param address1 the address1 value to set
* @return the Address object itself.
*/
public Address withAddress1(String address1) {
this.address1 = address1;
return this;
}

/**
* Get the address2 value.
*
* @return the address2 value
*/
public String address2() {
return this.address2;
}

/**
* Set the address2 value.
*
* @param address2 the address2 value to set
* @return the Address object itself.
*/
public Address withAddress2(String address2) {
this.address2 = address2;
return this;
}

/**
* Get the city value.
*
* @return the city value
*/
public String city() {
return this.city;
}

/**
* Set the city value.
*
* @param city the city value to set
* @return the Address object itself.
*/
public Address withCity(String city) {
this.city = city;
return this;
}

/**
* Get the country value.
*
* @return the country value
*/
public String country() {
return this.country;
}

/**
* Set the country value.
*
* @param country the country value to set
* @return the Address object itself.
*/
public Address withCountry(String country) {
this.country = country;
return this;
}

/**
* Get the postalCode value.
*
* @return the postalCode value
*/
public String postalCode() {
return this.postalCode;
}

/**
* Set the postalCode value.
*
* @param postalCode the postalCode value to set
* @return the Address object itself.
*/
public Address withPostalCode(String postalCode) {
this.postalCode = postalCode;
return this;
}

/**
* Get the state value.
*
* @return the state value
*/
public String state() {
return this.state;
}

/**
* Set the state value.
*
* @param state the state value to set
* @return the Address object itself.
*/
public Address withState(String state) {
this.state = state;
return this;
}

}
Loading