Package io.voucherify.client.model
Class ManagementProjectsMetadataSchemasCreateRequestBody
java.lang.Object
io.voucherify.client.model.ManagementProjectsMetadataSchemasCreateRequestBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ManagementProjectsMetadataSchemasCreateRequestBody
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowDefinedOnly(Boolean allowDefinedOnly) booleanCreate an instance of ManagementProjectsMetadataSchemasCreateRequestBody given an JSON stringRestricts the creation of metadata fields when set to `true`.Contains metadata definitions.The resource type.inthashCode()properties(Map<String, ManagementProjectsMetadataSchemaDefinition> properties) putPropertiesItem(String key, ManagementProjectsMetadataSchemaDefinition propertiesItem) relatedObject(String relatedObject) voidsetAllowDefinedOnly(Boolean allowDefinedOnly) voidsetProperties(Map<String, ManagementProjectsMetadataSchemaDefinition> properties) voidsetRelatedObject(String relatedObject) toJson()Convert an instance of ManagementProjectsMetadataSchemasCreateRequestBody to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_RELATED_OBJECT
- See Also:
-
SERIALIZED_NAME_ALLOW_DEFINED_ONLY
- See Also:
-
SERIALIZED_NAME_PROPERTIES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ManagementProjectsMetadataSchemasCreateRequestBody
public ManagementProjectsMetadataSchemasCreateRequestBody()
-
-
Method Details
-
getRelatedObject
The resource type. You can define custom metadata schemas, which have a custom `\"related_object\"` resource type, or you can use standard resource types: `\"campaign\"`, `\"customer\"`, `\"earning_rule\"`, `\"loyalty_tier\"`, `\"order\"`, `\"order_item\"`, `\"product\"`, `\"promotion_tier\"`, `\"publication\"`, `\"redemption\"`, `\"reward\"`, `\"voucher\"`.- Returns:
- relatedObject
-
setRelatedObject
-
allowDefinedOnly
public ManagementProjectsMetadataSchemasCreateRequestBody allowDefinedOnly(Boolean allowDefinedOnly) -
getAllowDefinedOnly
Restricts the creation of metadata fields when set to `true`. In other words, it indicates whether or not you are allowed to create new metadata definitions; for example, in the campaign manager or publication manager. If it is set to true, then only the defined fields will be available for assigning values.- Returns:
- allowDefinedOnly
-
setAllowDefinedOnly
-
properties
public ManagementProjectsMetadataSchemasCreateRequestBody properties(Map<String, ManagementProjectsMetadataSchemaDefinition> properties) -
putPropertiesItem
public ManagementProjectsMetadataSchemasCreateRequestBody putPropertiesItem(String key, ManagementProjectsMetadataSchemaDefinition propertiesItem) -
getProperties
Contains metadata definitions. There can be many properties within this object. Only the properties sent in the request will be created.- Returns:
- properties
-
setProperties
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static ManagementProjectsMetadataSchemasCreateRequestBody fromJson(String jsonString) throws IOException Create an instance of ManagementProjectsMetadataSchemasCreateRequestBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ManagementProjectsMetadataSchemasCreateRequestBody
- Throws:
IOException- if the JSON string is invalid with respect to ManagementProjectsMetadataSchemasCreateRequestBody
-
toJson
Convert an instance of ManagementProjectsMetadataSchemasCreateRequestBody to an JSON string- Returns:
- JSON string